Replies: 1 comment
|
Hi @akapti , thanks for the report! I reproduced it on our latest |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Description
LocalStack's IoT mock does not properly reflect policy attachments when using the target-based
AttachPolicyAPI. After successfully callingAttachPolicywith a certificate ARN as the target, subsequent read-back operations return empty policy lists.Environment
ListAttachedPolicies(target-based)ListPrincipalPolicies(deprecated principal-based)Expected Behavior
After calling:
The attached policy should be returned by:
ListAttachedPolicieswith target=certificateArnListPrincipalPolicieswith principal=certificateArn (deprecated but should still work)Actual Behavior
Both
ListAttachedPoliciesandListPrincipalPoliciesreturn empty policy lists immediately after a successfulAttachPolicycall.Working API
ListThingPrincipalscorrectly reflects certificate attachments:Reproduction Steps
Impact
This prevents integration tests from verifying that:
Workaround
Currently testing certificate attachments via
ListThingPrincipalsinstead of policy verification, which only partially validates the certificate lifecycle.Additional Context
This issue was discovered while implementing AWS IoT certificate download and rotation functionality in integration tests using LocalStack's IoT mock service.
Test Reference
From our integration test:
Related AWS Documentation
All reactions