0.36.2 • Published 3 years ago

@myhelix-cdk/aurora v0.36.2

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
3 years ago

aurora

audit

Our audit system still has some rough-edges.

First issue: the KMS key will need to be manually tweaked to allow the decrypter lambda access to it. Symptom: this appears in the decrypter lambda's CloudWatch log files:

2020-10-27T23:10:56.966Z	f37cd160-4574-4512-90e5-88b7c3901890	INFO	AccessDeniedException: The ciphertext refers to a customer master key that does not exist, does not exist in this region, or you are not allowed to access.
    at Request.extractError (/var/task/node_modules/aws-sdk/lib/protocol/json.js:52:27)
    at Request.callListeners (/var/task/node_modules/aws-sdk/lib/sequential_executor.js:106:20)
    at Request.emit (/var/task/node_modules/aws-sdk/lib/sequential_executor.js:78:10)
    at Request.emit (/var/task/node_modules/aws-sdk/lib/request.js:688:14)
    at Request.transition (/var/task/node_modules/aws-sdk/lib/request.js:22:10)
    at AcceptorStateMachine.runTo (/var/task/node_modules/aws-sdk/lib/state_machine.js:14:12)
    at /var/task/node_modules/aws-sdk/lib/state_machine.js:26:10
    at Request.<anonymous> (/var/task/node_modules/aws-sdk/lib/request.js:38:9)
    at Request.<anonymous> (/var/task/node_modules/aws-sdk/lib/request.js:690:12)
    at Request.callListeners (/var/task/node_modules/aws-sdk/lib/sequential_executor.js:116:18) {
  code: 'AccessDeniedException',
  time: 2020-10-27T23:10:56.966Z,
  requestId: 'd0f7d504-a1aa-48b0-b7ad-86b9c94bb9cf',
  statusCode: 400,
  retryable: false,
  retryDelay: 86.17884490516121
}

Solution: add the following stanza to the associated KMS key.

        {
            "Effect": "Allow",
            "Principal": {
                "AWS": "arn:aws:iam::032052122631:role/email-audit-AuditEventDecrypterRoleB56CA8C0-I6EQ03RY0K06"
            },
            "Action": [
                "kms:Describe*",
                "kms:Decrypt"
            ],
            "Resource": "*"
        },

Note: I have attempted to automate this with no success at audit.ts:83..91.

0.36.2

3 years ago

1.77.0

3 years ago

0.35.1-alpha.25

3 years ago

0.35.1-alpha.26

3 years ago

0.35.1-alpha.22

3 years ago

0.36.1

3 years ago

0.36.0

3 years ago

0.35.1

3 years ago

0.35.0

3 years ago

0.34.0

4 years ago

0.33.0

4 years ago

0.32.1

4 years ago

0.32.0

4 years ago

0.31.0

4 years ago

0.30.0

4 years ago

0.29.0

4 years ago

0.28.8

4 years ago

0.28.7

4 years ago

0.28.6

4 years ago

0.28.5

4 years ago

0.28.4

4 years ago

0.28.1

4 years ago

0.28.3

4 years ago

0.28.2

4 years ago

0.28.0

4 years ago

0.27.5

4 years ago

0.27.4

4 years ago

0.27.3

4 years ago

0.27.2

4 years ago

0.27.1

4 years ago

0.27.0

4 years ago

0.26.1

4 years ago

0.26.0

4 years ago

0.25.0

4 years ago

0.24.0

4 years ago

0.23.0

4 years ago

0.22.5

4 years ago

0.22.4

4 years ago

0.22.3

4 years ago

0.22.2

4 years ago

0.22.1

4 years ago

0.22.0

4 years ago

0.21.3

4 years ago

0.21.2

4 years ago

0.21.1

4 years ago

0.21.0

4 years ago

0.20.3

4 years ago

0.20.2

4 years ago

0.20.1

4 years ago

0.20.0

4 years ago

0.19.0

4 years ago

0.18.3

4 years ago

0.18.2

4 years ago

0.18.1

4 years ago

0.18.0

4 years ago

0.17.2

4 years ago

0.17.1

4 years ago

0.16.4

4 years ago

0.17.0

4 years ago

0.16.3

4 years ago

0.16.1

4 years ago

0.16.2

4 years ago

0.16.0

4 years ago

0.15.0

4 years ago

0.14.0

4 years ago

0.13.1

4 years ago

0.13.2

4 years ago

0.13.0

4 years ago

0.12.2

4 years ago

0.12.0

4 years ago

0.12.1

4 years ago

0.10.0

4 years ago

0.11.0

4 years ago

0.9.2

4 years ago

0.9.0

4 years ago

0.8.0

4 years ago

0.7.0

4 years ago

0.6.4

4 years ago

0.6.3

4 years ago

0.6.2

4 years ago

0.6.1

4 years ago

0.6.0

4 years ago

0.1.0

4 years ago