From a96e8dc634c3a16f46edee893d0e695596e10d58 Mon Sep 17 00:00:00 2001 From: janskiba Date: Wed, 7 Aug 2024 08:45:38 +0000 Subject: [PATCH] test --- lib/functions.sh | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/lib/functions.sh b/lib/functions.sh index f1e3c29..deb4591 100644 --- a/lib/functions.sh +++ b/lib/functions.sh @@ -302,20 +302,20 @@ function sync_secrets() { fi mkdir -p /var/cache/bridgehead/secrets/ || fail_and_report 1 "Failed to create '/var/cache/bridgehead/secrets/'. Please run sudo './bridgehead install $PROJECT' again." touch /var/cache/bridgehead/secrets/oidc - # docker run --rm \ - # -v /var/cache/bridgehead/secrets/oidc:/usr/local/cache \ - # -v $PRIVATEKEYFILENAME:/run/secrets/privkey.pem:ro \ - # -v /srv/docker/bridgehead/$PROJECT/root.crt.pem:/run/secrets/root.crt.pem:ro \ - # -v /etc/bridgehead/trusted-ca-certs:/conf/trusted-ca-certs:ro \ - # -e TLS_CA_CERTIFICATES_DIR=/conf/trusted-ca-certs \ - # -e NO_PROXY=localhost,127.0.0.1 \ - # -e ALL_PROXY=$HTTPS_PROXY_URL \ - # -e PROXY_ID=$PROXY_ID \ - # -e BROKER_URL=$BROKER_URL \ - # -e OIDC_PROVIDER=secret-sync-central.oidc-client-enrollment.$BROKER_ID \ - # -e SECRET_DEFINITIONS=$secret_sync_args \ - # -e RUST_LOG=debug \ - # samply/secret-sync-local:latest + docker run --rm \ + -v /var/cache/bridgehead/secrets/oidc:/usr/local/cache \ + -v $PRIVATEKEYFILENAME:/run/secrets/privkey.pem:ro \ + -v /srv/docker/bridgehead/$PROJECT/root.crt.pem:/run/secrets/root.crt.pem:ro \ + -v /etc/bridgehead/trusted-ca-certs:/conf/trusted-ca-certs:ro \ + -e TLS_CA_CERTIFICATES_DIR=/conf/trusted-ca-certs \ + -e NO_PROXY=localhost,127.0.0.1 \ + -e ALL_PROXY=$HTTPS_PROXY_URL \ + -e PROXY_ID=$PROXY_ID \ + -e BROKER_URL=$BROKER_URL \ + -e OIDC_PROVIDER=secret-sync-central.oidc-client-enrollment.$BROKER_ID \ + -e SECRET_DEFINITIONS=$secret_sync_args \ + -e RUST_LOG=debug \ + samply/secret-sync-local:latest set -a # Export variables as environment variables source /var/cache/bridgehead/secrets/*