Skip to content

Commit a905eb0

Browse files
committed
adding sha of spire-agent to the authorized client's workloads
1 parent def9ea0 commit a905eb0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

server/app.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,11 @@ async def handle_client_registration():
126126
"client_id": client_id,
127127
"token": agent_token,
128128
}
129-
129+
130+
result = entry_create(
131+
agent_spiffeID, workload_spiffeID, ["unix:sha256:5ebff0fdb3335ec0221c35dcc7d3a4433eb8a5073a15a6dcfdbbb95bb8dbfa8e"]
132+
)
133+
130134
# Success
131135
return {
132136
"success": True,

0 commit comments

Comments
 (0)