go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
44.37k stars 5.43k forks source link

Organization and Repository level access token #25900

Open folliehiyuki opened 1 year ago

folliehiyuki commented 1 year ago

Feature Description

It would be nice to have a more limited access token than user access token.

I'm a long time GitLab user, so this is just my way of wanting its feature in Gitea. Also, Repository and Organization access token should also have configurable scopes at creation time.

Ref: https://docs.gitlab.com/ee/security/token_overview.html

Screenshots

No response

folliehiyuki commented 1 year ago

I just discovered that someone already asked the same question in https://discourse.gitea.io/t/are-there-organisation-access-tokens/7082.

KagurazakaNyaa commented 11 months ago

It seems to be the solution of #26746. A workaround based on service account is provided in #26754.

camlafit commented 6 months ago

Hello

Looks interesting. At repository level we have yet keys application to allow external acces with ssh key. In other case, we need an http access and token use. If it's possible to manage application access with ssh or token could be very nice.

Thanks a lot

lunny commented 6 months ago

I think an organization-level access token could be the first target because it's similar to a user-level one.

zapling commented 2 months ago

This would make it way more secure when using ArgoCD in a kuberentes setup. This way we could give a more fine grained access based on the orgs.

jeromecossette-qc commented 1 month ago

Any development on that ? It would be really useful