Skip to content

[FEAT] unable to list & retrieve all secrets under a path #591

Description

@priya135792

Is your feature request related to a problem? Please describe.

Current behavior:
Vault Action currently requires listing every secret path manually. I’m unable to retrieve all secrets under a secret engine path (e.g., secret/myapp/) in a single step. This becomes difficult when keys keep changing or when I want to fetch an entire directory.

Describe the solution you'd like

Add support for:

Providing a base path (e.g., secret/myapp/)
Automatically listing all keys under that path
Automatically reading all secrets (optionally recursive)
Exporting them as environment variables, outputs, or JSON

Describe alternatives you've considered

Manually listing each secret → not scalable
Using Vault CLI inside workflow → adds complexity
Writing custom scripts → unnecessary duplication

Additional context

I’m using KV v2 and want to dynamically retrieve all secrets without maintaining a long list in GitHub Actions YAML.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions