Skip to content

Commit

Permalink
fix: SopsSync permissions to decrypt the asset file instead of encrypt (
Browse files Browse the repository at this point in the history
#1112)

Signed-off-by: lennartrommeiss <[email protected]>
  • Loading branch information
lenderom authored Feb 6, 2025
1 parent 2755dea commit d2a0e2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SopsSync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ export namespace Permissions {
Stack.of(context).synthesizer.bootstrapQualifier ?? 'hnb659fds'; // hnb659fds is the AWS global default qualifier
Key.fromLookup(context, 'AssetBucketKey', {
aliasName: `alias/cdk-bootstrap/${qualifier}`,
}).grantEncrypt(target);
}).grantDecrypt(target);
} catch (error) {
Annotations.of(context).addWarningV2(
'no-asset-kms-key',
Expand Down

0 comments on commit d2a0e2c

Please sign in to comment.