java-buildpack icon indicating copy to clipboard operation
java-buildpack copied to clipboard

app-agent-config.xml - use of regex to mask segment data

Open aleques opened this issue 3 years ago • 2 comments

Hi,

I'm trying to use match-pattern - regex but it does not work properly. E.g.:

        <sensitive-url-filter delimiter="/"
                              segment="3,4,5,6"
                              match-filter="REGEX"
                              match-pattern=":"
                              param-pattern="myParam|myAnotherParam"/>

this should mask selected segments that contains : but it masks everything. If I do match-pattern="=" it works as expected. Another examples that does not work (they mask everything): match-pattern="[^a-z¦-]+" match-pattern="\x3A"

Is there any subset of regular expression that it's allowed to use here ? Thanks

aleques avatar Sep 15 '22 15:09 aleques

I don't believe the buildpack is consuming that file, it's just being passed through to the AppDynamics agent. You would need to ask the vendor what they support in that configuration file.

dmikusa avatar Sep 15 '22 18:09 dmikusa

I don't believe the buildpack is consuming that file, it's just being passed through to the AppDynamics agent. You would need to ask the vendor what they support in that configuration file.

Thank you I'll contact them

aleques avatar Sep 15 '22 23:09 aleques