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

fix: revert asff arn and add documentation #2852

Merged
merged 6 commits into from Sep 14, 2022

Conversation

AndrewCharlesHay
Copy link
Contributor

@AndrewCharlesHay AndrewCharlesHay commented Sep 8, 2022

Description

This PR fixes the issues introduced in #2782. My understanding was that it was required to use the default ARN. This turns out not to be true. The PR fixes those issues and adds documentation for said issue as well as the required use of enable-import-findings-for-product

Related PRs

Remove this section if you don't have related PRs.

Checklist

  • I've read the guidelines for contributing to this repository.
  • I've followed the conventions in the PR title.
  • I've updated the documentation with the relevant information (if needed).
  • I've added tests that prove my fix is effective or that my feature works.
  • I've added usage information (if the PR introduces new options)
  • I've included a "before" and "after" example to the description (if the PR is a user interface change).

@afdesk
Copy link
Contributor

afdesk commented Sep 9, 2022

@AndrewCharlesHay it's my mistake too.
@knqyf263 was right (as usual)...
it seems we should use

"Product ARN": "arn:aws:securityhub:<REGION>::product/aquasecurity/aquasecurity"

because AWS Security Hub is already integrated with Aqua Cloud Native Security Platform:
https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-partner-providers.html

@AndrewCharlesHay
Copy link
Contributor Author

AndrewCharlesHay commented Sep 9, 2022

@AndrewCharlesHay it's my mistake too. @knqyf263 was right (as usual)... it seems we should use

"Product ARN": "arn:aws:securityhub:<REGION>::product/aquasecurity/aquasecurity"

because AWS Security Hub is already integrated with Aqua Cloud Native Security Platform: https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-partner-providers.html

I am guessing that they are using something other than the CLI command batch-import-findings to upload results. I am still trying to figure it out but when I changed it to that it gives me
An error occurred (AccessDeniedException) when calling the BatchImportFindings operation: User: arn:aws:sts::744824939882:assumed-role/gitlab_runner_profile/i-006e1ff0266d6b132 is not authorized to perform: securityhub:BatchImportFindings on resource: arn:aws:securityhub:us-east-2::product/aquasecurity/aquasecurity with an explicit deny

@AndrewCharlesHay
Copy link
Contributor Author

@AndrewCharlesHay
Copy link
Contributor Author

In your defense of having the product name where it should be it is there for kube-bench

@AndrewCharlesHay AndrewCharlesHay changed the title fix: update arn with account id and product name fix: revert arn and add documentation Sep 9, 2022
@AndrewCharlesHay AndrewCharlesHay changed the title fix: revert arn and add documentation fix: revert asff arn and add documentation Sep 9, 2022
@AndrewCharlesHay
Copy link
Contributor Author

Sorry yeah enable-import-findings-for-product was my issue 😓

@AndrewCharlesHay
Copy link
Contributor Author

Sorry for the confusion @afdesk and @knqyf263

@knqyf263
Copy link
Collaborator

because AWS Security Hub is already integrated with Aqua Cloud Native Security Platform:

Yes, this is what I was concerned 😄 @afdesk Could you review it at last?

@afdesk
Copy link
Contributor

afdesk commented Sep 12, 2022

@AndrewCharlesHay could you change a description for this PR?
it does'n look relevant
thanks a lot!

@AndrewCharlesHay
Copy link
Contributor Author

AndrewCharlesHay commented Sep 12, 2022

@AndrewCharlesHay could you change a description for this PR? it does'n look relevant thanks a lot!

@afdesk
Updated it. Thanks!

@knqyf263 knqyf263 merged commit bb3220c into aquasecurity:main Sep 14, 2022
@AndrewCharlesHay AndrewCharlesHay deleted the fix/arn-update branch September 14, 2022 17:35
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.

None yet

3 participants