开发者

Using LDAP authentication with liquibase

开发者 https://www.devze.com 2023-04-07 14:25 出处:网络
Is it possible to use LDAP authentication with Liquibase? If not, how have others solved the problem of automating changes to production database schemas using Liquibase (yet still 开发者_如何学JAVAk

Is it possible to use LDAP authentication with Liquibase?

If not, how have others solved the problem of automating changes to production database schemas using Liquibase (yet still 开发者_如何学JAVAkeeping the database credentials secure)?


LDAP is used for server-side authentication. Not all databases support it, for example MySQL only supports it in it's Enterprise version.

Securing the credentials, used by clients like liquibase, falls into two categories:

  1. Protecting data in transit
  2. Protecting credentials at rest

To protect credentials in transit, I'd recommend using a JDBC driver which supports SSL. Some JDBC drivers support this feature, for example MySQL. Another approach is to tunnel the JDBC traffic over a SSH tunnel.

Protecting credentials at rest (in configuration files) is more difficult and depends on how you plan to invoke liquibase. If you're using ANT, I'd suggest using the answer to this question on how to read encrypted property files.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号