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

bugfix: rbac resource with capital letter name #1322

Merged

Conversation

deven0t
Copy link
Contributor

@deven0t deven0t commented Jun 23, 2023

When rbac resources is having capital letter in its name then trivy-operator throws error for creating its configaudit report OR rbac report.
This happens bcoz capital letter name is not allowed in majority of the resources except rbac.

To resolve this, we will make sure that trivy-operator doesnot try create report with capital letter, if capital letter comes then we generate report with hashvalue name

  • replace IsValidLabelValue to IsDNS1123Label which allows only lower case value and other similar constraint on length

resolve: #343

@deven0t deven0t requested a review from chen-keinan as a code owner June 23, 2023 09:20
@CLAassistant
Copy link

CLAassistant commented Jun 23, 2023

CLA assistant check
All committers have signed the CLA.

When rbac resources is having capital letter in its name then trivy-operator throws error for creating its configaudit report OR rbac report.
This happens bcoz capital letter name is not allowed in majority of the resources except rbac.
To resolve this, we will make sure that trivy-operator doesnot try create report with capital letter, if capital letter comes then we generate report with hashvalue name
- replace IsValidLabelValue to IsDNS1123Label which allows only lower case value other similar constraint on length

resolve: aquasecurity#343
@deven0t deven0t force-pushed the deven-bugfix-configaudit-name branch from c6fdfe9 to 975ea1b Compare June 23, 2023 09:22
@chen-keinan
Copy link
Contributor

@deven0t Thanks , lgtm 🚀

@chen-keinan chen-keinan merged commit b234920 into aquasecurity:main Jun 25, 2023
@deven0t deven0t deleted the deven-bugfix-configaudit-name branch June 26, 2023 04:25
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.

Attempt to create ClusterRbacAssessmentReport with invalid name
3 participants