Skip to content

Conversation

ChinmayHegde24
Copy link
Contributor

Currently, when the handleEncryptedKeyOp() method in KMS.java is invoked via the API, there is no visibility into whether the request is performing a decryptKey or reEncryptKey operation as same path gets logged for both operations as it hits the same method.
So after this patch opCode will be included in AccessLog pattern.

e.g In access logs we can see opcode appended
- - [] "GET /kms/v1/keys/names" 200 3 50 -
- - [] "GET /kms/v1/key/key1/_eek" 500 288 29 generate
- - [] "POST /kms/v1/keyversion/test-2@1/_eek" 400 176 16 reencrypt
- - [] "POST /kms/v1/keyversion/test-2@1/_eek" 400 176 14 decrypt

How was this patch tested?

Checked Access logs after hitting endpoints through Docker setup
Mvn local build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant