Skip to content

Commit

Permalink
changing fetch_svid function after py-spiffe update
Browse files Browse the repository at this point in the history
  • Loading branch information
telliere committed Mar 22, 2024
1 parent 35f8765 commit 2d90412
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/lib/spire_interactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def get_server_identity_JWT() -> JwtSvid:
"""

# Perform an api fetch using pyspiffe
SVID = jwt_workload_api.get_jwt_svid(
SVID = jwt_workload_api.fetch_svid(
audiences=["TESTING"],
subject=SpiffeId().parse("spiffe://lumi-sd-dev/lumi-sd-server"),
)
Expand Down
2 changes: 1 addition & 1 deletion utils/ship_a_key.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def create_authorized_workloads(
)

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

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

0 comments on commit 2d90412

Please sign in to comment.