minio/internal
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
..
arn run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
auth add gocritic/ruleguard checks back again, cleanup code. (#13665) 2021-11-16 09:28:29 -08:00
bpool run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
bucket Disallow delete replication for tag based rules (#14167) 2022-01-24 15:22:20 -08:00
color rename all remaining packages to internal/ (#12418) 2021-06-01 14:59:40 -07:00
config fix: possible crash if private.key is empty (#14208) 2022-01-30 12:55:21 -08:00
crypto run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
disk run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
dsync tests: Remove RPC wording from the code (#14142) 2022-01-20 09:36:09 -08:00
etag rename all remaining packages to internal/ (#12418) 2021-06-01 14:59:40 -07:00
event make sure to comply with MQTT spec (#14037) 2022-01-06 11:25:39 -08:00
fips tls: add TLS 1.3 ciphers to the list of supported ciphers (#13158) 2021-09-07 09:57:32 -07:00
handlers run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
hash fix: enable go1.17 github ci/cd (#12997) 2021-08-18 18:35:22 -07:00
http cleanup dsync tests and remove net/rpc references (#14118) 2022-01-18 12:44:38 -08:00
init Disable AVX512 on Darwin (#13550) 2021-11-01 08:03:16 -07:00
ioutil speed up startup sequence for all operations (#14148) 2022-01-24 11:28:45 -08:00
jwt run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
kms run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
lock run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
logger move gofumpt to golang-ci 2022-01-06 13:08:21 -08:00
lsync run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
mountinfo run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
pubsub rename all remaining packages to internal/ (#12418) 2021-06-01 14:59:40 -07:00
rest cleanup dsync tests and remove net/rpc references (#14118) 2022-01-18 12:44:38 -08:00
s3select run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
smart run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
sync/errgroup rename all remaining packages to internal/ (#12418) 2021-06-01 14:59:40 -07:00