-
Notifications
You must be signed in to change notification settings - Fork 127
[APP-14483] Parse API key from config and use it to authenticate to app #5558
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
Merged
danielbotros
merged 17 commits into
viamrobotics:main
from
danielbotros:APP-14483-migrate-robot-secret-to-api-keys
Jan 6, 2026
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
33e4e9c
Migrate secret auth to api key auth if it exists
danielbotros bc042ef
Fix minor inconsistencies and comments
danielbotros 3267705
Lint and fix tesT
danielbotros 82ed963
Undo key id diff and rename test helper
danielbotros 2940949
Remove assertion for api key id mask
danielbotros 8cfcb44
Simplify how many params to pass around and add key helpers
danielbotros 4340381
Cleaner pattern for retrieving creds and lint
danielbotros b5a0019
Abstract out creation of creds entirely
danielbotros 0325ba3
Polish and rename
danielbotros 1555c12
Fix helper comment
danielbotros 7b2ef97
Fix test to get creds
danielbotros 001db6b
Add partial key validation
danielbotros e413527
Rename value to key
danielbotros c7aa225
Remove duplicate function
danielbotros ee1ca55
Fix method type
danielbotros 325a984
Merge branch 'main' into APP-14483-migrate-robot-secret-to-api-keys
danielbotros a586003
Rename value json to key
danielbotros File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -145,6 +145,9 @@ func prettyDiff(left, right Config) (string, error) { | |
| conf.Cloud.LocationSecrets[i].Secret = mask | ||
| } | ||
| } | ||
| if conf.Cloud.APIKey.Key != "" { | ||
| conf.Cloud.APIKey.Key = mask | ||
| } | ||
|
Comment on lines
+148
to
+150
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why just compare key and not id?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| // Not really a secret but annoying to diff | ||
| if conf.Cloud.TLSCertificate != "" { | ||
| conf.Cloud.TLSCertificate = mask | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
what is this used for?
Uh oh!
There was an error while loading. Please reload this page.
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.
It's used to authenticate to the signaling server for creating a WebRTC connection to a remote robot I believe