Skip to content

Merge ColumnConfig and ColumnMapping and harden them #1915

@ppkarwasz

Description

@ppkarwasz

The JDBC appender right now provides two ways to configure the column mapping: ColumnMapping (used also by other appenders) and the JDBC specific ColumnConfig. Neither of them is deprecated or recommended.

I would propose to:

  • merge the functionality of these two configuration knobs,
  • add a kill-switch that prevents users from unintentionally injecting SQL using these column mappings. A setting like literal="A great string" inserts A great string into the SQL statement without quoting it. This behavior is documented, but it would be probably safer to quote everything unless the user provides an additional property (e.g. quoteLiteral="false"). This would make the configuration more foolproof.

Metadata

Metadata

Assignees

No one assigned

    Labels

    appendersAffects one or more Appender pluginsappenders:JDBCIssue concerning the JDBC appender

    Type

    No type

    Projects

    Status

    To triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions