-
Notifications
You must be signed in to change notification settings - Fork 2
KAAP-797 Remove dependency on Dex Client Secret #72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Changelist by BitoThis pull request implements the following key changes.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review Agent Run #37835d
Actionable Suggestions - 1
-
cmd/byohctl/cmd/onboard.go - 1
- Removed ClientToken field breaks backward compatibility · Line 88-96
Review Details
-
Files reviewed - 2 · Commit Range:
4a66f9a..066290e- cmd/byohctl/client/auth.go
- cmd/byohctl/cmd/onboard.go
-
Files skipped - 0
-
Tools
- Whispers (Secret Scanner) - ✔︎ Successful
- Detect-secrets (Secret Scanner) - ✔︎ Successful
Bito Usage Guide
Commands
Type the following command in the pull request comment and save the comment.
-
/review- Manually triggers a full AI review. -
/pause- Pauses automatic reviews on this pull request. -
/resume- Resumes automatic reviews. -
/resolve- Marks all Bito-posted review comments as resolved. -
/abort- Cancels all in-progress reviews.
Refer to the documentation for additional commands.
Configuration
This repository uses Default Agent You can customize the agent settings here or contact your Bito workspace admin at [email protected].
Documentation & Help
| type OnboardConfig struct { | ||
| URL string `yaml:"url"` | ||
| Username string `yaml:"username"` | ||
| Password string `yaml:"password"` | ||
| ClientToken string `yaml:"client-token"` | ||
| Domain string `yaml:"domain"` | ||
| Tenant string `yaml:"tenant"` | ||
| Verbosity string `yaml:"verbosity"` | ||
| Region string `yaml:"region"` | ||
| URL string `yaml:"url"` | ||
| Username string `yaml:"username"` | ||
| Password string `yaml:"password"` | ||
| Domain string `yaml:"domain"` | ||
| Tenant string `yaml:"tenant"` | ||
| Verbosity string `yaml:"verbosity"` | ||
| Region string `yaml:"region"` | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The OnboardConfig struct fields have been reordered but ClientToken field was removed. This might break existing config files that use this field.
Code suggestion
Check the AI-generated fix before applying
| type OnboardConfig struct { | |
| URL string `yaml:"url"` | |
| Username string `yaml:"username"` | |
| Password string `yaml:"password"` | |
| ClientToken string `yaml:"client-token"` | |
| Domain string `yaml:"domain"` | |
| Tenant string `yaml:"tenant"` | |
| Verbosity string `yaml:"verbosity"` | |
| Region string `yaml:"region"` | |
| URL string `yaml:"url"` | |
| Username string `yaml:"username"` | |
| Password string `yaml:"password"` | |
| Domain string `yaml:"domain"` | |
| Tenant string `yaml:"tenant"` | |
| Verbosity string `yaml:"verbosity"` | |
| Region string `yaml:"region"` | |
| } | |
| type OnboardConfig struct { | |
| URL string `yaml:"url"` | |
| Username string `yaml:"username"` | |
| Password string `yaml:"password"` | |
| Domain string `yaml:"domain"` | |
| Tenant string `yaml:"tenant"` | |
| Verbosity string `yaml:"verbosity"` | |
| Region string `yaml:"region"` | |
| ClientToken string `yaml:"client-token"` | |
| } |
Code Review Run #37835d
Should Bito avoid suggestions like this for future reviews? (Manage Rules)
- Yes, avoid them
Code Review Agent Run #25b9b5Actionable Suggestions - 0Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
What this PR does / why we need it:
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)format, will close the issue(s) when PR gets merged):Fixes #
Additional information
Special notes for your reviewer
Summary by Bito
This pull request refactors the authentication mechanism by eliminating the dependency on the Dex Client Secret. It updates the Authorization header from 'pcd:' to 'platform9-ui:' credentials in the client authentication file and removes clientToken usage across client and onboard modules, resulting in a more streamlined and secure authentication process.