Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,22 @@ When enabled, the secret registration server:

Clients can then fetch the key from Trustee CDH using attestation.

## Variables

### trustee_server_secure_logging

If `true`, suppress potentially sensitive output from tasks that handle
credentials, secrets, and other sensitive data by setting `no_log: true` on
those tasks. This prevents passwords, API tokens, private keys, and similar
sensitive information from appearing in Ansible logs and console output.

If you need to debug issues with credential handling or secret management, you
can temporarily set `trustee_server_secure_logging: false` to see the full output from
these tasks. However, be aware that this may expose sensitive information in
logs, so it should only be used in development or troubleshooting scenarios.

Default: `true`

## License

MIT
Expand Down
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ trustee_server_trustee: true
# Secret registration server service configuration
trustee_server_secret_registration_enabled: false
trustee_server_secret_registration_listen_port: 8081
trustee_server_secure_logging: true
1 change: 1 addition & 0 deletions tasks/secret_registration_server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

- name: Gather service facts for firewall check
ansible.builtin.service_facts:
no_log: "{{ ansible_verbosity < 2 }}"

- name: Allow secret registration server port in firewall
ansible.posix.firewalld:
Expand Down
3 changes: 2 additions & 1 deletion tasks/trustee_quadlet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,11 @@
cp {{ __trustee_server_config_dir }}/as/token.crt {{ __trustee_server_config_dir }}/kbs/trusted_certs/token0.crt
fi
changed_when: true
no_log: true
no_log: "{{ trustee_server_secure_logging }}"

- name: Gather service facts
ansible.builtin.service_facts:
no_log: "{{ ansible_verbosity < 2 }}"

- name: Allow port 8080 in firewall
ansible.posix.firewalld:
Expand Down
Loading