Skip to content

Add no_log: true to secret parameters in role argument specifications #592

Description

@Normo

Motivation

Follow-up to #195: the argument validation task echoes parameter values on validation errors and in verbose mode, so passwords and tokens can leak into CI logs. Setting no_log: true masks them.

Proposal

Convention: every secret parameter (password, token, key) in an argument_specs.yml sets no_log: true.

Affected: redis_password, redis_sentinel_password (redis), gitlab_redis_password, gitlab_gitaly_token, gitlab_secret_token, gitlab_postgresql_db_password (gitlab), authentication_token, cache_secret_key (gitlab_runner), keepalived_auth_pass (keepalived), haproxy_stats_admin_user_password (haproxy).

Note: this only masks Ansible output; it is no substitute for Vault.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions