Unable to add git provider as member
To Reproduce
- Create a user and give them the git providers permission
- Log into that user account and go to the git providers section
Current vs. Expected behavior
Currently if you have a user with the member role and you have given them the git providers permission i would expect they can add some for themselves, but they cannot.
Provide environment information
Operating system:
OS: Ubuntu 24.04.4 LTS
Arch: amd64
Dedicated server provider: Hetzner
Which area(s) are affected? (Select all that apply)
Installation
Are you deploying the applications where Dokploy is installed or on a remote server?
Same server where Dokploy is installed
Additional context
No response
Will you send a PR to fix it?
Maybe, need help
Hi @Bink-lab! I'm Dosu and I'm helping the Dokploy team.
This appears to be by design rather than a bug. The canAccessToGitProviders permission only grants read access — it lets members view/use existing git providers, but does not allow them to create new ones.
Here's why:
- The member role has an empty git provider permission set:
gitProviders: [][1] - The
canAccessToGitProvidersboolean override only grants read-level access, not create or delete [2] - All git provider creation endpoints require
withPermission("gitProviders", "create"), which members don't have [3] [4] [5] - The frontend also hides the "add" buttons when
permissions?.gitProviders.createis false [6]
Only the owner and admin roles have the full ["read", "create", "delete"] permissions for git providers .
Workarounds:
- Promote the user to the admin role, or
- With an enterprise license, create a custom role that includes explicit
gitProviders.createpermission
That said, I can see the UX expectation — if there's a "git providers permission" toggle, it's reasonable to expect it grants full access. This could be a valid feature request or a documentation/naming improvement to clarify what the permission actually grants.
To reply, just mention @dosu.
Docs are dead. Just use Dosu.