ACL / Authorization With Caddy
We have a config.xml file we wish to make available via Caddy to approximately six VOIP softphones connected to a private Asterisk-based PBX.
However, we'd like to somehow deny access to this file (it contains various credentials) to all but a specified list of devices or users.
Is this something Caddy can do itself or be provided via caddy-security module?
@PackMeister , create policy that restricts access to everyone but a specific set of roles. Then, use caddy’s path match for the file and authorize access with that policy.
Would the policy be created in/with stock Caddy?
Or with the caddy-security module?
Are there any docs or links with examples illustrating your suggestion?
Would the policy be created in/with stock Caddy? Or with the caddy-security module? Are there any docs or links with examples illustrating your suggestion?
@PackMeister , all config examples are here: https://github.com/authp/authp.github.io/tree/main/assets/conf
However, we'd like to somehow deny access to this file (it contains various credentials) to all but a specified list of devices or users.
@PackMeister , this one is connected to network-based ACL. See related request https://github.com/greenpau/caddy-security/issues/181