#2868 [1.24.1] git user name are not forward to the builder
Closed: Fixed 2 years ago by tkopecek. Opened 2 years ago by frank-mdc.

When an user name is needed for the git checkout to build the srpm package, it will lost at the builder.
Sample:
On the client:
koji build --scratch <tagret> 'git+https://<username>@<git server>/<path to repo>#<tag>'
But the check out on the builder(checkout.log) fails with:
fatal: could not read Username for 'https://<git server>': No such device or address
It looks like the user name was not forward from the client to the hub/builder.


User is allowed in git+ssh scheme. Isn't that git server allowing also that option (as a workaround)? We can add support for that anyway.

Metadata Update from @tkopecek:
- Custom field Size adjusted to None

2 years ago

Metadata Update from @tkopecek:
- Issue set to the milestone: 1.26

2 years ago

Or I am on the total wrong way to set the credentials for the https git access?

It depends - I don't know that repo :-) git+https + user is completely valid usage for git repos. Anyway, vast majoristy of repos we're tackling with has anonymous access via https, so we just hadn't hit git+https+user combination.

Setting credentials is not that easy - we can't pass password from user to builder (it would be visible in too many places), so only administrator can put credentials on every builder (PR #1640). So, mostly only repos accessible without authentication makes sense for end-user. So, we're stripping username intentionally there.

In that case it is an git repo accessible via git+https with user name + password.
But the password is not an real password. It is only an token with read only permissions.
It works like git hub when using git tokens.

Ok, then we have to add support for that. Added to next release - should be simple change.

Metadata Update from @tkopecek:
- Issue tagged with: feature

2 years ago

Metadata Update from @tkopecek:
- Issue set to the milestone: 1.27 (was: 1.26)

2 years ago

Metadata Update from @jcupova:
- Issue tagged with: testing-ready

2 years ago

Metadata Update from @mfilip:
- Issue tagged with: testing-done

2 years ago

Login to comment on this ticket.

Metadata
Related Pull Requests
  • #3068 Closed 2 years ago
  • #3067 Merged 2 years ago