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

Enable FIPS compliance by setting cgo to 1 #575

Closed
wants to merge 1 commit into from

Conversation

vrindle
Copy link

@vrindle vrindle commented Jul 19, 2024

No description provided.

@bn222
Copy link
Contributor

bn222 commented Jul 19, 2024

/approve

@bn222
Copy link
Contributor

bn222 commented Jul 19, 2024

LGTM

@coveralls
Copy link
Collaborator

Pull Request Test Coverage Report for Build 10003815369

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 75.187%

Totals Coverage Status
Change from base Build 9743694937: 0.0%
Covered Lines: 2115
Relevant Lines: 2813

💛 - Coveralls

Copy link
Collaborator

@SchSeba SchSeba left a comment

Choose a reason for hiding this comment

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

CI looks good and I don't have any objections on this one

cc @adrianchiris WDYT?

@adrianchiris
Copy link
Contributor

do we really need this on by default ?

@bn222
Copy link
Contributor

bn222 commented Jul 22, 2024

do we really need this on by default ?

what's the downside?

@adrianchiris
Copy link
Contributor

what's the downside?
i think it mandates having a c compiler.

in my system its enabled by default (running go env)

so my preference is:

  1. use default
  2. allow override when needed by the user.

@bn222
Copy link
Contributor

bn222 commented Jul 23, 2024

iow, you don't want to enforce having a c compiler?

@adrianchiris
Copy link
Contributor

/test-all

@adrianchiris
Copy link
Contributor

PR #579 will allow you to invoke : GO_BUILD_OPTS=CGO_ENABLED=1 make build which will override CGO_ENABLED
by default make build will use default value of CGO_ENABLED from go env which is 1 when gcc found and 0 when not found.

@adrianchiris
Copy link
Contributor

PR #579 will allow you to invoke : GO_BUILD_OPTS=CGO_ENABLED=1 make build which will override CGO_ENABLED
by default make build will use default value of CGO_ENABLED from go env which is 1 when gcc found and 0 when not found.

per the comment above, closing this one as it should be possible to enable FIPs compliance with #579
please re-open and update PR if this is not the case.

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.

6 participants