Skip to content

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

Merged
dreamorosi merged 3 commits into
developfrom
ci/mirror-partition-layer-permissions
Sep 4, 2026
Merged

chore(ci): mirror commercial layer visibility#8422
dreamorosi merged 3 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
Comment thread .github/workflows/layers_partitions.yml Outdated
Comment thread .github/workflows/layers_partitions.yml Outdated
Move partition layer visibility detection into one fail-safe script shared by the balancer and deployment workflows. Also query STS account and ARN in one request when validating target credentials.
@dreamorosi
dreamorosi requested a review from svozza September 4, 2026 11:11
@sonarqubecloud

sonarqubecloud Bot commented Sep 4, 2026

Copy link
Copy Markdown

@dreamorosi

Copy link
Copy Markdown
Contributor Author

@svozza please, could you review again?

@dreamorosi
dreamorosi merged commit 1991180 into develop Sep 4, 2026
10 checks passed
@dreamorosi
dreamorosi deleted the ci/mirror-partition-layer-permissions branch September 4, 2026 11:54
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

2 participants