Skip to content
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

CLOUDP-277610: [AtlasCLI] Clusters watch is broken when using atlas upgrade #3314

Merged
merged 2 commits into from
Oct 9, 2024

Conversation

jeroenvervaeke
Copy link
Collaborator

Context

atlas cluster watch does not return a 404 after running atlas cluster upgrade.
However, I did encounter a 401 because the bearer token expires within the time that the cluster is done upgrading.

Proposed changes

  • removed 404 check
  • added bearer token refresh logic when hitting 401

Jira ticket: CLOUDP-277610

@jeroenvervaeke jeroenvervaeke requested a review from a team as a code owner October 9, 2024 11:59
fmenezes
fmenezes previously approved these changes Oct 9, 2024
@@ -106,7 +106,8 @@ func (logLine *AuditLogLine) logAdditionalAuthData() []byte {
const AADByteSize = 8

additionalAuthData := make([]byte, AADByteSize)
binary.LittleEndian.PutUint64(additionalAuthData, uint64(logLine.TS.UnixMilli())) //nolint:gosec
//nolint:gosec
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why change this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because of the go-linter. I don't know how it sneaked into master.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I meant the //nolint:gosec was already there you seemed to have moved it

@jeroenvervaeke jeroenvervaeke merged commit 1a4ec00 into master Oct 9, 2024
20 checks passed
@jeroenvervaeke jeroenvervaeke deleted the CLOUDP-277610 branch October 9, 2024 15:06
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.

2 participants