i2group / analyze-deployment-tooling

Develop i2 Analyze configurations by using the configuration development environment. Review reference architectures for containerised deployments of i2 Analyze.
https://i2group.github.io/analyze-deployment-tooling/
Other
1 stars 1 forks source link

Logging of security failures #26

Closed bohdanszymanik closed 7 months ago

bohdanszymanik commented 7 months ago

Background on the problem the feature will solve/improved user experience

When creating a security configuration eg by modifying the default security-schema/command-access-control/user.registry xml files, it's difficult to understand why access is sometimes allowed versus not allowed.

It would be useful to have some logging facility in the analyze-containers server that could be turned on to give more explanation of why access is granted or not granted.

bohdanszymanik commented 7 months ago

OK, I've noticed that i2 Analyze supports log4j logging through the config/server.json file where you can do like the following: {.... }, "log": { ... } Using this we can see authorisation failures in the log eg WARN ... com.i2group.disco.catalogservice.internal.CatalogResourceDelegate - com.i2group.disco.common.exception.ForbiddenAccessException: The user has no access levels associated with any of the values in the following dimensions: [...]

The question I have is how do we configure the same logging in Analyze-Containers?

Anthony-Johnson-i2 commented 7 months ago

Hi @bohdanszymanik

In i2 Analyze we actually have a specific configuration file for the Log4j logging that defines where and what we log. In the non containerized deployments this can be found in the toolkit here :

image

There is an equivalent file in the configuration folder used by analyze-containers.

This tech note relates to a standard analyze deployment but the addition to the xml config file for log4J should work in your scenario as well.

https://support.i2group.com/s/article/2802

Cheers

bohdanszymanik commented 7 months ago

Great - that's what I needed. Got my logging going now.

Anthony-Johnson-i2 commented 7 months ago

Excellent news, thanks for letting us know.