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

Make cloudflare_access_rule importable for all rule types #141

Merged
merged 1 commit into from
Oct 26, 2018

Conversation

jacobbednarz
Copy link
Member

There are currently three different levels of firewall access rules:

  • user: Applied to a personal account
  • zone: Applied to an account but restricted to a single zone
  • account: Applied to all sites within an account

Prior to this commit, importing was only available for the user type
which made it unusable for organisations or users with multiple zones
that they wanted to manage.

As a result of this change, the import identifier has changed. It now
requires:

  • accessRuleType: Either account, zone or user (user is pretty much a noop)
  • accessRuleIdentifier: The ID of the access rule type you intend to
    use (zone.id or account.id).
  • identifierValue: The access rule ID from the API.

I've attempted to make this wording explain the different pieces that
are needed however I'm open to suggestions if someone has something
better.

Included here is an update to the documentation for the provider
website for the new identifier values and import usage.

Fixes #118

There are currently three different levels of firewall access rules:

- `user`: Applied to a personal account
- `zone`: Applied to an account but restricted to a single zone
- `account`: Applied to all sites within an account

Prior to this commit, importing was only available for the user type
which made it unusable for organisations or users with multiple zones
that they wanted to manage.

As a result of this change, the import identifier has changed. It now
requires:

- `accessRuleType`: Either `account`, `zone` or `user` (`user is pretty
  much a noop`)
- `accessRuleIdentifier`: The ID of the access rule type you intend to
  use (`zone.id` or `account.id`).
- `identifierValue`: The access rule ID from the API.

Included here is an update to the documentation for the provider
website for the new identifier values and import usage.

Fixes #118
@patryk
Copy link
Contributor

patryk commented Oct 26, 2018

Yes, I think wording is clear enough, we may fine tune it in the future, if problems arise (unlikely).

@patryk patryk merged commit 2089fa9 into cloudflare:master Oct 26, 2018
@jacobbednarz jacobbednarz deleted the update-access-rule-import branch October 30, 2018 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants