Repository navigation
Fix ATMOS_IDENTITY=false not working (issue #1898) - #1900
Conversation
When ATMOS_IDENTITY=false or --identity=false is set, the value "false" is now properly normalized to the internal disabled sentinel value (__DISABLED__) instead of being treated as a literal identity name. This allows users to disable authentication via environment variable or flag. Changes: - Add normalizeIdentityValue() helper in pkg/flags/global_registry.go - Update parseIdentityFlag() to normalize "false", "0", "no", "off" values - Add IsDisabled() method to IdentitySelector for checking disabled state - Add comprehensive tests for identity flag normalization 🤖 Generated with Claude Code Co-Authored-By: Claude Haiku 4.5 <[email protected]>
Dependency Review✅ No vulnerabilities or license issues found.Scanned FilesNone |
📝 WalkthroughWalkthroughThis change adds support for disabling Atmos identity/authentication via command-line flags and environment variables. A new Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes
Suggested labels
Suggested reviewers
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (4)
🧰 Additional context used📓 Path-based instructions (2)**/*.go📄 CodeRabbit inference engine (.cursor/rules/atmos-rules.mdc)
Files:
**/*_test.go📄 CodeRabbit inference engine (.cursor/rules/atmos-rules.mdc)
Files:
🧠 Learnings (17)📓 Common learnings📚 Learning: 2025-12-16T18:20:55.630ZApplied to files:
📚 Learning: 2025-11-24T17:35:37.209ZApplied to files:
📚 Learning: 2025-11-24T17:35:37.209ZApplied to files:
📚 Learning: 2025-09-07T18:07:00.549ZApplied to files:
📚 Learning: 2025-02-18T13:18:53.146ZApplied to files:
📚 Learning: 2025-11-24T17:35:37.209ZApplied to files:
📚 Learning: 2025-12-16T18:20:55.630ZApplied to files:
📚 Learning: 2025-11-10T03:03:31.505ZApplied to files:
📚 Learning: 2025-12-16T18:20:55.630ZApplied to files:
📚 Learning: 2025-11-24T17:35:37.209ZApplied to files:
📚 Learning: 2025-12-13T04:37:45.831ZApplied to files:
📚 Learning: 2025-11-24T17:35:37.209ZApplied to files:
📚 Learning: 2025-11-24T17:35:37.209ZApplied to files:
📚 Learning: 2025-11-24T17:35:37.209ZApplied to files:
📚 Learning: 2025-01-09T22:37:01.004ZApplied to files:
📚 Learning: 2025-09-29T15:47:10.908ZApplied to files:
🧬 Code graph analysis (4)pkg/flags/global/identity_selector.go (2)
pkg/flags/global/flags_test.go (1)
pkg/flags/global_registry_test.go (1)
pkg/flags/global_registry.go (2)
⏰ Context from checks skipped due to timeout of 900000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
🔇 Additional comments (7)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1900 +/- ##
==========================================
- Coverage 73.20% 73.20% -0.01%
==========================================
Files 609 609
Lines 56998 57009 +11
==========================================
+ Hits 41728 41736 +8
- Misses 12329 12334 +5
+ Partials 2941 2939 -2
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
These changes were released in v1.202.1. |
what
why
When ATMOS_IDENTITY=false is set via environment variable or --identity=false is passed as a flag, the value "false" was being treated as a literal identity name instead of being normalized to the internal
__DISABLED__sentinel value. This caused auth validation to fail with "Identity specified was not found in the auth config." Users now have a clear way to disable authentication.references
Closes #1898
Summary by CodeRabbit
New Features
Tests
✏️ Tip: You can customize this high-level summary in your review settings.