open-vault/builtin/logical/transit
Alexander Scheel 04bb7eef15
Update transit public keys for Ed25519 support (#20727)
* Refine documentation for public_key

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>

* Support additional key types in importing version

This originally left off the custom support for Ed25519 and RSA-PSS
formatted keys that we've added manually.

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>

* Add support for Ed25519 keys

Here, we prevent importing public-key only keys with derived Ed25519
keys. Notably, we still allow import of derived Ed25519 keys via private
key method, though this is a touch weird: this private key must have
been packaged in an Ed25519 format (and parseable through Go as such),
even though it is (strictly) an HKDF key and isn't ever used for Ed25519.

Outside of this, importing non-derived Ed25519 keys works as expected.

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>

* Add public-key only export method to Transit

This allows the existing endpoints to retain private-key only, including
empty strings for versions which lack private keys. On the public-key
endpoint, all versions will have key material returned.

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>

* Update tests for exporting via public-key interface

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>

* Add public-key export option to docs

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>

---------

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>
2023-05-24 11:26:35 -04:00
..
cmd/transit adding copyright header (#19555) 2023-03-15 09:00:52 -07:00
backend.go openapi: Add display attributes for transit plugin (#19575) 2023-04-10 14:20:53 -04:00
backend_test.go Update transit public keys for Ed25519 support (#20727) 2023-05-24 11:26:35 -04:00
managed_key_util.go adding copyright header (#19555) 2023-03-15 09:00:52 -07:00
path_backup.go openapi: Add display attributes for transit plugin (#19575) 2023-04-10 14:20:53 -04:00
path_backup_test.go adding copyright header (#19555) 2023-03-15 09:00:52 -07:00
path_cache_config.go Transit UX improvements: show key policy, configs on write (#20652) 2023-05-18 14:36:10 -04:00
path_cache_config_test.go adding copyright header (#19555) 2023-03-15 09:00:52 -07:00
path_config_keys.go openapi: Add display attributes for transit plugin (#19575) 2023-04-10 14:20:53 -04:00
path_config_keys_test.go adding copyright header (#19555) 2023-03-15 09:00:52 -07:00
path_datakey.go openapi: Add display attributes for transit plugin (#19575) 2023-04-10 14:20:53 -04:00
path_decrypt.go openapi: Add display attributes for transit plugin (#19575) 2023-04-10 14:20:53 -04:00
path_decrypt_bench_test.go adding copyright header (#19555) 2023-03-15 09:00:52 -07:00
path_decrypt_test.go adding copyright header (#19555) 2023-03-15 09:00:52 -07:00
path_encrypt.go openapi: Add display attributes for transit plugin (#19575) 2023-04-10 14:20:53 -04:00
path_encrypt_bench_test.go adding copyright header (#19555) 2023-03-15 09:00:52 -07:00
path_encrypt_test.go Provide public key encryption via transit engine (#17934) 2023-05-11 11:56:46 +00:00
path_export.go Update transit public keys for Ed25519 support (#20727) 2023-05-24 11:26:35 -04:00
path_export_test.go adding copyright header (#19555) 2023-03-15 09:00:52 -07:00
path_hash.go openapi: Add display attributes for transit plugin (#19575) 2023-04-10 14:20:53 -04:00
path_hash_test.go adding copyright header (#19555) 2023-03-15 09:00:52 -07:00
path_hmac.go openapi: Add display attributes for transit plugin (#19575) 2023-04-10 14:20:53 -04:00
path_hmac_test.go adding copyright header (#19555) 2023-03-15 09:00:52 -07:00
path_import.go Provide public key encryption via transit engine (#17934) 2023-05-11 11:56:46 +00:00
path_import_test.go Update transit public keys for Ed25519 support (#20727) 2023-05-24 11:26:35 -04:00
path_keys.go Transit UX improvements: show key policy, configs on write (#20652) 2023-05-18 14:36:10 -04:00
path_keys_config.go Transit UX improvements: show key policy, configs on write (#20652) 2023-05-18 14:36:10 -04:00
path_keys_config_test.go adding copyright header (#19555) 2023-03-15 09:00:52 -07:00
path_keys_test.go adding copyright header (#19555) 2023-03-15 09:00:52 -07:00
path_random.go openapi: Add display attributes for transit plugin (#19575) 2023-04-10 14:20:53 -04:00
path_random_test.go adding copyright header (#19555) 2023-03-15 09:00:52 -07:00
path_restore.go openapi: Add display attributes for transit plugin (#19575) 2023-04-10 14:20:53 -04:00
path_restore_test.go adding copyright header (#19555) 2023-03-15 09:00:52 -07:00
path_rewrap.go openapi: Add display attributes for transit plugin (#19575) 2023-04-10 14:20:53 -04:00
path_rewrap_test.go adding copyright header (#19555) 2023-03-15 09:00:52 -07:00
path_rotate.go Transit UX improvements: show key policy, configs on write (#20652) 2023-05-18 14:36:10 -04:00
path_sign_verify.go Correct signing terminology in comments and error messages (#20714) 2023-05-23 12:44:06 +00:00
path_sign_verify_test.go adding copyright header (#19555) 2023-03-15 09:00:52 -07:00
path_trim.go Transit UX improvements: show key policy, configs on write (#20652) 2023-05-18 14:36:10 -04:00
path_trim_test.go adding copyright header (#19555) 2023-03-15 09:00:52 -07:00
path_wrapping_key.go openapi: Add display attributes for transit plugin (#19575) 2023-04-10 14:20:53 -04:00
path_wrapping_key_test.go adding copyright header (#19555) 2023-03-15 09:00:52 -07:00
stepwise_test.go adding copyright header (#19555) 2023-03-15 09:00:52 -07:00