Skip to content

Add zod validation for Trino, auth and query settings #402

Open

Description

@Bohreromir

Trino, auth and query settings still fall back silently on invalid input.
Examples: STACKABLE_COCKPIT_QUERY_TTL uses Number(...) || 1800, STACKABLE_COCKPIT_TRINO_AUTH_TYPE is an unchecked type cast, and STACKABLE_COCKPIT_TRINO_TLS_INSECURE / STACKABLE_COCKPIT_TRINO_USER_IMPERSONATION treat any unexpected value as a default. A typo in these values therefore changes behaviour without any error, which for TLS verification and impersonation is a security concern.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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