minio/internal/crypto
Andreas Auernhammer 8b660e18f2
kms: add support for MinKMS and remove some unused/broken code (#19368)
This commit adds support for MinKMS. Now, there are three KMS
implementations in `internal/kms`: Builtin, MinIO KES and MinIO KMS.

Adding another KMS integration required some cleanup. In particular:
 - Various KMS APIs that haven't been and are not used have been
   removed. A lot of the code was broken anyway.
 - Metrics are now monitored by the `kms.KMS` itself. For basic
   metrics this is simpler than collecting metrics for external
   servers. In particular, each KES server returns its own metrics
   and no cluster-level view.
 - The builtin KMS now uses the same en/decryption implemented by
   MinKMS and KES. It still supports decryption of the previous
   ciphertext format. It's backwards compatible.
 - Data encryption keys now include a master key version since MinKMS
   supports multiple versions (~4 billion in total and 10000 concurrent)
   per key name.

Signed-off-by: Andreas Auernhammer <github@aead.dev>
2024-05-07 16:55:37 -07:00
..
auto-encryption.go Update to minio/pkg/v2 (#17967) 2023-09-04 12:57:37 -07:00
doc.go upgrade golang-lint to the latest (#15600) 2022-08-26 12:52:29 -07:00
error.go Enable replication of SSE-C objects (#19107) 2024-03-28 10:44:56 -07:00
header.go use typos instead of codespell (#19088) 2024-02-21 22:26:06 -08:00
header_test.go Add padding to compressed+encrypted files (#15282) 2022-07-13 07:52:15 -07:00
key.go crypto: generate OEK using HMAC-SHA256 instead of SHA256 (#19297) 2024-03-19 13:28:10 -07:00
key_test.go log: Use error log type instead of Application/MinIO type (#18930) 2024-02-01 16:13:57 -08:00
metadata.go add codespell action (#18818) 2024-01-17 23:03:17 -08:00
metadata_test.go log: Use error log type instead of Application/MinIO type (#18930) 2024-02-01 16:13:57 -08:00
sse-c.go add codespell action (#18818) 2024-01-17 23:03:17 -08:00
sse-kms.go kms: add support for MinKMS and remove some unused/broken code (#19368) 2024-05-07 16:55:37 -07:00
sse-s3.go kms: add support for MinKMS and remove some unused/broken code (#19368) 2024-05-07 16:55:37 -07:00
sse.go chore: remove duplicate word in comments (#15607) 2022-08-30 08:26:43 -07:00
sse_test.go rename all remaining packages to internal/ (#12418) 2021-06-01 14:59:40 -07:00