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

Add a way to allow requests by ip range #44

Open
josegonzalez opened this issue Aug 3, 2023 · 0 comments
Open

Add a way to allow requests by ip range #44

josegonzalez opened this issue Aug 3, 2023 · 0 comments

Comments

@josegonzalez
Copy link
Member

We should read a label like:

'--label=openresty.allowed_ips=127.0.0.1 123.0.0.0/32'

If specified, we would add something like the following:

satisfy all;
allow 127.0.0.1;
allow 123.0.0.0/32;
deny all;

If we detect an openresty.basic-auth label with user:password combinations, we would instead use:

satisfy any;
allow 127.0.0.1;
allow 123.0.0.0/32;
deny all;

and add the basic auth after as appropriate.

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

1 participant