Skip to content

Conversation

@torbrenner
Copy link
Contributor

Adjust the configuration of both oauth2-proxy instances to use environment variables for configuration.

@torbrenner torbrenner self-assigned this Oct 8, 2024
@lablans lablans self-requested a review October 9, 2024 07:44
Comment on lines +140 to +141
- OAUTH2_PROXY_CLIENT_ID=${OIDC_PRIVATE_CLIENT_ID}
- OAUTH2_PROXY_CLIENT_SECRET=${OIDC_CLIENT_SECRET}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would quote these just to be sure I dont know if a client secret can contain a = or something else that will mess up docker

Suggested change
- OAUTH2_PROXY_CLIENT_ID=${OIDC_PRIVATE_CLIENT_ID}
- OAUTH2_PROXY_CLIENT_SECRET=${OIDC_CLIENT_SECRET}
- OAUTH2_PROXY_CLIENT_ID="${OIDC_PRIVATE_CLIENT_ID}"
- OAUTH2_PROXY_CLIENT_SECRET="${OIDC_CLIENT_SECRET}"

- OAUTH2_PROXY_REDIRECT_URL="https://${HOST}${OAUTH2_CALLBACK}"
- OAUTH2_PROXY_OIDC_ISSUER_URL=${OIDC_ISSUER_URL}
- OAUTH2_PROXY_SCOPE=openid profile email
- OAUTH2_PROXY_CODE_CHALLENGE_METHOD=true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was set to S256 whatever that means. If you know what your doing I trust you I just noticed its different

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants