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

Remove * resource configuration for role policy #1

Closed
sbstjn opened this issue Jul 18, 2017 · 2 comments
Closed

Remove * resource configuration for role policy #1

sbstjn opened this issue Jul 18, 2017 · 2 comments
Assignees
Labels

Comments

@sbstjn
Copy link
Owner

sbstjn commented Jul 18, 2017

The permissions for the created role must have a restricted access policy. The current implementation should not be used in production environments.

  'Statement': [
    {
      'Effect': 'Allow',
      'Action': [
        'dynamodb:DescribeTable',
        'dynamodb:UpdateTable',
        'cloudwatch:PutMetricAlarm',
        'cloudwatch:DescribeAlarms',
        'cloudwatch:DeleteAlarms',
        'cloudwatch:GetMetricStatistics',
        'cloudwatch:SetAlarmState'
      ],
      'Resource': '*'
    }
  ]
@sbstjn sbstjn self-assigned this Jul 18, 2017
@sbstjn
Copy link
Owner Author

sbstjn commented Jul 19, 2017

A first step to a more secure solution would be at least a policy bound to the account and table name:

{
            "Action": [
                "dynamodb:DescribeTable",
                "dynamodb:UpdateTable"
            ],
            "Resource": "arn:aws:dynamodb:*:AccountID:table/TableName",
            "Effect": "Allow"
        }

@sbstjn sbstjn added the active label Jul 19, 2017
@sbstjn sbstjn closed this as completed in ff96494 Jul 19, 2017
@sbstjn sbstjn removed the active label Jul 19, 2017
@sbstjn
Copy link
Owner Author

sbstjn commented Jul 19, 2017

Included in the 0.1.1 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant