Skip to content

Commit

Permalink
Use two env variables as in production
Browse files Browse the repository at this point in the history
  • Loading branch information
federicaagostini committed May 16, 2024
1 parent 616ea9d commit 5e94c6c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ Define the following environment variables:
```
OIDC_AGENT_ALIAS=<your-client-alias>
OIDC_AGENT_SECRET=<your-client-secret>
IAM_ENDPOINT=iam-dev.cloud.cnaf.infn.it
IAM_ENDPOINT=https://iam-dev.cloud.cnaf.infn.it
IAM_HOST=iam-dev.cloud.cnaf.infn.it
VOMS_HOST=meteora.cloud.cnaf.infn.it
VOMS_VO=test.vo
X509_USER_PROXY=/tmp/x509up_u1000
Expand All @@ -45,5 +46,5 @@ $ ./docker/init-credentials.sh
Run the importer with

```
python vomsimporter.py --vo ${VOMS_VO} --voms-host ${VOMS_HOST} --iam-host ${IAM_ENDPOINT} --skip-duplicate-accounts-checks --username-attr nickname --debug --voms-port 8443
python vomsimporter.py --vo ${VOMS_VO} --voms-host ${VOMS_HOST} --iam-host ${IAM_HOST} --skip-duplicate-accounts-checks --username-attr nickname --debug --voms-port 8443
```
2 changes: 1 addition & 1 deletion docker/init-credentials.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ chmod 600 ${proxyresponse}

set +e

curl -s -L -XPOST -H "Authorization: Bearer ${BT}" \
curl -s -XPOST -H "Authorization: Bearer ${BT}" \
-d client_id=${client_id} \
-d client_secret=${client_secret} \
-d lifetimeSecs=${PROXY_CERT_LIFETIME_SECS} \
Expand Down

0 comments on commit 5e94c6c

Please sign in to comment.