You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current implementation doesn't allow access to the secretsmanager Secret at all. AFAIK there's no way to add a resource policy to the Secret via this implementation.
Would it be possible to create a variation of this Construct that takes an existing Secret as a prop? That way engineers can configure the Secret in the way that they need, while still using the key generation capabilities of the Custom Resource.
The text was updated successfully, but these errors were encountered:
I've stumbled accross this issue too and turns out, CDK can actually create Secret Resource policy on existing secret with secretsmanager.ResourcePolicy construct:
This is, however, a workaround and it would be much better if this construct was able to manage secret resource policy (ideally public and private keys KMS as well), as current behaviour of grantReadOnPrivateKey and grantReadOnPublicKey is slightly misleading as it only modifies policy of grantee (which is noop in case of cross-account principals) and unlike official CDK constructs does not add any entry to the resource policy.
The current implementation doesn't allow access to the secretsmanager Secret at all. AFAIK there's no way to add a resource policy to the Secret via this implementation.
Would it be possible to create a variation of this Construct that takes an existing Secret as a prop? That way engineers can configure the Secret in the way that they need, while still using the key generation capabilities of the Custom Resource.
The text was updated successfully, but these errors were encountered: