cloudfoundry / java-buildpack

Cloud Foundry buildpack for running Java applications
Apache License 2.0
437 stars 2.58k forks source link

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

Open aleques opened 1 year ago

aleques commented 1 year ago

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

dmikusa commented 1 year ago

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.

aleques commented 1 year ago

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