ROSAControlPlaneOperatorPolicy

Last Modified

Jul 29, 2026

July 29, 2026 at 12:03 AM UTC

Version

v7

Total Versions

6

Created

Jul 28, 2026

Actions

23

Policy Document

View on GitHub
{
  "PolicyVersion": {
    "Document": {
      "Version": "2012-10-17",
      "Statement": [
        {
          "Sid": "ReadPermissions",
          "Effect": "Allow",
          "Action": [
            "ec2:DescribeVpcEndpoints",
            "ec2:DescribeVpcs",
            "ec2:DescribeSecurityGroups",
            "ec2:DescribeSubnets",
            "route53:ListHostedZones"
          ],
          "Resource": "*"
        },
        {
          "Sid": "CreateSecurityGroups",
          "Effect": "Allow",
          "Action": [
            "ec2:CreateSecurityGroup"
          ],
          "Resource": [
            "arn:aws:ec2:*:*:security-group*/*"
          ],
          "Condition": {
            "StringEquals": {
              "aws:RequestTag/red-hat-managed": "true"
            }
          }
        },
        {
          "Sid": "DeleteSecurityGroup",
          "Effect": "Allow",
          "Action": [
            "ec2:DeleteSecurityGroup"
          ],
          "Resource": [
            "arn:aws:ec2:*:*:security-group*/*"
          ],
          "Condition": {
            "StringEquals": {
              "aws:ResourceTag/red-hat-managed": "true"
            }
          }
        },
        {
          "Sid": "SecurityGroupIngressEgress",
          "Effect": "Allow",
          "Action": [
            "ec2:AuthorizeSecurityGroupIngress",
            "ec2:AuthorizeSecurityGroupEgress",
            "ec2:RevokeSecurityGroupIngress",
            "ec2:RevokeSecurityGroupEgress"
          ],
          "Resource": [
            "arn:aws:ec2:*:*:security-group*/*"
          ],
          "Condition": {
            "StringEquals": {
              "aws:ResourceTag/red-hat-managed": "true"
            }
          }
        },
        {
          "Sid": "CreateSecurityGroupsVPCNoCondition",
          "Effect": "Allow",
          "Action": [
            "ec2:CreateSecurityGroup"
          ],
          "Resource": [
            "arn:aws:ec2:*:*:vpc/*"
          ]
        },
        {
          "Sid": "ListResourceRecordSets",
          "Effect": "Allow",
          "Action": [
            "route53:ListResourceRecordSets"
          ],
          "Resource": [
            "*"
          ]
        },
        {
          "Sid": "ChangeResourceRecordSetsRestrictedRecordNames",
          "Effect": "Allow",
          "Action": [
            "route53:ChangeResourceRecordSets"
          ],
          "Resource": [
            "*"
          ],
          "Condition": {
            "ForAllValues:StringLike": {
              "route53:ChangeResourceRecordSetsNormalizedRecordNames": [
                "*.hypershift.local"
              ]
            }
          }
        },
        {
          "Sid": "VPCEndpointWithCondition",
          "Effect": "Allow",
          "Action": [
            "ec2:CreateVpcEndpoint"
          ],
          "Resource": [
            "arn:aws:ec2:*:*:vpc-endpoint/*"
          ],
          "Condition": {
            "StringEquals": {
              "aws:RequestTag/red-hat-managed": "true"
            }
          }
        },
        {
          "Sid": "VPCEndpointResourceTagCondition",
          "Effect": "Allow",
          "Action": [
            "ec2:CreateVpcEndpoint"
          ],
          "Resource": [
            "arn:aws:ec2:*:*:security-group*/*"
          ],
          "Condition": {
            "StringEquals": {
              "aws:ResourceTag/red-hat-managed": "true"
            }
          }
        },
        {
          "Sid": "VPCEndpointNoCondition",
          "Effect": "Allow",
          "Action": [
            "ec2:CreateVpcEndpoint"
          ],
          "Resource": [
            "arn:aws:ec2:*:*:vpc/*",
            "arn:aws:ec2:*:*:subnet/*",
            "arn:aws:ec2:*:*:route-table/*"
          ]
        },
        {
          "Sid": "ManageVPCEndpointWithCondition",
          "Effect": "Allow",
          "Action": [
            "ec2:ModifyVpcEndpoint",
            "ec2:DeleteVpcEndpoints"
          ],
          "Resource": [
            "arn:aws:ec2:*:*:vpc-endpoint/*",
            "arn:aws:ec2:*:*:security-group/*"
          ],
          "Condition": {
            "StringEquals": {
              "aws:ResourceTag/red-hat-managed": "true"
            }
          }
        },
        {
          "Sid": "ModifyVPCEndpointNoCondition",
          "Effect": "Allow",
          "Action": [
            "ec2:ModifyVpcEndpoint"
          ],
          "Resource": [
            "arn:aws:ec2:*:*:subnet/*"
          ]
        },
        {
          "Sid": "CreateTagsRestrictedActions",
          "Effect": "Allow",
          "Action": [
            "ec2:CreateTags"
          ],
          "Resource": [
            "arn:aws:ec2:*:*:vpc-endpoint/*",
            "arn:aws:ec2:*:*:security-group/*"
          ],
          "Condition": {
            "StringEquals": {
              "ec2:CreateAction": [
                "CreateVpcEndpoint",
                "CreateSecurityGroup"
              ]
            }
          }
        },
        {
          "Sid": "AddDeleteTagsRedHatManagedSecurityGroups",
          "Effect": "Allow",
          "Action": [
            "ec2:CreateTags",
            "ec2:DeleteTags"
          ],
          "Resource": [
            "arn:aws:ec2:*:*:security-group/*"
          ],
          "Condition": {
            "StringEquals": {
              "aws:ResourceTag/red-hat-managed": "true"
            },
            "ForAllValues:StringNotEquals": {
              "aws:TagKeys": [
                "red-hat-managed"
              ]
            },
            "Null": {
              "aws:TagKeys": "false"
            }
          }
        }
      ]
    },
    "VersionId": "v7",
    "IsDefaultVersion": true,
    "CreateDate": "2026-07-28T23:12:18+00:00"
  }
}

Version History (11 recorded)

Raw history
v7updated

2 actions added

25a22b5
v6updated

scope changed, no action added or removed

f45bd25
v5updated

scope changed, no action added or removed

00ae280

ROSAControlPlaneOperatorPolicy - Policy Version v5

No recorded action delta - this version predates the change index. View the raw diff.

Feb 12, 2026

59bd031

ROSAControlPlaneOperatorPolicy - Policy Version v4

No recorded action delta - this version predates the change index. View the raw diff.

Feb 12, 2026

908ac09

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Apr 11, 2025

d532fd6

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Sep 18, 2024

aafbae9

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

May 13, 2024

1b36617

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Jun 30, 2023

dd3b0a3

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Jun 30, 2023

457b3ef

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Apr 25, 2023

cfda0fa