Skip to content

Do not disclose secret content when failing to validate envs #125

@Lucaazel

Description

@Lucaazel

func processWith(ctx context.Context, c *Config) error is leaking the secret content when it fails to validate it.
Would it be possible to remove the val from here?

A quick fix could be:
return fmt.Errorf("%s: %w", tf.Name, err)

This is disclosing the secret when logging the error of the validation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions