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

question: ACL in Caddy #301

Closed
jayadevx opened this issue Nov 29, 2023 · 10 comments
Closed

question: ACL in Caddy #301

jayadevx opened this issue Nov 29, 2023 · 10 comments
Assignees
Labels
acl question Further information is requested

Comments

@jayadevx
Copy link

Hello there,

1/ Is there a way to create ACL in Caddy?
like
allow {condition} /images
deny {condition} /private

2/ Can we do this via API dymamically?

Best,
Jay

@jayadevx jayadevx added need triage question Further information is requested labels Nov 29, 2023
@greenpau
Copy link
Owner

greenpau commented Dec 2, 2023

1/ Is there a way to create ACL in Caddy?

@jayadevx , generally speaking it is done using a combination of request matchers and handle directive.

2/ Can we do this via API dymamically?

No.

@greenpau greenpau closed this as completed Dec 2, 2023
@greenpau greenpau added acl and removed need triage labels Dec 2, 2023
@jayadevx
Copy link
Author

jayadevx commented Dec 2, 2023

Thank you for your response @greenpau. Do you have some examples?

@greenpau
Copy link
Owner

greenpau commented Dec 2, 2023

@jayadevx , here it is #181 (comment)

@greenpau
Copy link
Owner

greenpau commented Dec 2, 2023

@jayadevx , in your case it might be

test.example.com {
	@images {
	        path /images
	}
	handle @images{
                authorize with imagepolicy
	        reverse_proxy destination:80
	}
	handle {
	        authorize with adminpolicy
	        reverse_proxy destination:80
	}
}

@jayadevx
Copy link
Author

jayadevx commented Dec 3, 2023

Thank you @greenpau

@greenpau
Copy link
Owner

@jayadevx, I am looking to add testimonial sections to https://authcrunch.com. Could you please write one and send it to me at [email protected]?

@jayadevx
Copy link
Author

jayadevx commented Mar 11, 2024 via email

@greenpau
Copy link
Owner

I donno if I have used authcrunch.com. is it same as caddy?

@jayadevx , it is what powers caddy-security.

@jayadevx
Copy link
Author

jayadevx commented Mar 11, 2024 via email

@greenpau
Copy link
Owner

Ok! Can you give some sample testimonial?

@jayadevx , gemini.google.com, prompt. Then, edit to match the reality of your usage.

write me a testimonial for the following:

I use Caddy Security app for Caddy web server for my internal web servers. It does good job at integrating my LDAP users and internal web apps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
acl question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants