Skip to content

Conversation

moh2a
Copy link

@moh2a moh2a commented Sep 20, 2025

Description

This PR introduces a new Terraform data source vault_mounts that lists all enabled mounts in a Vault instance, including their path, type, description, options, and internal metadata (accessor, uuid, etc.).

Checklist

  • Added CHANGELOG entry (only for user-facing changes)
  • Acceptance tests where run against all supported Vault Versions

Output from acceptance testing:

$ TESTARGS="--run DataSourceMounts" make testacc
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test --run DataSourceMounts -timeout 30m ./...
?       github.com/hashicorp/terraform-provider-vault   [no test files]
?       github.com/hashicorp/terraform-provider-vault/cmd/coverage   [no test files]
?       github.com/hashicorp/terraform-provider-vault/cmd/generate   [no test files]
ok      github.com/hashicorp/terraform-provider-vault/codegen(cached) [no tests to run]
?       github.com/hashicorp/terraform-provider-vault/helper[no test files]
?       github.com/hashicorp/terraform-provider-vault/internal/consts        [no test files]
?       github.com/hashicorp/terraform-provider-vault/internal/framework/base        [no test files]
?       github.com/hashicorp/terraform-provider-vault/internal/framework/client      [no test files]
?       github.com/hashicorp/terraform-provider-vault/internal/framework/errutil     [no test files]
?       github.com/hashicorp/terraform-provider-vault/internal/framework/model       [no test files]
ok      github.com/hashicorp/terraform-provider-vault/internal/framework/validators  (cached) [no tests to run]
ok      github.com/hashicorp/terraform-provider-vault/internal/identity/entity       (cached) [no tests to run]
?       github.com/hashicorp/terraform-provider-vault/internal/identity/group        [no test files]
?       github.com/hashicorp/terraform-provider-vault/internal/identity/mfa  [no test files]
?       github.com/hashicorp/terraform-provider-vault/internal/pki   [no test files]
ok      github.com/hashicorp/terraform-provider-vault/internal/provider      (cached) [no tests to run]
?       github.com/hashicorp/terraform-provider-vault/internal/provider/fwprovider   [no test files]
?       github.com/hashicorp/terraform-provider-vault/internal/providertest  [no test files]
?       github.com/hashicorp/terraform-provider-vault/internal/rotation      [no test files]
?       github.com/hashicorp/terraform-provider-vault/internal/sync  [no test files]
ok      github.com/hashicorp/terraform-provider-vault/internal/vault/secrets/ephemeral       0.055s [no tests to run]
ok      github.com/hashicorp/terraform-provider-vault/internal/vault/sys     0.056s [no tests to run]
?       github.com/hashicorp/terraform-provider-vault/schema[no test files]
ok      github.com/hashicorp/terraform-provider-vault/testutil       (cached) [no tests to run]
ok      github.com/hashicorp/terraform-provider-vault/util  (cached) [no tests to run]
ok      github.com/hashicorp/terraform-provider-vault/util/mountutil (cached) [no tests to run]
ok      github.com/hashicorp/terraform-provider-vault/vault     1.494s

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" comments, they generate extra noise for pull request followers and do not help prioritize the request

PCI review checklist

  • I have documented a clear reason for, and description of, the change I am making.

  • If applicable, I've documented a plan to revert these changes if they require more than reverting the pull request.

  • If applicable, I've documented the impact of any changes to security controls.

    Examples of changes to security controls include using new access control methods, adding or removing logging pipelines, etc.

feat: add mounts datasource

feat: add mounts datasource
@moh2a moh2a requested review from a team as code owners September 20, 2025 21:05
@moh2a moh2a requested a review from jane-palash September 20, 2025 21:05
Copy link

hashicorp-cla-app bot commented Sep 20, 2025

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant