- 
                Notifications
    You must be signed in to change notification settings 
- Fork 1.8k
          [ci] Run Go unit tests with GODEBUG=fips140=only
          #13926
        
          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
base: main
Are you sure you want to change the base?
  
    [ci] Run Go unit tests with GODEBUG=fips140=only
  
  #13926
              Conversation
| Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@            Coverage Diff             @@
##             main   #13926      +/-   ##
==========================================
- Coverage   92.50%   92.44%   -0.06%     
==========================================
  Files         660      660              
  Lines       36196    36218      +22     
==========================================
  Hits        33483    33483              
- Misses       1892     1913      +21     
- Partials      821      822       +1     ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
 | 
GODEBUG=fips140=only
      | Running  Ignoring passing and skipped tests, here are the failures:  | 
| I think you can just set GODEBUG as an env var before running make. 
 Please feel free to open issues for each test occurrence failing, and request fips140-3 be considered for support. | 
| Thanks @atoulme, I'll run the Go unit tests as you suggested. The goal would be to eventually run these unit tests with  | 
GODEBUG=fips140=onlyGODEBUG=fips140=only
      GODEBUG=fips140=onlyGODEBUG=fips140=only
      d9eb679    to
    b269e9d      
    Compare
  
    …EBUG=fips140=only
… -tags=requirefips
b269e9d    to
    063717e      
    Compare
  
    4fbf367    to
    c4a20ca      
    Compare
  
    
Description
This PR runs all Golang unit tests in this repository with the
GODEBUG=fips140=onlyenvironment set. This is useful to detect any FIPS-140 violations of code covered by these unit tests.To achieve the above, this PR introduces a new
gotest-fips140-onlytarget inMakefileand a correspondingtest-fips140-onlytarget inMakefile.Common.Link to tracking issue
Relates to #13925
Testing
Documentation