Skip to content

Key-only policy annotation #1031

@0x00A5

Description

@0x00A5

Describe the improvement you'd like to request

As of writing, policy annotations are required to be key-value pairs. When using it as a tag or label for marking a policy, this becomes a bit awkward. For example, we'd like to write a policy like the following to mark a policy as shadow / dry-run mode.

@shadow_mode
permit(principal, action, resource);

This annotation is illegal and we have to write the annotation as @shadow_mode("").

Describe alternatives you've considered

Assign an empty string to the annotations that serve only as a tag.

Additional context

No response

Is this something that you'd be interested in working on?

  • 👋 I may be able to implement this internal improvement
  • ⚠️ This feature might incur a breaking change

Metadata

Metadata

Labels

feature-requestThis issue requets a substantial new featurehelp-wantedCommunity help desired. We have not scheduled time to fix this, but think it important.

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions