File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 44
44
timeout_in_seconds = None ,
45
45
)
46
46
47
+ if configuration ["spire-agent" ].get ("hpcs-server-spiffeid" ):
48
+ spire_interactions .hpcs_server_spiffeid = configuration ["spire-agent" ].get (
49
+ "hpcs-server-spiffeid"
50
+ )
51
+
47
52
if configuration ["spire-server" ].get ("pre-command" ):
48
53
spire_interactions .pre_command = configuration ["spire-server" ]["pre-command" ]
49
54
if configuration ["spire-server" ]["pre-command" ] == '""' :
Original file line number Diff line number Diff line change 9
9
10
10
11
11
jwt_workload_api = None
12
+ hpcs_server_spiffeid = "spiffe://hpcs/hpcs-server/workload"
12
13
13
14
14
15
def token_generate (spiffeID : SpiffeId ) -> subprocess .CompletedProcess :
@@ -73,7 +74,7 @@ def get_server_identity_JWT() -> JwtSvid:
73
74
# Perform an api fetch using pyspiffe
74
75
SVID = jwt_workload_api .fetch_svid (
75
76
audiences = ["TESTING" ],
76
- subject = SpiffeId ("spiffe://lumi-sd-dev/lumi-sd-server " ),
77
+ subject = SpiffeId (f" { hpcs_server_spiffeid } " ),
77
78
)
78
79
return SVID
79
80
You can’t perform that action at this time.
0 commit comments