-
Notifications
You must be signed in to change notification settings - Fork 4
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 option to ignore allow_list
for a certain route
#17
Add option to ignore allow_list
for a certain route
#17
Conversation
Sorry, I just realised the template is not yet working. I'll give an update, once I fixed the issues and the PR is actually ready for a review. |
There are cases where most of the routes should only be allowed for the IP addresses defined in `allowlist`, but certain routes should be available publicly.
522a8e2
to
3798334
Compare
Would now be ready for a review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would appreciate if you can extend the reverse-proxy
Molecule testing scenario. I imagine:
- in
molecule/reverse-proxy/converge.yml
, add an additional entry tocaddy_sites
likemixed.example.com
, one route will use an allowlist and the other one will be public. - Run
molecule create && molecule converge
- Copy the generated Caddyfile from the Molecule container (using
molecule login
, the Caddyfile is at/etc/caddy/Caddyfile
) tomolecule/reverse-proxy/files/Caddyfile.expected
.
Sure, I'll do that. |
As just discussed on slack: I'll change the name of the new variable to |
public
to routes to ignore site.allowlist
allow_list
for a certain route
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
perfect, thank you very much!
There are cases where most of the routes should only be allowed for the IP addresses defined in
allowlist
, but certain routes should be available publicly.