minio/internal/config
Harshavardhana c39eb3bacd
fix: possible crash if private.key is empty (#14208)
Before
```
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x9f54f7]

goroutine 1 [running]:
crypto/x509.IsEncryptedPEMBlock(...)
	crypto/x509/pem_decrypt.go:105
github.com/minio/minio/internal/config.LoadX509KeyPair({0xc00061e270, 0x0}, {0xc00061e2d0, 0x25})
	github.com/minio/minio/internal/config/certs.go:88 +0xf7
github.com/minio/pkg/certs.(*Manager).AddCertificate(0xc000576150, {0xc00061e270, 0x25}, {0xc00061e2d0, 0x25})
	github.com/minio/pkg@v1.1.15/certs/certs.go:132 +0x368
github.com/minio/pkg/certs.NewManager({0x51f5910, 0xc00053e140}, {0xc00061e270, 0xc000580400}, {0xc00061e2d0, 0x25}, 0x4dc5880)
	github.com/minio/pkg@v1.1.15/certs/certs.go:97 +0x170
github.com/minio/minio/cmd.getTLSConfig()
```

After
```
ERROR Unable to load the TLS configuration: The private key is not readable
      > Please check your certificate
```
2022-01-30 12:55:21 -08:00
..
api allow disabling O_DIRECT in certain environments for reads (#14115) 2022-01-17 08:34:14 -08:00
cache run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
compress rename all remaining packages to internal/ (#12418) 2021-06-01 14:59:40 -07:00
dns run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
etcd run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
heal add gocritic/ruleguard checks back again, cleanup code. (#13665) 2021-11-16 09:28:29 -08:00
identity Identity LDAP: Allow multiple search base DNs (#14191) 2022-01-26 15:05:59 -08:00
notify Validate config before saving changes after config reset (#14203) 2022-01-27 18:28:16 -08:00
policy/opa move internal/net to pkg/net package (#12505) 2021-06-14 14:54:37 -07:00
scanner Support dynamic reset of minio config (#13626) 2021-11-10 10:01:32 -08:00
storageclass run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
subnet Introduce new config subnet api_key (#13793) 2021-12-03 09:32:11 -08:00
bool-flag_test.go rename all remaining packages to internal/ (#12418) 2021-06-01 14:59:40 -07:00
bool-flag.go rename all remaining packages to internal/ (#12418) 2021-06-01 14:59:40 -07:00
certs_test.go fix: possible crash if private.key is empty (#14208) 2022-01-30 12:55:21 -08:00
certs.go fix: possible crash if private.key is empty (#14208) 2022-01-30 12:55:21 -08:00
certsinfo.go add gocritic/ruleguard checks back again, cleanup code. (#13665) 2021-11-16 09:28:29 -08:00
config_test.go rename all remaining packages to internal/ (#12418) 2021-06-01 14:59:40 -07:00
config.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
constants.go add code to parse secrets natively instead of shell scripts (#13883) 2021-12-13 18:23:31 -08:00
crypto_test.go rename all remaining packages to internal/ (#12418) 2021-06-01 14:59:40 -07:00
crypto.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
errors-utils.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
errors.go rename MINIO_CACHE_.._MASTER_KEY to MINIO_CACHE_.._SECRET_KEY 2021-12-22 12:11:07 -08:00
help.go Add new site config sub-system intended to replace region (#13672) 2021-11-25 13:06:25 -08:00
legacy.go add gocritic/ruleguard checks back again, cleanup code. (#13665) 2021-11-16 09:28:29 -08:00