Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Sync] 14264 #89

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions cloudformation/panther-deployment-role.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Resources:
Type: AWS::IAM::Role
Properties:
RoleName: !If [RoleNameSpecified, !Ref DeploymentRoleName, !Ref AWS::NoValue]
Description: IAM role for deploying Panther
AssumeRolePolicyDocument:
Version: 2012-10-17
Statement:
Expand All @@ -45,25 +46,23 @@ Resources:
Condition:
Bool:
aws:SecureTransport: true

- Effect: Allow
Principal:
AWS: !If
- OpsAccountSpecified
- !Sub arn:${AWS::Partition}:iam::${OpsAccountId}:role/PulumiCodeBuild
- !Sub arn:${AWS::Partition}:iam::${AWS::AccountId}:role/PulumiCodeBuild
Action: sts:AssumeRole
Condition:
Bool:
aws:SecureTransport: true

- Effect: Allow
Principal:
Service: cloudformation.amazonaws.com
Action: sts:AssumeRole
Condition:
Bool:
aws:SecureTransport: true
Description: IAM role for deploying Panther
Tags:
- Key: Application
Value: Panther
Expand Down Expand Up @@ -146,9 +145,8 @@ Resources:
- s3:*ReplicationConfiguration
- s3:CreateAccessPoint
- s3:PutObject*
- secretsmanager:CancelRotateSecret
- secretsmanager:DescribeSecret
- secretsmanager:RotateSecret
- secretsmanager:Describe*
- secretsmanager:List*
- servicequotas:*
- sns:*
- sqs:*Permission*
Expand All @@ -164,6 +162,9 @@ Resources:
- wafv2:TagResource
- wafv2:UpdateRuleGroup
Resource: '*'
- Effect: Allow
Action: secretsmanager:*
Resource: !Sub arn:${AWS::Partition}:secretsmanager:*:${AWS::AccountId}:secret:panther*
- Effect: Allow
Action: firehose:*
Resource: !Sub arn:${AWS::Partition}:firehose:*:${AWS::AccountId}:deliverystream/*
Expand Down
2 changes: 1 addition & 1 deletion terraform/osquery_firehose/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# rights to access the Panther SaaS, are governed by the Panther Enterprise Subscription Agreement.

terraform {
required_version = ">= 1.1.7, < 1.2.0"
required_version = ">= 1.1.7, < 2.0.0"
required_providers {
aws = {
source = "hashicorp/aws"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# rights to access the Panther SaaS, are governed by the Panther Enterprise Subscription Agreement.

terraform {
required_version = ">= 1.1.7, < 1.5"
required_version = ">= 1.1.7, < 2.0.0"
required_providers {
azurerm = {
source = "hashicorp/azurerm"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
# rights to access the Panther SaaS, are governed by the Panther Enterprise Subscription Agreement.

terraform {
required_version = ">= 1.1.7, < 1.2.0"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm

required_providers {
google = {
source = "hashicorp/google"
Expand Down
2 changes: 1 addition & 1 deletion terraform/panther_cloudsec_iam/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# rights to access the Panther SaaS, are governed by the Panther Enterprise Subscription Agreement.

terraform {
required_version = ">= 1.1.7, < 1.2.0"
required_version = ">= 1.1.7, < 2.0.0"
required_providers {
aws = {
source = "hashicorp/aws"
Expand Down
2 changes: 1 addition & 1 deletion terraform/panther_cloudwatch_events/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# rights to access the Panther SaaS, are governed by the Panther Enterprise Subscription Agreement.

terraform {
required_version = ">= 1.1.7, < 1.2.0"
required_version = ">= 1.1.7, < 2.0.0"
required_providers {
aws = {
source = "hashicorp/aws"
Expand Down
4 changes: 2 additions & 2 deletions terraform/panther_cloudwatch_firehose/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
# rights to access the Panther SaaS, are governed by the Panther Enterprise Subscription Agreement.

terraform {
required_version = ">= 1.1.7, < 1.2.0"
required_version = ">= 1.1.7, < 2.0.0"
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 4.8.0, < 5.0.0"
}
}
}
}
10 changes: 7 additions & 3 deletions terraform/panther_deployment_role/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,8 @@ resource "aws_iam_policy" "deployment" {
"s3:*ReplicationConfiguration",
"s3:CreateAccessPoint",
"s3:PutObject*",
"secretsmanager:CancelRotateSecret",
"secretsmanager:DescribeSecret",
"secretsmanager:RotateSecret",
"secretsmanager:Describe*",
"secretsmanager:List*",
"servicequotas:*",
"sns:*",
"sqs:*Permission*",
Expand All @@ -139,6 +138,11 @@ resource "aws_iam_policy" "deployment" {
"Effect": "Allow",
"Resource": "*"
},
{
"Action": "secretsmanager:*",
"Effect": "Allow",
"Resource": "arn:${var.aws_partition}:secretsmanager:*:${var.aws_account_id}:secret:panther*"
},
{
"Action": "firehose:*",
"Effect": "Allow",
Expand Down
2 changes: 1 addition & 1 deletion terraform/panther_deployment_role/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# rights to access the Panther SaaS, are governed by the Panther Enterprise Subscription Agreement.

terraform {
required_version = ">= 1.1.7, < 1.2.0"
required_version = ">= 1.1.7, < 2.0.0"
required_providers {
aws = {
source = "hashicorp/aws"
Expand Down
2 changes: 1 addition & 1 deletion terraform/panther_gcs_transport_type_infra/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# rights to access the Panther SaaS, are governed by the Panther Enterprise Subscription Agreement.

terraform {
required_version = ">= 1.1.7, < 1.2.0"
required_version = ">= 1.1.7, < 2.0.0"
required_providers {
google = {
source = "hashicorp/google"
Expand Down
2 changes: 1 addition & 1 deletion terraform/panther_log_analysis_iam/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# rights to access the Panther SaaS, are governed by the Panther Enterprise Subscription Agreement.

terraform {
required_version = ">= 1.1.7, < 1.2.0"
required_version = ">= 1.1.7, < 2.0.0"
required_providers {
aws = {
source = "hashicorp/aws"
Expand Down
2 changes: 1 addition & 1 deletion terraform/panther_log_processing_notifications/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# rights to access the Panther SaaS, are governed by the Panther Enterprise Subscription Agreement.

terraform {
required_version = ">= 1.1.7, < 1.2.0"
required_version = ">= 1.1.7, < 2.0.0"
required_providers {
aws = {
source = "hashicorp/aws"
Expand Down
2 changes: 1 addition & 1 deletion terraform/panther_src_deployment_role/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# rights to access the Panther SaaS, are governed by the Panther Enterprise Subscription Agreement.

terraform {
required_version = ">= 1.1.7, < 1.2.0"
required_version = ">= 1.1.7, < 2.0.0"
required_providers {
aws = {
source = "hashicorp/aws"
Expand Down
2 changes: 1 addition & 1 deletion terraform/panther_stackset_iam_admin_role/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# rights to access the Panther SaaS, are governed by the Panther Enterprise Subscription Agreement.

terraform {
required_version = ">= 1.1.7, < 1.2.0"
required_version = ">= 1.1.7, < 2.0.0"
required_providers {
aws = {
source = "hashicorp/aws"
Expand Down
Loading