Skip to content

chore: enable dex for local development#799

Merged
gmlexx merged 7 commits into
mainfrom
enable-dex
Feb 19, 2026
Merged

chore: enable dex for local development#799
gmlexx merged 7 commits into
mainfrom
enable-dex

Conversation

@AndrejsPon00
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR enables Dex authentication for local development by refactoring the ACL (Access Control List) handlers from global variables to instance-based configuration and adding support for admin users who can bypass tenant filtering.

Changes:

  • Refactored ACL handlers from global variables to instance-based Handler with Config struct for better testability and maintainability
  • Added admin user authentication via email-based bypass, allowing admins unrestricted access to all metrics
  • Configured Dex with static password authentication for local development with port mappings for host access
  • Updated Makefile to automatically generate Dex admin password hash and configure admin email from git config

Reviewed changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
kof-operator/internal/acl/handlers/prometheus_query_handler.go Refactored from global variables to Handler struct with Config; added admin user bypass logic
kof-operator/internal/acl/handlers/prometheus_match_handler.go Updated to use Handler methods instead of global functions; added admin bypass
kof-operator/cmd/acl/main.go Updated to create Handler instance with Config; added admin-email flag
kof-operator/internal/acl/handlers/prometheus_query_handler_test.go Updated tests to use Handler instance; removed global variable manipulation; added admin user tests
kof-operator/internal/acl/handlers/prometheus_match_handler_test.go Updated tests to use Handler instance; removed global variable manipulation
charts/kof-mothership/values.yaml Added extraArgs field documentation for ACL server configuration
charts/kof-mothership/templates/acl/deployment.yaml Added extraArgs support in deployment template
charts/kof/values-local.yaml Enabled Dex with static password DB; configured issuer and admin-email in extraArgs
config/kind-local.yaml Added port mappings for Dex (32000, 32555)
config/kind-adopted.yaml New file: adopted cluster Kind configuration
docs/dev.md Added step to configure /etc/hosts for dex.example.com
Makefile Added htpasswd-based password hash generation; configured admin email from git config
.github/workflows/build_images.yml Added IMAGE_ACL_SERVER_REPO environment variable
.github/workflows/release_images.yml Added IMAGE_ACL_SERVER_REPO environment variable

Comment thread kof-operator/internal/acl/handlers/prometheus_query_handler.go Outdated
Comment thread Makefile Outdated
Comment thread kof-operator/internal/acl/handlers/prometheus_query_handler.go Outdated
Comment thread charts/kof-mothership/templates/acl/deployment.yaml
Comment thread config/kind-adopted.yaml
Comment thread charts/kof-mothership/templates/acl/deployment.yaml Outdated
Comment thread Makefile Outdated
gmlexx
gmlexx previously approved these changes Feb 18, 2026
@gmlexx gmlexx merged commit bbc2ef6 into main Feb 19, 2026
18 of 20 checks passed
@gmlexx gmlexx deleted the enable-dex branch February 19, 2026 12:18
@github-project-automation github-project-automation Bot moved this to Done in k0rdent Feb 19, 2026
Comment thread Makefile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants