-
Notifications
You must be signed in to change notification settings - Fork 650
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
Remove http_request_sbfm
phase from ruleset documentation
#4860
Remove http_request_sbfm
phase from ruleset documentation
#4860
Conversation
changelog detected ✅ |
ec87b42
to
73a19b3
Compare
73a19b3
to
a9928d4
Compare
@@ -90,7 +90,6 @@ func (r *RulesetResource) Schema(ctx context.Context, req resource.SchemaRequest | |||
Required: true, | |||
Validators: []validator.String{ | |||
stringvalidator.OneOfCaseInsensitive(cfv1.RulesetPhaseValues()...), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we'll need to remove the value from https://github.com/cloudflare/cloudflare-go/blob/master/rulesets.go#L38 as that is where the available values come from today.
@@ -43,7 +43,7 @@ Optional: | |||
- `id` (String) The ID of the Ruleset to target. | |||
- `kind` (String) Type of Ruleset to create. Available values: `custom`, `managed`, `root`, `zone`. | |||
- `name` (String) Name of the ruleset. | |||
- `phase` (String) Point in the request/response lifecycle where the ruleset will be created. Available values: `ddos_l4`, `ddos_l7`, `http_config_settings`, `http_custom_errors`, `http_log_custom_fields`, `http_ratelimit`, `http_request_cache_settings`, `http_request_dynamic_redirect`, `http_request_firewall_custom`, `http_request_firewall_managed`, `http_request_late_transform`, `http_request_origin`, `http_request_redirect`, `http_request_sanitize`, `http_request_sbfm`, `http_request_transform`, `http_response_compression`, `http_response_firewall_managed`, `http_response_headers_transform`, `magic_transit`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
once the phase is removed from the cloudflare-go lib, this should automatically generate the new values for you from the schema.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Understood, I will create the PR for cloudflare-go first
@@ -167,7 +167,6 @@ func (r *RulesetResource) UpgradeState(ctx context.Context) map[int64]resource.S | |||
Required: true, | |||
Validators: []validator.String{ | |||
stringvalidator.OneOfCaseInsensitive(cfv1.RulesetPhaseValues()...), | |||
sbfmDeprecationWarningValidator{}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should leave this one in place for now as it was a part of a migrate.
on top of this, we'll also need to add a migration to remove any rules that reference the phase if it's been possible to configure it given we may have customer states referencing it to prevent them from breaking. |
We already sent out emails to customers saying configuring SBFM rulesets won't be allowed using the |
acceptance tests all passing
|
This functionality has been released in v4.51.0 of the Terraform Cloudflare Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
The V4 API no longer supports configuring SBFM rulesets. We have sent emails to customers with this information and now the sunset date has reached.