Skip to content

[BUG] Bugfix for #62651 broke existing functionality for ext_pillar vault KV v2 #66333

Description

@vshalchian

Description

Before the bugfix for #62651 the behavior of ext_pillar for vault KV v2 was having the data under "data" key. Since that was the case I had all my code set up pointing to pillar['data'] and looked at it as a feature.
After the fix in #62653 , the behavior is changed and pillars are not under 'data' key anymore which causes my salt state code to be broken and I cannot upgrade to newer versions unless I do a massive refactoring on my codebase.

My suggestion is adding a configuration directive to enable previous behavior of having the 'data' key back.

Setup
[...]
ext_pillar:

  • vault: path=salt/pillar/path
    [...]

Steps to Reproduce the behavior
salt 'minion1' pillar.items
centos51:
----------
secrets:
----------
key1:
----------
key2:
----------

Expected behavior
salt 'minion1' pillar.items
centos51:
----------
data:
----------
secrets:
----------
key1:
----------
key2:
----------

Screenshots
If applicable, add screenshots to help explain your problem.

Versions Report

salt --versions-report (Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)
PASTE HERE

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugbroken, incorrect, or confusing behaviorneeds-triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions