Skip to content

fix(plugins): hide input in validation errors #646

Closed

Description

@uniqueg

hide_input_in_errors is set on FOCA's own config models only. plugins.available.<id>.config and step params are validated against plugin-owned models, and the error, with its input_value, goes into the startup ValueError. For a mistyped key or a missing field next to a token, this can put a secret into the pod logs. The custom configuration chains the same kind of error with from exc, so a traceback shows it too.

The migration guide to 0.20.0 says that validation errors of the configuration no longer show the input, which is not true for these paths.

Format these errors without input (location and message only), don't chain the original error, and add regression tests for each path.

Activity

  1. added this to the v0.20.0 milestone on Nov 3, 2026
  2. added
    priority: high
    status: in progress
    type: security
    workload: hours
    on Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: highstatus: in progresstype: securityworkload: hours

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions