-
Notifications
You must be signed in to change notification settings - Fork 289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
redact parameter causes errors #834
Comments
So @ghoneycutt I've explored a bit the issue. The referenced commit sets an empty array as default value for redact, and this creates in /etc/sensu/conf.d/client.json a line like:
This allows this entry to be recognised and changeable by sensu_client_config type. So the commit solves the problem when a new configuration is created from scratch, but there's a caveat: if there's an existing /etc/sensu/conf.d/client.json but without any 'redact' (or 'subscriptions') entry we bumb again in the error which traces back to:
Probably @jeffmccune has better understanding on how the json provider for sensu_client_config works. |
Ok, after some digging, alvagante@9206f0f seems to fix the problem. But since is mostly a copy and paste with limited introspection, I'd ask for @jeffmccune opinion. |
Set a defauly empty array for redact #834
Released in v2.38.1 |
Description of problem
Attempted to use redact by setting the redact parameter to the sensu class with the value
["password", "passwd", "pass", "api_key", "api_token", "access_key", "secret_key", "private_k ey", "secret", "ec2_access_key", "ec2_secret_key"],
Catalog compilation fails.
For the catalog to compile and redact those fields.
Include the sensu class with the
redact
parameter set to the values above.Command used and debugging output
The text was updated successfully, but these errors were encountered: