yadm icon indicating copy to clipboard operation
yadm copied to clipboard

Custom default template's directive

Open kolya-ay opened this issue 1 year ago • 5 comments

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;)

kolya-ay avatar Apr 12 '23 23:04 kolya-ay

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[bot] avatar Jun 12 '23 02:06 github-actions[bot]

I think still it's worth implementing

kolya-ay avatar Jun 12 '23 10:06 kolya-ay

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[bot] avatar Aug 13 '23 01:08 github-actions[bot]

Should issues be closed without review?

rasa avatar Aug 17 '23 13:08 rasa

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[bot] avatar Oct 17 '23 01:10 github-actions[bot]