Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow custom lookup functions #165

Merged
merged 3 commits into from
Aug 10, 2023
Merged

Allow custom lookup functions #165

merged 3 commits into from
Aug 10, 2023

Conversation

oneiros
Copy link
Collaborator

@oneiros oneiros commented Jul 5, 2023

This implements the solution outlined in #162 (comment)

I am still not convinced this addition is a sensible one. It only makes sense in a scenario where a custom lookup function behaves exactly like an existing backend. And I wonder if this a) is a common enough scenario to want to support it and b) makes sense in the first place. (Why would you have a custom lookup function if it is 100% equivalent to an existing one?)

Of course, currently HDM makes no actual "lookup", so I can imagine that there could be a custom lookup function based on e.g. eyaml, that is still useful to treat as (vanilla) eyaml in HDM, but will behave differently in hiera 🤷

Please note that since I have no access to an environment with such a function, I have not tested this in a "real world" scenario.

(This branch is based off #164 which should be merged first)

Fixes #162

Latest security fixes for rails plus a bunch of
minor updates.
We do not (and cannot support) custom lookup functions per se,
but in case they map cleanly to an existing backing, e.g. eyaml,
this allows to specify this mapping, so everything should then
work as expected.
@oneiros oneiros requested a review from a team as a code owner July 5, 2023 11:43
rwaffen
rwaffen previously approved these changes Jul 5, 2023
tuxmea
tuxmea previously approved these changes Aug 10, 2023
@tuxmea tuxmea dismissed stale reviews from rwaffen and themself via eb9f763 August 10, 2023 12:09
@tuxmea tuxmea merged commit abf43f6 into main Aug 10, 2023
7 checks passed
@tuxmea tuxmea deleted the issue-162 branch August 10, 2023 12:13
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.

No custom lookup function allowed
3 participants