yadm
yadm copied to clipboard
Custom default template's directive
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;)
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.
I think still it's worth implementing
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.
Should issues be closed without review?
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.