Skip to content

VAULT_TOKEN leakage in Vault docker testcluster environment using version v0.25.1. #32036

Description

@brettbergin

Hello,

While reviewing some of our Github Actions logging, we noticed leakage of our vault tokens in plain text. After reviewing the source code for the sdk, we found this line that prints the plaintext VAULT_TOKEN to STDOUT.

Offending Code:

dc.Logger.Trace("cluster started", "helpful_env", fmt.Sprintf("VAULT_TOKEN=%s VAULT_CACERT=/vault/config/ca.pem", dc.GetRootToken()))

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions