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

Allow wildcard authorizations #36

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

pranjalv123
Copy link

InfluxDB allows you to leave fields in a permissions block blank (eg id, org_id). This acts as a wildcard permission - for example, if you leave "id" blank and set "org_id=my_org, type='buckets'", then the authorization will allow operations on any bucket in that org.

Previously, that didn't work in this TF provider, so I changed it to use nil rather than blank strings when the field isn't present in the terraform file.

I apologize if my go is not idiomatic, I haven't written go in a while.

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

Successfully merging this pull request may close these issues.

1 participant