"Disable access to check_mk/local/agents/"

Hello,

I have a suggestion for the following werk: Werk #17348: Disable access to check_mk/local/agents/

Could this setting be set in the future via an environment variable for Docker?
I think not few people of the Raw edition probably use it for deploying updates.

Of course one could change the config in the docker container, but that would be much more convenient.

Greetings
Max

2 Likes

Welcome back to the forum @PrieserMax and thanks for yor suggestion!

There is a significantly easier way though: The Werk mentions this:

If you rely on that path being accessible you can add a custom configuration file to the site apache, e.g. etc/apache/conf.d/000_custom.conf.

So just bind-mount your custom configuration file with the content outlined in the Werk read-only into the container and you are all set. Including update persistence. :slight_smile:

Hello Robin,
thank you very much.
This will probably be the solution if no environment variable is available.
Greetings
Max

An environment variable actually makes little sense here. As in “huge effort, little value”. Especially, as the solution outlined below works with built-in Docker functionality and is easy to use as-is.

Funnily, upon updating it’s still without any change
Since I’m not so much into docker, I didn’t get the mount to actually bind.
But however, it works :slight_smile: