I tested configurations of the ARA client to try to exclude them, using the ignored_files parameter, among others, without success. Is there a known working pattern or an option I overlook to exclude only these temporary credential extra vars files from being recorded by ARA, while still retaining other non-sensitive extra vars?
(I must say: I know it’s still an AWX/Tower 3.8.5 here, but unfortunately that’s how it is… I hope it won’t be for much longer!)
The files included in a pattern provided to ARA_IGNORED_FILES will still be created but they should be empty a bit like this from the integration tests:
The fact that credentials are provided as temporary extra vars files by AWX/Tower, with dynamical id and random strings in name and path, and in the same path as all other files of the job, means that we cannot find a fixed string to use in ignored_files to only exclude credentials.
I think that in this case, it should be possible to use a regex in ignored_files, for example:
/tmp/bwrap_.*/awx_.*/tmp.*
Or is there something else possible?
If not, do you think it would be useful to open an issue and look at this implementation? (I’m willing to try to come up with something, if it makes sense.)
It could be improved to be a list of regex patterns instead, I guess.
Feel free to create an issue, no problem with a PR that lets the use case work for you.