cnoe-io / idpbuilder

Spin up a complete internal developer platform with only Docker required as a dependency.
https://cloud-native.slack.com/archives/C05TN9WFN5S
Apache License 2.0
194 stars 59 forks source link

generate gitea token #392

Closed nabuskey closed 1 month ago

nabuskey commented 1 month ago

This PR makes idpbuilder generate a Gitea admin token. This is useful for use cases such as:

Partially fixes: https://github.com/cnoe-io/idpbuilder/issues/378

Example output:

./idpbuilder get secrets -o json -p gitea
[
  {
    "name": "gitea-credential",
    "namespace": "gitea",
    "data": {
      "password": "E_aaaaa'",
      "token": "aaaaaa",
      "username": "giteaAdmin"
    }
  }
]
cmoulliard commented 1 month ago

What is the duration of the Token ? Can a user renew it ? @nabuskey

nabuskey commented 1 month ago

What is the duration of the Token ? Can a user renew it ? @nabuskey

No expiration. I don't think Gitea supports it until they move to JWT: https://github.com/go-gitea/gitea/issues/4793