n4bb12 / verdaccio-github-oauth-ui

📦🔐 GitHub OAuth plugin for Verdaccio
https://verdaccio.org
MIT License
71 stars 45 forks source link

Information request #175

Closed NudeNULL closed 1 year ago

NudeNULL commented 1 year ago

Hello, I have a small question on packages access setup from the config.yaml file.

I was trying hard to set up such configuration:

I tried 2 scenarios: 1st scenario: packages: "com.pckg1": access: github/org/Org-Name publish: github/user/user1

"com.pckg2": access: github/org/Org-Name publish: github/user/user2

"com.pckg3": access: github/org/Org-Name publish: github/user/user3

"**": access: github/org/Org-Name publish: github/org/Org-Name/team/admins

The result is that admins cannot publish into pckg1, pckg2 and pckg3, only in any other packages, that means that these 3 packages overwrite the admins access

2nd scenario: packages: "**": access: github/org/Org-Name publish: github/org/Org-Name/team/admins

"com.pckg1": access: github/org/Org-Name publish: github/user/user1

"com.pckg2": access: github/org/Org-Name publish: github/user/user2

"com.pckg3": access: github/org/Org-Name publish: github/user/user3

The result: Specific users cannot publish to their packages

3rd Scenario: packages: "com.pckg1": access: github/org/Org-Name publish: github/user/user1 github/org/Org-Name/team/admins

"com.pckg2": access: github/org/Org-Name publish: github/user/user2 github/org/Org-Name/team/admins

"com.pckg3": access: github/org/Org-Name publish: github/user/user3 github/org/Org-Name/team/admins

"**": access: github/org/Org-Name publish: github/org/Org-Name/team/admins

The result: I have to specify Admins group in every package like...it works, but it's dirty

Does this depend on this plugin or it is a Verdaccio thing?

Thanks!

n4bb12 commented 1 year ago

I find the examples hard to read. Could you add some formatting, please?