mirror of
https://github.com/Sea-Haven-Industries/.github.git
synced 2026-10-04 09:02:06 +00:00
merge main into the soaked-role removal so the policy-check role stays
Co-authored-by: Adam Moussa <amoussa1229@users.noreply.github.com>
This commit is contained in:
commit
6a811c0f0b
1 changed files with 42 additions and 0 deletions
|
|
@ -1162,6 +1162,46 @@ Resources:
|
||||||
# Mgmt role github-meal-order-manager-weekly-menu deleted with this stack update.
|
# Mgmt role github-meal-order-manager-weekly-menu deleted with this stack update.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# PLAT-234 principal only. The checks are seahaven-org-baseline pull request
|
||||||
|
# 160: .github/workflows/ci.yaml job iam-policy-check and
|
||||||
|
# scripts/check_iam_policies.py. That job assumes this role. It asserts
|
||||||
|
# StringEquals on the bootstrap trust templates, no lambda write on the
|
||||||
|
# plan template, then ValidatePolicy and CheckNoNewAccess when this role
|
||||||
|
# can be assumed.
|
||||||
|
SeahavenOrgBaselinePolicyCheckRole:
|
||||||
|
Type: AWS::IAM::Role
|
||||||
|
Properties:
|
||||||
|
RoleName: githubdeploy-seahaven-org-baseline-policy-check
|
||||||
|
Description: Access Analyzer policy checks for seahaven-org-baseline CI. No deploy permissions.
|
||||||
|
AssumeRolePolicyDocument:
|
||||||
|
Version: "2012-10-17"
|
||||||
|
Statement:
|
||||||
|
- Effect: Allow
|
||||||
|
Principal:
|
||||||
|
Federated: !Sub arn:aws:iam::${AWS::AccountId}:oidc-provider/token.actions.githubusercontent.com
|
||||||
|
Action: sts:AssumeRoleWithWebIdentity
|
||||||
|
Condition:
|
||||||
|
StringEquals:
|
||||||
|
token.actions.githubusercontent.com:aud: sts.amazonaws.com
|
||||||
|
StringLike:
|
||||||
|
token.actions.githubusercontent.com:sub:
|
||||||
|
- !Sub repo:${GitHubOrg}/seahaven-org-baseline:ref:refs/heads/main
|
||||||
|
# use_immutable_subject is false, so pull_request tokens use
|
||||||
|
# repo:ORG/seahaven-org-baseline:ref:refs/pull/N/merge.
|
||||||
|
- !Sub repo:${GitHubOrg}/seahaven-org-baseline:ref:refs/pull/*
|
||||||
|
Policies:
|
||||||
|
- PolicyName: access-analyzer-policy-check
|
||||||
|
PolicyDocument:
|
||||||
|
Version: "2012-10-17"
|
||||||
|
Statement:
|
||||||
|
- Sid: AccessAnalyzerPolicyCheck
|
||||||
|
Effect: Allow
|
||||||
|
Action:
|
||||||
|
- access-analyzer:ValidatePolicy
|
||||||
|
- access-analyzer:CheckNoNewAccess
|
||||||
|
Resource: "*"
|
||||||
|
|
||||||
Outputs:
|
Outputs:
|
||||||
LambdaExecutionBoundaryArn:
|
LambdaExecutionBoundaryArn:
|
||||||
Value: !Ref LambdaExecutionBoundary
|
Value: !Ref LambdaExecutionBoundary
|
||||||
|
|
@ -1190,4 +1230,6 @@ Outputs:
|
||||||
# deleted only when this stack is deployed. That deploy is not this change.
|
# deleted only when this stack is deployed. That deploy is not this change.
|
||||||
SeahavenAccountBaselineDeployRoleArn:
|
SeahavenAccountBaselineDeployRoleArn:
|
||||||
Value: !GetAtt SeahavenAccountBaselineDeployRole.Arn
|
Value: !GetAtt SeahavenAccountBaselineDeployRole.Arn
|
||||||
|
SeahavenOrgBaselinePolicyCheckRoleArn:
|
||||||
|
Value: !GetAtt SeahavenOrgBaselinePolicyCheckRole.Arn
|
||||||
# MealOrderManagerWeeklyMenuRoleArn removed 2026-08-20 (PLAT-70): role deleted with resource.
|
# MealOrderManagerWeeklyMenuRoleArn removed 2026-08-20 (PLAT-70): role deleted with resource.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue