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

[Feature Request]: Add conditions support to grafana_cloud_access_policy_token #1790

Open
daniel-andresen-jimdo opened this issue Sep 5, 2024 · 0 comments

Comments

@daniel-andresen-jimdo
Copy link

Feature Request

Hey,

Cloud access policies have the possibility to limit this CAP to be used by specific ip ranges. This is supported by setting conditions in the API.
https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#access-policies-and-tokens

{
"name": "stack-readers",
"displayName": "Stack Readers",
"scopes": ["metrics:read", "logs:read", "traces:read", "alerts:read"],
"realms": [
{
"type": "stack",
"identifier": "123",
"labelPolicies": [
{
"selector": "{env != "dev"}"
}
]
}
],
"conditions": {
"allowedSubnets": ["192.168.0.0/24", "10.1.2.99/32"]
}

}

I would be awesome if you could add conditions support for the resource grafana_cloud_access_policy_token the Terraform provider.

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