Skip to content

Enforce allow list for JDBC properties by default#11063

Merged
jihoonson merged 2 commits intoapache:masterfrom
jihoonson:jdbc-check-on
Apr 7, 2021
Merged

Enforce allow list for JDBC properties by default#11063
jihoonson merged 2 commits intoapache:masterfrom
jihoonson:jdbc-check-on

Conversation

@jihoonson
Copy link
Copy Markdown
Contributor

Description

A follow-up to #11047. This PR changes the default to enforce the allow list for JDBC connection properties. allowUnknownJdbcUrlFormat still remains as true by default because, at least the known security vulnerability can be exploitable only with MySQL which Druid will always enforce the allow list once it's enabled regardless of allowUnknownJdbcUrlFormat.


This PR has:

  • been self-reviewed.
  • added documentation for new or modified features or behaviors.

@jihoonson jihoonson added this to the 0.21.0 milestone Apr 2, 2021
Copy link
Copy Markdown
Member

@clintropolis clintropolis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be ok, as long as we call it out in the release notes (and mysql doesn't invent any new JDBC URI formats that the matcher misses since allowUnknownJdbcUrlFormat is set to true)

@jihoonson jihoonson merged commit cc12a57 into apache:master Apr 7, 2021
jihoonson added a commit to jihoonson/druid that referenced this pull request Apr 13, 2021
* Enforce allow list for JDBC properties by default

* fix tests
jihoonson added a commit that referenced this pull request Apr 13, 2021
* Enforce allow list for JDBC properties by default

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants