From 78f2edaf15f299ca5a17e310e1d63a8dd7b154b9 Mon Sep 17 00:00:00 2001 From: gg718 <126100364+gg718@users.noreply.github.com> Date: Thu, 12 Dec 2024 16:52:43 +0000 Subject: [PATCH] Add `subscribe` to list of allowed capabilities (#2293) * Add `subscribe` to list of allowed capabilities * changelog --------- Co-authored-by: gg718 Co-authored-by: JM Faircloth --- CHANGELOG.md | 4 ++++ vault/data_source_policy_document.go | 1 + 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4b1eb854bd..71d2fdb496 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,10 @@ FEATURES: * Add new resource `vault_pki_secret_backend_acme_eab` to manage PKI ACME external account binding tokens. Requires Vault 1.14+. ([#2367](https://github.com/hashicorp/terraform-provider-vault/pull/2367)) * Add new data source and resource `vault_pki_secret_backend_config_cmpv2`. Requires Vault 1.18+. *Available only for Vault Enterprise* ([#2330](https://github.com/hashicorp/terraform-provider-vault/pull/2330)) +IMPROVEMENTS: + +* Support the event `subscribe` policy capability for `vault_policy_document` data source ([#2293](https://github.com/hashicorp/terraform-provider-vault/pull/2293)) + ## 4.5.0 (Nov 19, 2024) FEATURES: diff --git a/vault/data_source_policy_document.go b/vault/data_source_policy_document.go index b6e6f5cf9d..664c566c82 100644 --- a/vault/data_source_policy_document.go +++ b/vault/data_source_policy_document.go @@ -41,6 +41,7 @@ var allowedCapabilities = []string{ "sudo", "deny", "patch", + "subscribe", } func policyDocumentDataSource() *schema.Resource {