From a905eb09f11d7560a3f5249d743c7bc1fa90868c Mon Sep 17 00:00:00 2001 From: telliere Date: Thu, 21 Mar 2024 17:54:35 +0200 Subject: [PATCH] adding sha of spire-agent to the authorized client's workloads --- server/app.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server/app.py b/server/app.py index eea6007..82bd94d 100644 --- a/server/app.py +++ b/server/app.py @@ -126,7 +126,11 @@ async def handle_client_registration(): "client_id": client_id, "token": agent_token, } - + + result = entry_create( + agent_spiffeID, workload_spiffeID, ["unix:sha256:5ebff0fdb3335ec0221c35dcc7d3a4433eb8a5073a15a6dcfdbbb95bb8dbfa8e"] + ) + # Success return { "success": True,