Skip to content

Conversation

@YashIIT0909
Copy link

@YashIIT0909 YashIIT0909 commented Dec 29, 2025

This pull request introduces a new CLI command for creating Kubernetes Secrets with web UI authentication credentials, along with comprehensive tests to ensure correct behavior. The main focus is to allow users to generate and manage OAuth2 client secrets for web authentication in a flexible and user-friendly way.

New CLI command for web authentication secrets:

  • Adds a new command web-auth to the CLI, enabling creation of Kubernetes Secrets containing OAuth2 client credentials. The command supports multiple ways to provide the client secret (direct input, stdin, or random generation), and includes options for annotations, labels, immutability, and YAML export. (cmd/cli/create_secret_webauth.go)

Testing and validation:

  • Introduces a suite of tests covering various scenarios for the new web-auth secret command, including error cases, metadata options, and export functionality, ensuring robust and predictable behavior. (cmd/cli/create_secret_webauth_test.go)

Closes: #551

@stefanprodan
Copy link
Member

@YashIIT0909 can you please signoff your commit with git commit -s then force push. Thanks!

@stefanprodan stefanprodan added the area/cli CLI related issues and pull requests label Dec 29, 2025
@YashIIT0909
Copy link
Author

@YashIIT0909 can you please signoff your commit with git commit -s then force push. Thanks!

Done :)

@stefanprodan
Copy link
Member

This PR should have a single commit

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

Labels

area/cli CLI related issues and pull requests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Generate OAuth2 secret with Flux Operator CLI

2 participants