AWS lambda: Lambda durable security: add DeleteDurableExecution authorization and audit
Summary
Adds lambda:DeleteDurableExecution to the list of actions authorized against the durable execution ARN (with guidance to grant it only to principals allowed to permanently remove execution data), adds it to the sample IAM policy, and expands CloudTrail data-event logging coverage to include deletion, stop, and callback operations plus the management events that are logged.
Security assessment
The change documents a new authorization action for a destructive, data-removing API and explicitly scopes it to principals permitted to permanently delete execution data, while also extending CloudTrail audit coverage to deletion, stop, and callback operations. This is authorization/audit control guidance with direct security impact, though it documents rather than fixes a vulnerability.
Evidence
+Lambda authorizes the `lambda:GetDurableExecution`, `lambda:GetDurableExecutionHistory`, `lambda:StopDurableExecution`, and `lambda:DeleteDurableExecution` actions against the durable execution ARN. Grant `lambda:DeleteDurableExecution` only to principals that are allowed to permanently remove execution data.
Diff
diff --git a/lambda/latest/dg/durable-security.md b/lambda/latest/dg/durable-security.md index cf68038..21e7334 100644 --- a//lambda/latest/dg/durable-security.md +++ b//lambda/latest/dg/durable-security.md @@ -101 +101 @@ Alternatively, you can use the AWS managed policy `AWSLambdaBasicDurableExecutio -Lambda authorizes the `lambda:GetDurableExecution`, `lambda:GetDurableExecutionHistory`, and `lambda:StopDurableExecution` actions against the durable execution ARN. +Lambda authorizes the `lambda:GetDurableExecution`, `lambda:GetDurableExecutionHistory`, `lambda:StopDurableExecution`, and `lambda:DeleteDurableExecution` actions against the durable execution ARN. Grant `lambda:DeleteDurableExecution` only to principals that are allowed to permanently remove execution data. @@ -126 +126,2 @@ To match requests made with either form of the function name, include both the u - "lambda:StopDurableExecution" + "lambda:StopDurableExecution", + "lambda:DeleteDurableExecution" @@ -194 +195 @@ Your function's execution role needs `kms:Encrypt` and `kms:Decrypt` permissions -Lambda logs checkpoint operations as data events in AWS CloudTrail. You can use CloudTrail to audit when checkpoints are created, track execution state changes, and monitor access to durable execution data. +Lambda logs the following durable execution operations as data events in AWS CloudTrail. You can use CloudTrail to audit when checkpoints are created, track execution state changes, and monitor access to and deletion of durable execution data. @@ -196 +197 @@ Lambda logs checkpoint operations as data events in AWS CloudTrail. You can use -Checkpoint operations appear in CloudTrail logs with the following event names: +Durable execution operations appear in CloudTrail logs with the following event names: @@ -201,0 +203 @@ Checkpoint operations appear in CloudTrail logs with the following event names: + * `SendDurableExecutionCallbackSuccess`, `SendDurableExecutionCallbackFailure`, and `SendDurableExecutionCallbackHeartbeat` \- Logged when an external system completes a callback or sends a heartbeat for it @@ -202,0 +205 @@ Checkpoint operations appear in CloudTrail logs with the following event names: + * `StopDurableExecution` \- Logged when a running execution is stopped @@ -203,0 +207,6 @@ Checkpoint operations appear in CloudTrail logs with the following event names: + * `DeleteDurableExecution` \- Logged when an execution and its data are deleted + + + + +`GetDurableExecution`, `GetDurableExecutionHistory`, and `ListDurableExecutionsByFunction` are logged as management events.