datalad / datalad-next

DataLad extension for new functionality and improved user experience
https://datalad.org
Other
7 stars 8 forks source link

External protocol for secret store adaptors #687

Open mih opened 4 months ago

mih commented 4 months ago

This issues replaces and continues from https://github.com/datalad/datalad-next/issues/224. It combines the idea from https://github.com/datalad/datalad-next/issues/684 with the need for versatile credential store support.

Problem

datalad-next already provides a credential manager that supersedes the credential handling in datalad-core. However, it does not provide a proper credential abstraction that would allow for using arbitrary secret stores. Instead it places the secrets into whatever python-keyring is configured to use, and all non-secret credential properties into the git-config. This is neat, but if one doesn't like it, there is no way around it.

Potential solution

Challenges

The capabilities of secret stores vary a lot. We need to re-evaluate our requirements and the operations we really really need vs those a helper could perform. Few thoughts: