harness / gitness

Gitness is an Open Source developer platform with Source Control management, Continuous Integration and Continuous Delivery.
https://gitness.com
Apache License 2.0
32.09k stars 2.8k forks source link

Failed to authenticate with credentials on repository #3396

Closed m10rten closed 11 months ago

m10rten commented 11 months ago

I have the following compose, nothing else (yet):

name: gitness
services:
  ship:
    image: harness/gitness:latest
    ports:
      - 3000:3000
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - /tmp/gitness:/data
      - gitness:/app
    restart: always
volumes:
  gitness: {}

In app I created the following credentials, on localhost:3000

UID: a email: test@test.ts password: Test123

And I was able to sign in, in the web UI.

But once I created a private repository and tried to pull, I was asked to authenticate (obviously since it is a new remote) so I tried with both UID + pass & email + pass. Both failed on me, even after resetting the password and getting: xnL23vsZRX : a generated pass from gitness, it still failed for UID and email.

So what could I be doing wrong?

m10rten commented 11 months ago

Figured it out, it doesn't clearly say so in the docs, but you need to generate an API token for the git functionality.