Skip to content

Feat: update Oauth2_proxy to support the is_admin claim instead of th… - #576

Open
rensvmoorsel wants to merge 1 commit into
masterfrom
feat/update-oauth2-proxy-to-support-is_admin-claim
Open

rensvmoorsel wants to merge 1 commit into
masterfrom
feat/update-oauth2-proxy-to-support-is_admin-claim

Conversation

@rensvmoorsel

Copy link
Copy Markdown
Contributor

…e hardcoded admins

@KoenDR06 KoenDR06 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

jawohl

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

Configure is_admin as a string/array claim or use a dedicated groups claim before applying the filter.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Updates OAuth2 Proxy admin access to use the is_admin OIDC claim instead of hardcoded email allowlists.

Changes:

  • Adds claim-based admin authorization.
  • Removes authorized-user file provisioning.
  • Removes environment-specific admin email configuration.
  • The boolean claim format is incompatible with the configured group filtering.
File summaries
File Description
ansible/roles/oauth2_proxy/templates/admin-config.cfg.j2 Configures is_admin-based authorization; the boolean claim may reject all admin sessions.
ansible/roles/oauth2_proxy/tasks/main.yml Removes authorized-user file creation.
ansible/group_vars/staging/vars.yml Removes staging admin emails.
ansible/group_vars/production/vars.yml Removes production admin emails.
Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +12 to +13
oidc_groups_claim = "is_admin"
allowed_groups = [ "true" ]
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