|
Brian Conner all credit goes to Peter Huene for this.
The redaction is not part of the agent's catalog in /opt/puppetlabs/puppet/cache/client_data/catalog/*.json therefore the sensitive data CAN be seen in the catalog.
Sample catalog contents:
{
|
"catalog_format": 1,
|
"catalog_uuid": "ab92ecb0-29e1-458f-9ca3-bce57c5c34b8",
|
"classes": [
|
"settings",
|
"default",
|
"sensitive_exec"
|
],
|
"code_id": null,
|
...
|
"environment": "production",
|
"name": "t3z16k3wvmq7442.delivery.puppetlabs.net",
|
"resources": [
|
...
|
{
|
"exported": false,
|
"file": "/etc/puppetlabs/code/environments/production/modules/sensitive_exec/manifests/init.pp",
|
"line": 3,
|
"parameters": {
|
"command": "/bin/false TOPSECRET"
|
},
|
"sensitive_parameters": [
|
"command"
|
],
|
"tags": [
|
"exec",
|
"sensitive_false",
|
"class",
|
"sensitive_exec",
|
"node",
|
"default"
|
],
|
"title": "sensitive_false",
|
"type": "Exec"
|
},
|
{
|
"exported": false,
|
"file": "/etc/puppetlabs/code/environments/production/modules/sensitive_exec/manifests/init.pp",
|
"line": 6,
|
"parameters": {
|
"command": "/bin/true TOPSECRET"
|
},
|
"sensitive_parameters": [
|
"command"
|
],
|
"tags": [
|
"exec",
|
"sensitive_true",
|
"class",
|
"sensitive_exec",
|
"node",
|
"default"
|
],
|
"title": "sensitive_true",
|
"type": "Exec"
|
}
|
...
|
Please see Peter Huene's comment in the PR that the provider will need to be changed to address this. https://github.com/puppetlabs/puppet/pull/5502
|