Skip to content

Commit 2d90412

Browse files
committed
changing fetch_svid function after py-spiffe update
1 parent 35f8765 commit 2d90412

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

server/lib/spire_interactions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def get_server_identity_JWT() -> JwtSvid:
6464
"""
6565

6666
# Perform an api fetch using pyspiffe
67-
SVID = jwt_workload_api.get_jwt_svid(
67+
SVID = jwt_workload_api.fetch_svid(
6868
audiences=["TESTING"],
6969
subject=SpiffeId().parse("spiffe://lumi-sd-dev/lumi-sd-server"),
7070
)

utils/ship_a_key.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ def create_authorized_workloads(
268268
)
269269

270270
# Get the client's certificate to perform mTLS
271-
SVID = jwt_workload_api.get_jwt_svid(audiences=["TESTING"], subject=spiffeID)
271+
SVID = jwt_workload_api.fetch_svid(audiences=["TESTING"], subject=spiffeID)
272272

273273
# Perform workloads authorization for the secret to be created
274274
users_spiffeID, client_id, secrets_path, user_role = create_authorized_workloads(

0 commit comments

Comments
 (0)