msl
msl
CDCloudflare Developers
Created by bobbyjohnson on 10/12/2024 in #terraform-provider-cloudflare
@msl make sure your api key has all the
As a test I created a new API token with edit access on all resources and this fails with the same error. I think that rules out API key permissions.
2 replies
CDCloudflare Developers
Created by bobbyjohnson on 10/12/2024 in #terraform-provider-cloudflare
@msl make sure your api key has all the
I think it has all the access needed according to the api-next documentation. I don't see the access needed documented in the current api documentation, but I've added a bunch of permissions for anything that said apps, applications, or zero trust. Current documentation: https://developers.cloudflare.com/api/operations/zone-level-access-applications-add-a-bookmark-application The api-next documentation specifies the Access: Apps and Policies, which is one that I do have granted: https://developers.cloudflare.com/api-next/resources/zero_trust/subresources/access/subresources/applications/
2 replies
Hello all. I'm trying to configure a
I'm pretty sure my config matches the documentation. I don't have anything crazy:
resource "cloudflare_zero_trust_access_application" "devportal_tunnel" {
zone_id = var.zone_id
name = "Access application for devportal_tunnel"
domain = "devportal.mydomain.com/"
session_duration = "24h"
}
resource "cloudflare_zero_trust_access_application" "devportal_tunnel" {
zone_id = var.zone_id
name = "Access application for devportal_tunnel"
domain = "devportal.mydomain.com/"
session_duration = "24h"
}
6 replies
Hello all. I'm trying to configure a
I've tried the 4.43 and 4.42 providers. The 5.0 returned some errors about having a bug that should be reported to the opentofu devs.
6 replies
Hello all. I'm trying to configure a
Here's what the request looks like. It includes the parameters domain and type that are required per the documentation.
2024-10-10T21:44:26.140-0500 [DEBUG] provider.terraform-provider-cloudflare_v4.42.0: POST /client/v4/zones/f86......../access/apps HTTP/1.1
2024-10-10T21:44:26.140-0500 [DEBUG] provider.terraform-provider-cloudflare_v4.42.0: Host: api.cloudflare.com
2024-10-10T21:44:26.140-0500 [DEBUG] provider.terraform-provider-cloudflare_v4.42.0: User-Agent: terraform-provider-cloudflare/4.42.0 terraform-plugin-sdk/2.34.0 terraform/1.8.3
2024-10-10T21:44:26.140-0500 [DEBUG] provider.terraform-provider-cloudflare_v4.42.0: Content-Length: 587
2024-10-10T21:44:26.140-0500 [DEBUG] provider.terraform-provider-cloudflare_v4.42.0: Authorization: Bearer [redacted]
2024-10-10T21:44:26.140-0500 [DEBUG] provider.terraform-provider-cloudflare_v4.42.0: Content-Type: application/json
2024-10-10T21:44:26.140-0500 [DEBUG] provider.terraform-provider-cloudflare_v4.42.0: Accept-Encoding: gzip
2024-10-10T21:44:26.140-0500 [DEBUG] provider.terraform-provider-cloudflare_v4.42.0
2024-10-10T21:44:26.140-0500 [DEBUG] provider.terraform-provider-cloudflare_v4.42.0: {"app_launcher_visible":true,"auto_redirect_to_identity":false,"domain":"devportal.mydomain.com/","enable_binding_cookie":false,"http_only_cookie_attribute":false,"name":"Access application for devportal_tunnel","private_address":"","self_hosted_domains":null,"service_auth_401_redirect":false,"session_duration":"24h","skip_interstitial":false,"options_preflight_bypass":false,"type":"self_hosted","landing_page_design":{"title":"","message":"","image_url":"","button_color":"","button_text_color":""},"app_launcher_logo_url":"","header_bg_color":"","bg_color":"","footer_links":null}
2024-10-10T21:44:26.612-0500 [DEBUG] provider.terraform-provider-cloudflare_v4.42.0: 2024/10/10 21:44:26
2024-10-10T21:44:26.612-0500 [DEBUG] provider.terraform-provider-cloudflare_v4.42.0: HTTP/2.0 400 Bad Request
2024-10-10T21:44:26.140-0500 [DEBUG] provider.terraform-provider-cloudflare_v4.42.0: POST /client/v4/zones/f86......../access/apps HTTP/1.1
2024-10-10T21:44:26.140-0500 [DEBUG] provider.terraform-provider-cloudflare_v4.42.0: Host: api.cloudflare.com
2024-10-10T21:44:26.140-0500 [DEBUG] provider.terraform-provider-cloudflare_v4.42.0: User-Agent: terraform-provider-cloudflare/4.42.0 terraform-plugin-sdk/2.34.0 terraform/1.8.3
2024-10-10T21:44:26.140-0500 [DEBUG] provider.terraform-provider-cloudflare_v4.42.0: Content-Length: 587
2024-10-10T21:44:26.140-0500 [DEBUG] provider.terraform-provider-cloudflare_v4.42.0: Authorization: Bearer [redacted]
2024-10-10T21:44:26.140-0500 [DEBUG] provider.terraform-provider-cloudflare_v4.42.0: Content-Type: application/json
2024-10-10T21:44:26.140-0500 [DEBUG] provider.terraform-provider-cloudflare_v4.42.0: Accept-Encoding: gzip
2024-10-10T21:44:26.140-0500 [DEBUG] provider.terraform-provider-cloudflare_v4.42.0
2024-10-10T21:44:26.140-0500 [DEBUG] provider.terraform-provider-cloudflare_v4.42.0: {"app_launcher_visible":true,"auto_redirect_to_identity":false,"domain":"devportal.mydomain.com/","enable_binding_cookie":false,"http_only_cookie_attribute":false,"name":"Access application for devportal_tunnel","private_address":"","self_hosted_domains":null,"service_auth_401_redirect":false,"session_duration":"24h","skip_interstitial":false,"options_preflight_bypass":false,"type":"self_hosted","landing_page_design":{"title":"","message":"","image_url":"","button_color":"","button_text_color":""},"app_launcher_logo_url":"","header_bg_color":"","bg_color":"","footer_links":null}
2024-10-10T21:44:26.612-0500 [DEBUG] provider.terraform-provider-cloudflare_v4.42.0: 2024/10/10 21:44:26
2024-10-10T21:44:26.612-0500 [DEBUG] provider.terraform-provider-cloudflare_v4.42.0: HTTP/2.0 400 Bad Request
6 replies