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

Move tools to a dedicated internal module #1803

Merged
merged 1 commit into from
Jan 8, 2025
Merged

Move tools to a dedicated internal module #1803

merged 1 commit into from
Jan 8, 2025

Conversation

Zerpet
Copy link
Collaborator

@Zerpet Zerpet commented Jan 3, 2025

Summary Of Changes

This move allows to remove tool dependencies from the main mod file.
This is beneficial to reduce false positives in security scanners, and
to differentiate between CVEs in the operator code or its dependencies,
vs CVEs in the dependencies of the tools used to build the operator.

By moving the tools module to internal, we ensure that nobody can import
the tools module. We had seen a few users importing this project as a Go
library, even tho we never intended this project to be used as a library
:)

Local Testing

N/A

This move allows to remove tool dependencies from the main mod file.
This is beneficial to reduce false positives in security scanners, and
to differentiate between CVEs in the operator code or its dependencies,
vs CVEs in the dependencies of the tools used to build the operator.

By moving the tools module to internal, we ensure that nobody can import
the tools module. We had seen a few users importing this project as a Go
library, even tho we never intended this project to be used as a library
:)
@Zerpet Zerpet added this to the 2.12.1 milestone Jan 3, 2025
@Zerpet Zerpet self-assigned this Jan 3, 2025
@Zerpet Zerpet requested a review from mkuratczyk January 3, 2025 17:29
@Zerpet Zerpet merged commit 37ab4d1 into main Jan 8, 2025
13 checks passed
@Zerpet Zerpet deleted the change-tools branch January 8, 2025 15:56
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