Skip to content

Commit d2a0e2c

Browse files
authored
fix: SopsSync permissions to decrypt the asset file instead of encrypt (#1112)
Signed-off-by: lennartrommeiss <[email protected]>
1 parent 2755dea commit d2a0e2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SopsSync.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ export namespace Permissions {
589589
Stack.of(context).synthesizer.bootstrapQualifier ?? 'hnb659fds'; // hnb659fds is the AWS global default qualifier
590590
Key.fromLookup(context, 'AssetBucketKey', {
591591
aliasName: `alias/cdk-bootstrap/${qualifier}`,
592-
}).grantEncrypt(target);
592+
}).grantDecrypt(target);
593593
} catch (error) {
594594
Annotations.of(context).addWarningV2(
595595
'no-asset-kms-key',

0 commit comments

Comments
 (0)