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

Custom default template's directive #452

Open
kolya-ay opened this issue Apr 12, 2023 · 5 comments
Open

Custom default template's directive #452

kolya-ay opened this issue Apr 12, 2023 · 5 comments

Comments

@kolya-ay
Copy link

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

It would be very useful (at least for me) to able to extract in templates some Secret from some Credential Manager a la chezmoi.

E.g. .docker/config.json:

{
    "auths": {
        "registry.gitlab.com": {
            "auth": "{% include_secret "keepassxc" "Folder/Docker_{{ yadm.os }}/AuthAttribute" %}"
        }
    }
}

Describe the solution you'd like

It would be cool to have an ability to hook include_secret adapters (i.e "keepassxc") for different stores, or may be even have an ability to write custom directives (i.e. include_keepassxc) configured in somewhere in $YADM_DIR/config

Describe alternatives you've considered

For sure, this can be accomplished with ESH templates, but it's something that could be in core. That way default templates would cover all my use cases;)

@github-actions
Copy link

This issue has been labeled as stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the stale label Jun 12, 2023
@kolya-ay
Copy link
Author

I think still it's worth implementing

@github-actions github-actions bot removed the stale label Jun 13, 2023
@github-actions
Copy link

This issue has been labeled as stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the stale label Aug 13, 2023
@rasa
Copy link
Contributor

rasa commented Aug 17, 2023

Should issues be closed without review?

@github-actions github-actions bot removed the stale label Aug 18, 2023
@github-actions
Copy link

This issue has been labeled as stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the stale label Oct 17, 2023
@TheLocehiliosan TheLocehiliosan added 3 and removed stale labels Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants