-
Notifications
You must be signed in to change notification settings - Fork 649
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
Zone Lockdown Implementation #115
Conversation
commit d41eff9 Author: Steve Goldthorpe - Work <25055153+SteveGoldthorpe-Work@users.noreply.github.com> Date: Mon Sep 10 15:43:07 2018 +0100 make paused optional and default to false. commit aa001d6 Author: Steve Goldthorpe - Work <25055153+SteveGoldthorpe-Work@users.noreply.github.com> Date: Mon Sep 10 15:17:36 2018 +0100 no need to set ID in update commit 0235b67 Author: Steve Goldthorpe - Work <25055153+SteveGoldthorpe-Work@users.noreply.github.com> Date: Mon Sep 10 13:47:44 2018 +0100 add lockdown doc to erb commit 99e9b8a Author: Steve Goldthorpe - Work <25055153+SteveGoldthorpe-Work@users.noreply.github.com> Date: Mon Sep 10 13:45:06 2018 +0100 Add zone lockdown documentation. commit 66e9555 Author: Steve Goldthorpe - Work <25055153+SteveGoldthorpe-Work@users.noreply.github.com> Date: Mon Sep 10 13:20:43 2018 +0100 Update was still based on AccessUpdate - fixed commit fb782f4 Author: Steve Goldthorpe - Work <25055153+SteveGoldthorpe-Work@users.noreply.github.com> Date: Mon Sep 10 10:49:20 2018 +0100 need to set type for urls commit 14cae09 Author: Steve Goldthorpe - Work <25055153+SteveGoldthorpe-Work@users.noreply.github.com> Date: Fri Sep 7 17:26:33 2018 +0100 1st version - import seems to work, update not yet
commit d41eff9 Author: Steve Goldthorpe - Work <25055153+SteveGoldthorpe-Work@users.noreply.github.com> Date: Mon Sep 10 15:43:07 2018 +0100 make paused optional and default to false. commit aa001d6 Author: Steve Goldthorpe - Work <25055153+SteveGoldthorpe-Work@users.noreply.github.com> Date: Mon Sep 10 15:17:36 2018 +0100 no need to set ID in update commit 0235b67 Author: Steve Goldthorpe - Work <25055153+SteveGoldthorpe-Work@users.noreply.github.com> Date: Mon Sep 10 13:47:44 2018 +0100 add lockdown doc to erb commit 99e9b8a Author: Steve Goldthorpe - Work <25055153+SteveGoldthorpe-Work@users.noreply.github.com> Date: Mon Sep 10 13:45:06 2018 +0100 Add zone lockdown documentation. commit 66e9555 Author: Steve Goldthorpe - Work <25055153+SteveGoldthorpe-Work@users.noreply.github.com> Date: Mon Sep 10 13:20:43 2018 +0100 Update was still based on AccessUpdate - fixed commit fb782f4 Author: Steve Goldthorpe - Work <25055153+SteveGoldthorpe-Work@users.noreply.github.com> Date: Mon Sep 10 10:49:20 2018 +0100 need to set type for urls commit 14cae09 Author: Steve Goldthorpe - Work <25055153+SteveGoldthorpe-Work@users.noreply.github.com> Date: Fri Sep 7 17:26:33 2018 +0100 1st version - import seems to work, update not yet
…rraform-provider-cloudflare into sg-lockdown-prep
commit d41eff9 Author: Steve Goldthorpe - Work <25055153+SteveGoldthorpe-Work@users.noreply.github.com> Date: Mon Sep 10 15:43:07 2018 +0100 make paused optional and default to false. commit aa001d6 Author: Steve Goldthorpe - Work <25055153+SteveGoldthorpe-Work@users.noreply.github.com> Date: Mon Sep 10 15:17:36 2018 +0100 no need to set ID in update commit 0235b67 Author: Steve Goldthorpe - Work <25055153+SteveGoldthorpe-Work@users.noreply.github.com> Date: Mon Sep 10 13:47:44 2018 +0100 add lockdown doc to erb commit 99e9b8a Author: Steve Goldthorpe - Work <25055153+SteveGoldthorpe-Work@users.noreply.github.com> Date: Mon Sep 10 13:45:06 2018 +0100 Add zone lockdown documentation. commit 66e9555 Author: Steve Goldthorpe - Work <25055153+SteveGoldthorpe-Work@users.noreply.github.com> Date: Mon Sep 10 13:20:43 2018 +0100 Update was still based on AccessUpdate - fixed commit fb782f4 Author: Steve Goldthorpe - Work <25055153+SteveGoldthorpe-Work@users.noreply.github.com> Date: Mon Sep 10 10:49:20 2018 +0100 need to set type for urls commit 14cae09 Author: Steve Goldthorpe - Work <25055153+SteveGoldthorpe-Work@users.noreply.github.com> Date: Fri Sep 7 17:26:33 2018 +0100 1st version - import seems to work, update not yet
…rraform-provider-cloudflare into sg-lockdown-prep
Reset base branch so PR only shows changes in this PR (and not all the changes made by re-basing from master). |
Looks ok, but in general I would like to support Our intention is to refactor all resources to take |
Hmm I originally had zone_id as a computed field but was asked to remove it in a previous review. Also isn't there a race condition if we always go with a zone_id and the zone (string) changes (admittedly this wouldn't happen often), how would we know to re-look up the zone_id. Should we just do that every time? |
I've coded The reasoning is that user can be invited to many accounts and they can have zone signed up separately (you'll end up with many different zones having the same name, obviously only one of them will be active). Doing zone lookup every time would give nondeterministic results. Merged this one, but will refactor a bit to include the intended behaviour. I appreciate @jacobbednarz's review here, he didn't know what we intend to move away from zone name in favour of zone ID. |
Refactor - yes that's fine - hard to work in collaboration when some of the design goals aren't immediately obvious. Is there some forum, list or chat where things like this can be discussed? Might have a spare few cycles to help over the next few weeks. |
Good question, we'll try to figure something out. |
Implementation as per:
https://github.com/terraform-providers/terraform-provider-cloudflare/issues/53