Skip to content

Releases: cloudflare/cloudflare-go

v0.76.0

29 Aug 23:16
434a5d0
Compare
Choose a tag to compare

BREAKING CHANGES:

  • images: Renamed Image struct "Metadata" field to "Meta" (#1379)

ENHANCEMENTS:

  • access_application: added custom_non_identity_deny_url (#1373)
  • load_balancer_monitor: add support for consecutive_up, consecutive_down (#1380)
  • workers: Add support for retrieving and uploading only script content. (#1361)
  • workers: Add support for retrieving and uploading only script metadata. (#1361)
  • workers: allow namespaced scripts to be used as Worker tail consumers (#1377)

BUG FIXES:

  • access_application: Use autopaginate flag as expected (#1372)
  • access_ca_certificate: Use autopaginate flag as expected (#1372)
  • access_group: Use autopaginate flag as expected (#1372)
  • access_mutual_tls_certifcate: Use autopaginate flag as expected (#1372)
  • access_policy: Use autopaginate flag as expected (#1372)
  • images: Fix issue parsing Image Details from API due to incorrect struct json field (#1379)
  • pagination: Will look at total_count and per_page to calculate total_pages if total_pages is zero (#1372)

v0.75.0

15 Aug 21:34
d38ba6c
Compare
Choose a tag to compare

BREAKING CHANGES:

  • cloudflare: Raw method now returns a RawResponse rather than the raw JSON Result message (#1355)
  • rulesets: Rename RulesetPhaseRateLimit to RulesetPhaseHTTPRatelimit, to match the phase name (#1367)
  • rulesets: Rename RulesetPhaseSuperBotFightMode to RulesetPhaseHTTPRequestSBFM, to match the phase name (#1367)

NOTES:

  • rulesets: Remove non-existent allow action (#1367)
  • rulesets: Remove non-existent http_request_main phase (#1367)
  • rulesets: Remove non-public http_response_headers_transform_managed and http_request_late_transform_managed phases (#1367)

ENHANCEMENTS:

  • access_group: add auth_context group ruletype (#1344)
  • access_identity_provider: add attr conditional_access_enabled (#1344)
  • access_identity_provider: add auth context list/put endpoint (#1344)
  • access_service_token: add support for managing Duration (#1347)
  • bot_management: add support for bot_management API (#1363)
  • cloudflare: swap encoding/json for github.com/goccy/go-json (#1360)
  • device_posture_rule: support eid_last_seen and risk_level and correct total_score for Tanium posture rule (#1366)
  • per_hostname_tls_settings: add support for managing hostname level TLS settings (#1356)
  • rulesets: Add the ddos_mitigation action (#1367)
  • waiting_room: add support for queueing_status_code (#1357)
  • web_analytics: add support for web_analytics API (#1348)
  • workers: add support for tagging Worker scripts (#1368)
  • zone_hold: add support for zone hold API (#1365)

BUG FIXES:

  • cache_purge: don't escape HTML entity values in URLs for cache keys (#1360)

DEPENDENCIES:

  • deps: bumps golang.org/x/net from 0.12.0 to 0.13.0 (#1353)
  • deps: bumps golang.org/x/net from 0.13.0 to 0.14.0 (#1362)
  • deps: bumps goreleaser/goreleaser-action from 4.3.0 to 4.4.0 (#1369)

v0.74.0

01 Aug 23:57
46ebeb0
Compare
Choose a tag to compare

ENHANCEMENTS:

  • access_application: Add support for custom pages (#1343)
  • access_custom_page: Add support for custom pages (#1343)
  • access_organization: add support for custom pages (#1343)
  • rulesets: Remove internal-only schema kind (#1346)
  • rulesets: Remove some request parameters that are not allowed or have no effect (#1346)
  • rulesets: Update API reference links (#1346)
  • teams-accounts: Adds support for protocol detection (#1340)
  • workers: Add pipeline_hash field to Workers script response struct. (#1330)
  • workers: Add support for declaring arbitrary bindings with UnsafeBinding. (#1330)
  • workers: Add support for uploading scripts to a Workers for Platforms namespace. (#1330)
  • workers: Add support for uploading workers with Workers for Platforms namespace bindings. (#1330)

BUG FIXES:

  • flarectl: allow for create or update to actually create the record (#1341)
  • load_balancing: Fix pool creation with MinimumOrigins set to 0 (#1338)
  • workers: Fix namespace dispatch upload API path (#1345)

v0.73.0

19 Jul 02:34
65e1df3
Compare
Choose a tag to compare

BREAKING CHANGES:

  • pages_deployment: add support for auto pagination (#1264)
  • pages_deployment: change DeletePagesDeploymentParams to contain all parameters (#1264)
  • pages_project: change to use ResourceContainer for account ID (#1264)
  • pages_project: rename PagesProject to GetPagesProject (#1264)
  • rulesets: CreateAccountRuleset is removed in favour of CreateRuleset (#1333)
  • rulesets: CreateZoneRuleset is removed in favour of CreateRuleset (#1333)
  • rulesets: DeleteAccountRuleset is removed in favour of DeleteRuleset (#1333)
  • rulesets: DeleteZoneRuleset is removed in favour of DeleteRuleset (#1333)
  • rulesets: GetAccountRulesetPhase is removed in favour of GetEntrypointRuleset (#1333)
  • rulesets: GetAccountRuleset is removed in favour of GetRuleset (#1333)
  • rulesets: GetZoneRulesetPhase is removed in favour of GetEntrypointRuleset (#1333)
  • rulesets: GetZoneRuleset is removed in favour of GetRuleset (#1333)
  • rulesets: UpdateAccountRulesetPhase is removed in favour of UpdateEntrypointRuleset (#1333)
  • rulesets: UpdateAccountRuleset is removed in favour of UpdateRuleset (#1333)
  • rulesets: UpdateZoneRulesetPhase is removed in favour of UpdateEntrypointRuleset (#1333)
  • rulesets: UpdateZoneRuleset is removed in favour of UpdateRuleset (#1333)

ENHANCEMENTS:

  • device_posture_rule: support active_threats, network_status, infected, and is_active for sentinelone_s2s posture rule (#1339)
  • device_posture_rule: support certificate_id and cn for client_certificate posture rule (#1339)
  • images: adds ability to upload image by url (#1335)
  • load_balancing: support header session affinity policy (#1302)
  • zone: Added GetRegionalTieredCache and UpdateRegionalTieredCache to allow setting Regional Tiered Cache for a zone. (#1336)

DEPENDENCIES:

  • deps: bumps golang.org/x/net from 0.11.0 to 0.12.0 (#1328)

v0.72.0

05 Jul 04:41
78fed4f
Compare
Choose a tag to compare

BREAKING CHANGES:

  • logpush: CheckAccountLogpushDestinationExists is removed in favour of CheckLogpushDestinationExists with ResourceContainer method parameter (#1326)
  • logpush: CheckZoneLogpushDestinationExists is removed in favour of CheckLogpushDestinationExists with ResourceContainer method parameter (#1326)
  • logpush: CreateAccountLogpushJob is removed in favour of CreateLogpushJob with ResourceContainer method parameter (#1326)
  • logpush: CreateZoneLogpushJob is removed in favour of CreateLogpushJob with ResourceContainer method parameter (#1326)
  • logpush: DeleteAccountLogpushJob is removed in favour of DeleteLogpushJob with ResourceContainer method parameter (#1326)
  • logpush: DeleteZoneLogpushJob is removed in favour of DeleteLogpushJob with ResourceContainer method parameter (#1326)
  • logpush: GetAccountLogpushFields is removed in favour of GetLogpushFields with ResourceContainer method parameter (#1326)
  • logpush: GetAccountLogpushJob is removed in favour of GetLogpushJob with ResourceContainer method parameter (#1326)
  • logpush: GetAccountLogpushOwnershipChallenge is removed in favour of GetLogpushOwnershipChallenge with ResourceContainer method parameter (#1326)
  • logpush: GetZoneLogpushFields is removed in favour of GetLogpushFields with ResourceContainer method parameter (#1326)
  • logpush: GetZoneLogpushJob is removed in favour of GetLogpushJob with ResourceContainer method parameter (#1326)
  • logpush: GetZoneLogpushOwnershipChallenge is removed in favour of GetLogpushOwnershipChallenge with ResourceContainer method parameter (#1326)
  • logpush: ListAccountLogpushJobsForDataset is removed in favour of ListLogpushJobsForDataset with ResourceContainer method parameter (#1326)
  • logpush: ListAccountLogpushJobs is removed in favour of ListLogpushJobs with ResourceContainer method parameter (#1326)
  • logpush: ListZoneLogpushJobsForDataset is removed in favour of ListLogpushJobsForDataset with ResourceContainer method parameter (#1326)
  • logpush: ListZoneLogpushJobs is removed in favour of ListLogpushJobs with ResourceContainer method parameter (#1326)
  • logpush: UpdateAccountLogpushJob is removed in favour of UpdateLogpushJob with ResourceContainer method parameter (#1326)
  • logpush: UpdateZoneLogpushJob is removed in favour of UpdateLogpushJob with ResourceContainer method parameter (#1326)
  • logpush: ValidateAccountLogpushOwnershipChallenge is removed in favour of ValidateLogpushOwnershipChallenge with ResourceContainer method parameter (#1326)
  • logpush: ValidateZoneLogpushOwnershipChallenge is removed in favour of ValidateLogpushOwnershipChallenge with ResourceContainer method parameter (#1326)
  • logpush: all methods are updated to use the newer client conventions for method signatures (#1326)

ENHANCEMENTS:

  • resource_container: expose Type on *ResourceContainer to explicitly denote what type of resource it is instead of inferring from Level. (#1325)

v0.71.0

04 Jul 21:59
11dabfb
Compare
Choose a tag to compare

BREAKING CHANGES:

  • access_application: refactor methods to use ResourceContainer instead of dedicated account/zone methods (#1319)
  • access_ca_certificate: refactor methods to use ResourceContainer instead of dedicated account/zone methods (#1319)
  • access_group: refactor methods to use ResourceContainer instead of dedicated account/zone methods (#1319)
  • access_identity_provider: refactor methods to use ResourceContainer instead of dedicated account/zone methods (#1319)
  • access_mutual_tls_certificates: refactor methods to use ResourceContainer instead of dedicated account/zone methods (#1319)
  • access_organization: refactor methods to use ResourceContainer instead of dedicated account/zone methods (#1319)
  • access_policy: refactor methods to use ResourceContainer instead of dedicated account/zone methods (#1319)
  • access_service_tokens: refactor methods to use ResourceContainer instead of dedicated account/zone methods (#1319)
  • access_user_token: refactor methods to use ResourceContainer instead of dedicated account/zone methods (#1319)
  • images: renamed BaseImage to GetBaseImage to match library conventions (#1322)
  • images: renamed ImageDetails to GetImage to match library conventions (#1322)
  • images: renamed ImagesStats to GetImagesStats to match library conventions (#1322)
  • images: updated method signatures of DeleteImage to match newer conventions and standards (#1322)
  • images: updated method signatures of ListImages to match newer conventions and standards (#1322)
  • images: updated method signatures of UpdateImage to match newer conventions and standards (#1322)
  • images: updated method signatures of UploadImage to match newer conventions and standards (#1322)

ENHANCEMENTS:

  • access_application: add support for auto pagination (#1319)
  • access_ca_certificate: add support for auto pagination (#1319)
  • access_group: add support for auto pagination (#1319)
  • access_identity_provider: add support for auto pagination (#1319)
  • access_mutual_tls_certificates: add support for auto pagination (#1319)
  • access_policy: add support for auto pagination (#1319)
  • device_posture_rule: support os_version_extra (#1316)
  • images: adds support for v2 when uploading images directly (#1322)
  • workers: Add ability to specify tail Workers in script metadata (#1317)

DEPENDENCIES:

  • deps: bumps dependabot/fetch-metadata from 1.5.1 to 1.6.0 (#1320)

Note: flarectl binary archives are now all tar.gz as opposed to the mixed extensions previously used.

v0.70.0

21 Jun 01:07
a8a0d74
Compare
Choose a tag to compare

BREAKING CHANGES:

  • cloudflare: remove UsingAccount in favour of resource specific attributes (#1315)
  • cloudflare: remove api.AccountID from client struct (#1315)
  • dns_firewall: modernise method signatures and conventions to align with the experimental client (#1313)
  • railgun: remove support for railgun (#1312)
  • tunnel: swap ConnectTimeout, TLSTimeout, TCPKeepAlive and KeepAliveTimeout to TunnelDuration instead of time.Duration (#1303)
  • virtualdns: remove support in favour of newer DNS firewall methods (#1313)

ENHANCEMENTS:

  • custom_nameservers: add support for managing custom nameservers (#1304)
  • load_balancing: extend documentation for least_outstanding_requests steering policy (#1293)
  • waiting_room: add support for additional_routes and cookie_suffix (#1311)

DEPENDENCIES:

  • deps: bumps github.com/hashicorp/go-retryablehttp from 0.7.3 to 0.7.4 (#1301)
  • deps: bumps github.com/urfave/cli/v2 from 2.25.5 to 2.25.6 (#1305)
  • deps: bumps github.com/urfave/cli/v2 from 2.25.6 to 2.25.7 (#1314)
  • deps: bumps golang.org/x/net from 0.10.0 to 0.11.0 (#1307)
  • deps: bumps goreleaser/goreleaser-action from 4.2.0 to 4.3.0 (#1306)

v0.69.0

06 Jun 22:02
b74b283
Compare
Choose a tag to compare

BREAKING CHANGES:

  • stream: StreamVideo.Duration has changed from int to float64. (#1190)

ENHANCEMENTS:

  • access: Added self_hosted_domains support to access applications (#1281)
  • custom_hostname: add support for bundle_method TLS configuration (#1298)
  • devices_policy: Add missing description field to policy (#1294)
  • stream: added metadata support (#1088)

BUG FIXES:

  • email_routing_destination: return encountered error, not ErrMissingAccountID all the time (#1297)
  • stream: Fix a bug that cannot unmarshal video duration number. (#1190)

DEPENDENCIES:

  • deps: bumps dependabot/fetch-metadata from 1.5.0 to 1.5.1 (#1292)
  • deps: bumps github.com/hashicorp/go-retryablehttp from 0.7.2 to 0.7.3 (#1300)
  • deps: bumps github.com/stretchr/testify from 1.8.3 to 1.8.4 (#1296)
  • deps: bumps github.com/urfave/cli/v2 from 2.25.3 to 2.25.5 (#1295)

v0.68.0

23 May 23:26
d252e40
Compare
Choose a tag to compare

BREAKING CHANGES:

  • r2_bucket: change creation time from string to *time.Time (#1265)

ENHANCEMENTS:

  • adds OriginRequest field to UnvalidatedIngressRule struct. (#1138)
  • lists: add support for hostname and ASN lists. (#1288)
  • pages: add support for Smart Placement. Added Placement in PagesProjectDeploymentConfigEnvironment. (#1279)
  • r2_bucket: add support for getting a bucket (#1265)
  • tunnels: add support for access and http2Origin keys (#1291)
  • workers: add support for Smart Placement. Added Placement in CreateWorkerParams. (#1279)
  • zone: Added GetCacheReserve and UpdateacheReserve to allow setting Cache Reserve for a zone. (#1278)

BUG FIXES:

  • dns: fix MX record priority not set by UpdateDNSRecord (#1290)
  • flarectl/dns: ensure MX priority value is dereferenced (#1289)
  • turnstile: remove SiteKey being sent in rotate secret's request body (#1285)
  • turnstile: remove SiteKey/Secret being sent in update request body (#1284)

DEPENDENCIES:

  • deps: bumps dependabot/fetch-metadata from 1.4.0 to 1.5.0 (#1287)
  • deps: bumps github.com/stretchr/testify from 1.8.2 to 1.8.3 (#1286)

v0.67.0

10 May 06:01
10cc0fd
Compare
Choose a tag to compare

NOTES:

  • dns_firewall: The OriginIPs field has been renamed to UpstreamIPs. (#1246)

ENHANCEMENTS:

  • device_posture_rule: add input fields tanium, intune and kolide (#1268)
  • waiting_room: add support for zone-level settings (#1276)

BUG FIXES:

  • rulesets: allow PreserveQueryString to be nullable (#1275)

DEPENDENCIES:

  • deps: bumps github.com/urfave/cli/v2 from 2.25.1 to 2.25.3 (#1274)
  • deps: bumps golang.org/x/net from 0.9.0 to 0.10.0 (#1280)