Skip to content

submodule specific credentials #796

@qcho

Description

@qcho

Hi,

I've been using git-sync v4.0.0 without any issues until I stumbled upon a repository with git-submodules.
At first glance it should work but the credentials strategy i'm currently using isn't compatible.

I'm creating specific "project access tokens" so that i can access repositoryA with usernameA and passwordA; but in this case repositoryA depends of repositoryB. When the sync pulls repositoryB I get an invalid username error message since the ones provided in the env via GITSYNC_USERNAME/PASSWORD don't match.

I've tried to use the GITSYNC_ASKPASS_URL and start a service that will provide credentials but in the askpass request i don't get any information of what repo is being asked so provide a dynamic response.

I also tried to create a .git-credentials file but failed.

Any recommended solution that I'm missing or feature that i can help with?

Thanks in advance! Great tool.

Context info:

  • Because of limitations of the git provider you cannot share credentials between projects so I need to provide specific credentials usernameB + passwordB. For security reasons I would like to stick to single-project tokens.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions