mirror of
https://github.com/project-zot/zot.git
synced 2026-06-17 21:17:58 +08:00
fix: update go-redsync for fips-140 compatibility (#3451)
* fix: update go-redsync for fips-140 compatibility Fixes issue #3445 Signed-off-by: Ramkumar Chinchani <rchincha.dev@gmail.com> * fix: address comments and add a basic push-pull test Signed-off-by: Ramkumar Chinchani <rchincha.dev@gmail.com> * fix: address comments Signed-off-by: Ramkumar Chinchani <rchincha.dev@gmail.com> --------- Signed-off-by: Ramkumar Chinchani <rchincha.dev@gmail.com>
This commit is contained in:
committed by
GitHub
parent
f724107c8f
commit
411a3d00b5
@@ -2,6 +2,7 @@ package api
|
||||
|
||||
import (
|
||||
"context"
|
||||
"crypto/fips140"
|
||||
"crypto/tls"
|
||||
"crypto/x509"
|
||||
goerrors "errors"
|
||||
@@ -254,6 +255,11 @@ func (c *Controller) Run() error {
|
||||
}
|
||||
|
||||
func (c *Controller) Init() error {
|
||||
// report if fips140 mode is enabled
|
||||
if fips140.Enabled() {
|
||||
c.Log.Info().Msg("fips140 is currently enabled")
|
||||
}
|
||||
|
||||
// print the current configuration, but strip secrets
|
||||
c.Log.Info().Interface("params", c.Config.Sanitize()).Msg("configuration settings")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user