-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Enforce stack info for cloud commands #5833
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
Merged
Changes from 16 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
81d1f60
Enforce stack in k6 cloud run command
codebien f1a76b5
Enforce stack in cloud --local-execution command
codebien 28cb3ca
Use stdout assertion in missing-stack test for consistency
codebien 02b4ae4
Require stack in k6 cloud login, remove v1 token validation fallback
codebien 8401eb2
Remove dead v1 validate-token handler from mock server
codebien 069bc1e
Stack is now a mandatory field
codebien 370eba2
Partially mask the returned token
codebien 7b831d2
Improved the visualization's UX
codebien 15bc60d
Allow login by flags only if they provide both
codebien 0a4f7ec
Adjusted the tests for the new logic
codebien d864201
Refined the unautheticated error on cloud run
codebien 473f762
Migrated a few additional tests
codebien 0b604df
Refactor to reduce the Cognitive complexity
codebien 335f923
Addressed linter issues
codebien 78d3cfe
Refined the token mask logic
codebien 36b0253
Reduce again the cognitive complexity after rebase
codebien e533383
Fixes authenticateUserToken func comment
codebien 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
Oops, something went wrong.
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.
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.
checkCloudLogin()collapses “missing token” and “missing stack” into the sameerrUserUnauthenticated, so users with only a token get only a generic authentication message. Would be nicer to return distinct errors, or at least include the specific missing piece in the message.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.
This is now handled by #5869.