test(auth): gate local and OIDC authentication release
This commit is contained in:
@@ -5,13 +5,18 @@ cd "$(dirname "$0")/.."
|
||||
|
||||
tmp_bundle=$(mktemp)
|
||||
tmp_auth=$(mktemp)
|
||||
trap 'rm -f "$tmp_bundle" "$tmp_auth"' EXIT HUP INT TERM
|
||||
tmp_auth_config=$(mktemp -d)
|
||||
trap 'rm -f "$tmp_bundle" "$tmp_auth"; rm -rf "$tmp_auth_config"' EXIT HUP INT TERM
|
||||
printf '%s\n' 'THT_MODEL_API_KEY=test-model' >"$tmp_bundle"
|
||||
chmod 0600 "$tmp_bundle"
|
||||
printf '%s\n' '{}' >"$tmp_auth"
|
||||
chmod 0600 "$tmp_auth"
|
||||
chmod 0700 "$tmp_auth_config"
|
||||
printf '%s\n' 'mode: local' >"$tmp_auth_config/auth.yaml"
|
||||
chmod 0600 "$tmp_auth_config/auth.yaml"
|
||||
export THT_SECRETS_FILE="$tmp_bundle"
|
||||
export PI_AUTH_FILE="$tmp_auth"
|
||||
export THT_AUTH_CONFIG_ROOT="$tmp_auth_config"
|
||||
export THT_WORKSPACE_GIT_REMOTE=https://git.example.invalid/platform/thoth-workspaces.git
|
||||
|
||||
config_json=$(docker compose -f compose.yaml -f deploy/compose.preprocess.yaml --profile preprocess config --format json)
|
||||
|
||||
Reference in New Issue
Block a user