Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request placeholder in upstream #23

Open
rucciva opened this issue Oct 17, 2018 · 1 comment
Open

Request placeholder in upstream #23

rucciva opened this issue Oct 17, 2018 · 1 comment

Comments

@rucciva
Copy link

rucciva commented Oct 17, 2018

Hi, first of all, thanks for making this awesome plugins.

i would like to know if it is possible to include request placeholder in upstream url?

I would like to use it to protect my private docker registry using my private gitea. currently, i am able to permit only user of my gitea to access the private registry. But i would like to add additional access control, that is to make sure the user of the private registry are also the user or a member of an organization in gitea. e.g /v2/someuser/* in registry can only be accessed by user someuser or member of someuser (if someuser is an organization).

so i am thinking of passing the request path to the upstream uri, e.g. upstream url=https://my.gitea.host/v1/api{path},

@howardlau1999
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants