@@ -61,8 +61,8 @@ mkdir -p ${WORKING_DIRECTORY}
61
61
echo -e " ${YELLOW} [LUMI-SD]${NC}${BLUE} [Job]${NC} Running agent registration"
62
62
63
63
# Spawn spire-agent
64
- cd ~ /LUMI-secure-processing || exit 1
65
- python3 ./utils/spawn_agent.py -cn > $WORKING_DIRECTORY /agent.log 2> $WORKING_DIRECTORY /agent.log &
64
+ cd ~ /HPCS || exit 1
65
+ python3 ./utils/spawn_agent.py --config ~ /.config/hpcs-client.conf - cn > $WORKING_DIRECTORY /agent.log 2> $WORKING_DIRECTORY /agent.log &
66
66
spire_agent_pid=$!
67
67
68
68
# Wait until agent runs properly
@@ -85,18 +85,18 @@ echo "Logging in to the vault ..."
85
85
86
86
# Log in to the vault using SVID, access role
87
87
echo " {\" role\" : \" APPLICATION_ACCESS_ROLE\" , \" jwt\" : \" $svid \" }" > /tmp/login
88
- application_token=$( curl -s --request POST --data @/tmp/login http:// ${ vault} /v1/auth/jwt/login | jq ' .auth.client_token' -r) || cleanup $spire_agent_pid 1
88
+ application_token=$( curl -s --request POST --data @/tmp/login $ vault /v1/auth/jwt/login | jq ' .auth.client_token' -r) || cleanup $spire_agent_pid 1
89
89
90
90
echo " Getting container decryption key ..."
91
91
92
92
# Use provided vault token (from login) to access secrets
93
- data_key=$( curl -s -H " X-Vault-Token: $application_token " http:// ${ vault} /v1/kv/data/APPLICATION_SECRET_PATH | jq ' .data.data.key' -r) || cleanup $spire_agent_pid 1
93
+ data_key=$( curl -s -H " X-Vault-Token: $application_token " $ vault /v1/kv/data/APPLICATION_SECRET_PATH | jq ' .data.data.key' -r) || cleanup $spire_agent_pid 1
94
94
echo " $data_key " > /tmp/container_key
95
95
96
96
echo " Decrypting container image ..."
97
97
98
98
# Decrypt the container image
99
- ~ /LUMI-secure-processing /client/container_preparation/input_logic/age --decrypt -i /tmp/container_key -o $WORKING_DIRECTORY /app.sif APPLICATION_PATH || exit 1
99
+ ~ /HPCS /client/container_preparation/input_logic/age --decrypt -i /tmp/container_key -o $WORKING_DIRECTORY /app.sif APPLICATION_PATH || exit 1
100
100
101
101
echo -e " ${YELLOW} [LUMI-SD]${NC}${BLUE} [Job]${NC} Creating encrypted volumes"
102
102
0 commit comments