Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: use environment variables for oauth2-proxy config #235

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

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.

3 participants