Add secret flag support for webhook headers via new headers_v2 attribute#149
Add secret flag support for webhook headers via new headers_v2 attribute#149
Conversation
Co-authored-by: demeyerthom <8173199+demeyerthom@users.noreply.github.com>
|
@copilot we should not make backwards breaking changes. I would prefer creating a second field called |
…secret support Co-authored-by: demeyerthom <8173199+demeyerthom@users.noreply.github.com> Agent-Logs-Url: https://github.com/labd/terraform-provider-contentful/sessions/30d7c731-b14d-4b08-894d-32c7f811e8d7
Done in commit c364744. The old |
|
@copilot You are also missing the documentation update. If you can run |
Co-authored-by: demeyerthom <8173199+demeyerthom@users.noreply.github.com> Agent-Logs-Url: https://github.com/labd/terraform-provider-contentful/sessions/5c83a4b2-4f84-403f-aae3-527ed2a4dc0a
Done in commit 24dc59b. The environment doesn't have Terraform in PATH so
Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
headersas the original deprecatedMapAttribute(backwards compatible, withDeprecationMessageandConflictsWith(headers_v2))headers_v2asSetNestedAttributewithkey,value(sensitive),secret(default: false) fields andConflictsWith(headers)Webhookmodel struct to support bothHeaders map[string]types.StringandHeadersV2 []WebhookHeaderheaders_v2, populateHeadersV2from API response with secret value preservation; otherwise clearHeadersV2examples/resources/contentful_webhook/resource.tfto showheaders_v2usage (with a secret header example) and the deprecatedheadersformdocs/resources/webhook.mdto reflect the newheaders_v2attribute, nested schema, and deprecatedheadersannotationTestWebhookResource_Basictest (legacyheadersformat)TestWebhookResource_HeadersV2acceptance test for the newheaders_v2fieldOriginal prompt
💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.