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

Conditional keys support per endpoint (interface or gateway) #21

Open
philuxe opened this issue Sep 2, 2024 · 1 comment
Open

Conditional keys support per endpoint (interface or gateway) #21

philuxe opened this issue Sep 2, 2024 · 1 comment
Assignees

Comments

@philuxe
Copy link

philuxe commented Sep 2, 2024

Hi,

I was wondering whether there is a doc that provides supported conditions per endpoint service and by endpoint type (interface vs gateway) ?
AWS Policy Generator supports only S3 and DynamoDB Gateway endpoints and I'm not sure suggested (those in the drop down menu) conditions are all supported.
Also it looks like I can push an endpoint policies with unsupported conditions or with typos.

thanks for your help

@philuxe philuxe changed the title Condition support per endpoint (interface or gateway) Conditional keys support per endpoint (interface or gateway) Sep 2, 2024
@liwadman liwadman self-assigned this Sep 9, 2024
@liwadman
Copy link
Contributor

liwadman commented Sep 9, 2024

Hello. The policy generator tool you're talking about, https://awspolicygen.s3.amazonaws.com/policygen.html, is not up to date with condition keys, interface types, or service actions.

For support of global condition keys, the condition keys are supported except where otherwise noted here: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html . We've actually recently updated that document to try to more clearly explain the different properties (role session, network, resource, principal) to give more information about the condition keys and their usecases.

For service-specific condition key support, the service authorization references are the right place to look: https://docs.aws.amazon.com/service-authorization/latest/reference/reference_policies_actions-resources-contextkeys.html . Condition keys are supported on specific resources by specific actions, and are not limited to specific policy type except where noted otherwise.

Working with this interactively, the policy editor for VPC endpoints in the AWS console was also updated recently and now features integrations out an in interactive syntax checker and access analyzer's policy validation's and can identify errors such as unsupported condition keys with actions and resources, and more findings as documented here: https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-reference-policy-checks.html .

Hope this helps!

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

No branches or pull requests

2 participants