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

Added ARN checks in the diagnostics report #1462

Merged
merged 1 commit into from
Nov 4, 2024

Conversation

achouhan09
Copy link
Member

@achouhan09 achouhan09 commented Oct 14, 2024

Explain the changes

  1. Added ARN checks in the diagnostics report for both backingstores and namespacestores having AWS STS ARN string.
    Screenshot from 2024-10-30 19-00-55

Issues: Fixed #xxx / Gap #xxx

Testing Instructions:

  1. Try running command noobaa diagnostics report to see the output.

@achouhan09 achouhan09 requested review from aspandey, liranmauda, shirady, a team and naveenpaul1 and removed request for a team October 14, 2024 11:34
@achouhan09 achouhan09 marked this pull request as draft October 14, 2024 11:34
@achouhan09 achouhan09 force-pushed the arn-check branch 2 times, most recently from 1fdfb2e to 7eaf663 Compare October 18, 2024 12:07
@achouhan09 achouhan09 marked this pull request as ready for review October 18, 2024 12:08
Copy link
Contributor

@Neon-White Neon-White left a comment

Choose a reason for hiding this comment

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

A few rephrases and stylistic choices for you to consider, and one remark about the ARN check which I think might be incorrect

pkg/diagnostics/report.go Outdated Show resolved Hide resolved
pkg/diagnostics/report.go Outdated Show resolved Hide resolved
pkg/diagnostics/report.go Outdated Show resolved Hide resolved
pkg/diagnostics/report.go Outdated Show resolved Hide resolved
pkg/diagnostics/report.go Outdated Show resolved Hide resolved
pkg/diagnostics/report.go Outdated Show resolved Hide resolved
pkg/diagnostics/report.go Outdated Show resolved Hide resolved
pkg/diagnostics/report.go Outdated Show resolved Hide resolved
pkg/diagnostics/report.go Outdated Show resolved Hide resolved
Copy link
Contributor

@Neon-White Neon-White left a comment

Choose a reason for hiding this comment

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

Looks great

pkg/diagnostics/report.go Outdated Show resolved Hide resolved
@shirady
Copy link
Contributor

shirady commented Oct 27, 2024

@achouhan09, Did you want to validate only AWS STS ARN?
If that is so, then the example in the PR description is confusing because it is not exactly the case.

@achouhan09
Copy link
Member Author

@achouhan09, Did you want to validate only AWS STS ARN? If that is so, then the example in the PR description is confusing because it is not exactly the case.

@liranmauda I am bit confused about AWS ARN check here. What are the requirements for this check?
Do we need to validate AWS STS ARN only for the stores here and print the status? Also, I think checking for bucket or object ARN doesn't make sense.

Copy link
Contributor

@shirady shirady left a comment

Choose a reason for hiding this comment

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

LGTM

@achouhan09 achouhan09 merged commit 1fc5447 into noobaa:master Nov 4, 2024
14 checks passed
@achouhan09 achouhan09 deleted the arn-check branch November 4, 2024 05:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants