Which TWO capabilities are required in a Vault policy to allow a client to encrypt data using a key named 'app-key' in the transit engine? (Assume the key already exists.)
Trap 1: read on /transit/keys/app-key
The 'read' capability on `/transit/keys/app-key` is not required for encryption; it only allows reading key metadata, which is not necessary to perform the encrypt operation.
Trap 2: update on /transit/keys/app-key
The 'update' capability on `/transit/keys/app-key` allows modifying the key configuration, which is not needed for encryption.
Trap 3: create on /transit/keys/app-key
The 'create' capability on `/transit/keys/app-key` is for creating new keys, not for using existing ones for encryption.
- A
read on /transit/keys/app-key
Why wrong: The 'read' capability on `/transit/keys/app-key` is not required for encryption; it only allows reading key metadata, which is not necessary to perform the encrypt operation.
- B
encrypt on /transit/encrypt/app-key
The 'encrypt' capability on `/transit/encrypt/app-key` is the specific permission needed to submit data for encryption with the named key.
- C
update on /transit/keys/app-key
Why wrong: The 'update' capability on `/transit/keys/app-key` allows modifying the key configuration, which is not needed for encryption.
- D
create on /transit/keys/app-key
Why wrong: The 'create' capability on `/transit/keys/app-key` is for creating new keys, not for using existing ones for encryption.
- E
list on /transit/keys/app-key
Why wrong: The 'list' capability on `/transit/keys/app-key` is for listing keys, which is unrelated to performing encryption.