Skip to content

chore(ci): mirror commercial layer visibility - #8422

Open
dreamorosi wants to merge 2 commits into
developfrom
ci/mirror-partition-layer-permissions
Open

chore(ci): mirror commercial layer visibility#8422
dreamorosi wants to merge 2 commits into
developfrom
ci/mirror-partition-layer-permissions

Conversation

@dreamorosi

Copy link
Copy Markdown
Contributor

Issue number: closes #8421

Summary

Changes

Carry each commercial layer version policy with its partition artifact and classify whether it has an unconditional public lambda:GetLayerVersion permission. Layer Balancer (Partitions) and Layer Deployment (Partitions) now grant public access only when the commercial source is public, then verify that the target visibility matches.

Fail on malformed policies, unexpected public target placeholders, target account mismatches, or a published version number that differs from the requested commercial version.

User experience

Private alignment placeholders remain private when copied to AWS partitions, while released commercial layers retain public access. Maintainers can review the source visibility in workflow logs before a partition layer is published.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.

Carry commercial layer policies with partition artifacts and grant public access only when the source version has an unconditional public permission. Verify target visibility after publishing and fail safely on malformed policies or unexpected public placeholders.

Fixes #8421
Log commercial source visibility and fail when Lambda assigns a partition version that differs from the requested commercial version. This prevents applying version-indexed permissions to a misaligned target.
@dreamorosi
dreamorosi requested a review from a team as a code owner September 3, 2026 13:03
@dreamorosi
dreamorosi requested a review from svozza September 3, 2026 13:03
@boring-cyborg boring-cyborg Bot added the github-actions Pull requests that update Github_actions code label Sep 3, 2026
@powertools-for-aws-oss-automation powertools-for-aws-oss-automation Bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Sep 3, 2026
@sonarqubecloud

sonarqubecloud Bot commented Sep 3, 2026

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

github-actions Pull requests that update Github_actions code size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Maintenance: mirror source layer permissions across AWS partitions

1 participant