Repository navigation
🌱 Add agent-oauth-secret job to enable client registration with helm chart - #396
Conversation
Signed-off-by: Paolo Dettori <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]>
There was a problem hiding this comment.
Pull Request Overview
This PR adds a new agent-oauth-secret job to enable automated client registration with Keycloak when deploying Kagenti via Helm charts. The implementation provides a Python-based tool that sets up Keycloak realms, users, and OAuth clients, then distributes the client secrets across multiple agent namespaces.
Key changes:
- New Python tool (
agent_oauth_secret.py) for automated Keycloak client registration with support for both environment variable and Kubernetes secret-based authentication - Helm chart template (
agent-oauth-secret-job.yaml) with RBAC configuration for cross-namespace secret management - Updated Ansible installer tasks to clean up the new job resources before redeployment
Reviewed Changes
Copilot reviewed 11 out of 12 changed files in this pull request and generated 10 comments.
Show a summary per file
| File | Description |
|---|---|
kagenti/auth/agent-oauth-secret/agent_oauth_secret.py |
New Python script implementing Keycloak setup with retry logic, credential management, and secret distribution across namespaces |
kagenti/auth/agent-oauth-secret/requirements.txt |
Python dependencies for the agent OAuth secret tool |
kagenti/auth/agent-oauth-secret/README.md |
Comprehensive documentation covering configuration options, usage examples, and troubleshooting |
kagenti/auth/agent-oauth-secret/Dockerfile |
Container image definition for running the OAuth secret tool as a Kubernetes Job |
charts/kagenti/templates/agent-oauth-secret-job.yaml |
Helm template for the Job including ServiceAccount, ClusterRole, and RoleBindings for cross-namespace access |
charts/kagenti/templates/ui-oauth-secret-job.yaml |
Added TTL configuration for automatic job cleanup |
charts/kagenti/values.yaml |
New configuration section for agent OAuth secret settings and Keycloak integration |
deployments/ansible/roles/kagenti_installer/tasks/main.yml |
Added cleanup task for agent-oauth-secret-job before redeployment |
charts/kagenti/Chart.yaml |
Updated platform operator chart dependency version |
charts/kagenti/Chart.lock |
Updated lock file for new chart dependency version |
Makefile |
New target for building and loading the agent-oauth-secret image into kind cluster |
.github/workflows/build.yaml |
Added agent-oauth-secret to CI build workflow |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Signed-off-by: Paolo Dettori <[email protected]> Co-authored-by: Copilot <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]> Co-authored-by: Copilot <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]> Co-authored-by: Copilot <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]> Co-authored-by: Copilot <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]> Co-authored-by: Copilot <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]> Co-authored-by: Copilot <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]> Co-authored-by: Copilot <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]>
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 11 out of 12 changed files in this pull request and generated 12 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Signed-off-by: Paolo Dettori <[email protected]> Co-authored-by: Copilot <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]> Co-authored-by: Copilot <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]> Co-authored-by: Copilot <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]> Co-authored-by: Copilot <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]> Co-authored-by: Copilot <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]> Co-authored-by: Copilot <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]> Co-authored-by: Copilot <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]>
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 14 out of 16 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Signed-off-by: Paolo Dettori <[email protected]> Co-authored-by: Copilot <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]> Co-authored-by: Copilot <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]> Co-authored-by: Copilot <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]>
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 19 out of 21 changed files in this pull request and generated 17 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Signed-off-by: Paolo Dettori <[email protected]> Co-authored-by: Copilot <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]> Co-authored-by: Copilot <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]> Co-authored-by: Copilot <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]> Co-authored-by: Copilot <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]> Co-authored-by: Copilot <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]> Co-authored-by: Copilot <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]> Co-authored-by: Copilot <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]> Co-authored-by: Copilot <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]> Co-authored-by: Copilot <[email protected]>
Summary
This PR adds a new agent-oauth-secret job to enable automated client registration with Keycloak when deploying Kagenti via Helm charts. The implementation provides a Python-based tool that sets up Keycloak realms, users, and OAuth clients, then distributes the client secrets across multiple agent namespaces.
Key changes:
New Python tool (agent_oauth_secret.py) for automated Keycloak client registration with support for both environment variable and Kubernetes secret-based authentication
Helm chart template (agent-oauth-secret-job.yaml) with RBAC configuration for cross-namespace secret management
Updated Ansible installer tasks to clean up the new job resources before redeployment