mirror of https://github.com/portainer/portainer
fix(depguard): mitigate improper usage of openpgp BE-11977 (#1122)
parent
36154e9d33
commit
def19be230
|
@ -40,12 +40,16 @@ linters:
|
||||||
desc: use github.com/portainer/portainer/pkg/libhttp
|
desc: use github.com/portainer/portainer/pkg/libhttp
|
||||||
- pkg: golang.org/x/crypto
|
- pkg: golang.org/x/crypto
|
||||||
desc: golang.org/x/crypto is not allowed because of FIPS mode
|
desc: golang.org/x/crypto is not allowed because of FIPS mode
|
||||||
|
- pkg: github.com/ProtonMail/go-crypto/openpgp
|
||||||
|
desc: github.com/ProtonMail/go-crypto/openpgp is not allowed because of FIPS mode
|
||||||
forbidigo:
|
forbidigo:
|
||||||
forbid:
|
forbid:
|
||||||
- pattern: ^tls\.Config$
|
- pattern: ^tls\.Config$
|
||||||
msg: Use crypto.CreateTLSConfiguration() instead
|
msg: Use crypto.CreateTLSConfiguration() instead
|
||||||
- pattern: ^tls\.Config\.(InsecureSkipVerify|MinVersion|MaxVersion|CipherSuites|CurvePreferences)$
|
- pattern: ^tls\.Config\.(InsecureSkipVerify|MinVersion|MaxVersion|CipherSuites|CurvePreferences)$
|
||||||
msg: Do not set this field directly, use crypto.CreateTLSConfiguration() instead
|
msg: Do not set this field directly, use crypto.CreateTLSConfiguration() instead
|
||||||
|
- pattern: ^object\.(Commit|Tag)\.Verify$
|
||||||
|
msg: "Not allowed because of FIPS mode"
|
||||||
analyze-types: true
|
analyze-types: true
|
||||||
exclusions:
|
exclusions:
|
||||||
generated: lax
|
generated: lax
|
||||||
|
|
Loading…
Reference in New Issue