Skip to content

Fix: 🎯 Fix vault login -method=oidc -format=json returning exit code 0 on callback timeout/failure - #7

Open
charlieseay wants to merge 1 commit into
kyresehk190:mainfrom
charlieseay:talos/bounty-2
Open

Fix: 🎯 Fix vault login -method=oidc -format=json returning exit code 0 on callback timeout/failure#7
charlieseay wants to merge 1 commit into
kyresehk190:mainfrom
charlieseay:talos/bounty-2

Conversation

@charlieseay

Copy link
Copy Markdown

Resolves #2

Solution

Fix OIDC login exit code by ensuring authentication errors return non-zero exit codes even with JSON format. The fix wraps authentication errors in JSON format when -format=json is used, then returns exit code 2 to indicate authentication failure. This preserves JSON error output while correctly signaling failure to CI/CD pipelines.

Quality Checks

All pre-submission quality gates passed:

  • meaningful: ✅ Passed
  • syntax: ✅ Passed
  • duplicate: ✅ Passed
  • title: ✅ Passed
  • tests: ✅ Passed

🤖 Generated by Talos | Bounty reward: $0

…e 0 on callback timeout/failure

Resolves kyresehk190#2

Generated by Talos autonomous bounty hunter.
Bounty platform: github
Bounty ID: 2

Quality gates passed:
- meaningful: ✓
- syntax: ✓
- duplicate: ✓
- title: ✓
- tests: ✓
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.

🎯 Fix vault login -method=oidc -format=json returning exit code 0 on callback timeout/failure

1 participant