ops4j / org.ops4j.pax.jdbc

An OSGi JDBC Service Implementation, including adapters for various database drivers
Apache License 2.0
45 stars 68 forks source link

Support hidden service properties [PAXJDBC-96] #161

Closed grgrzybek closed 7 years ago

grgrzybek commented 8 years ago

Jörn Gersdorf created PAXJDBC-96

PAXJDBC-65 introduced encrypted configuration properties.

In addition it would be nice to support hidden configuration properties a la Declarative Services, i. e. configuration properties whose key starts with a leading dot ("."); those configuration properties are propagated (without the dot) to the DataSourceFactory, but they are not published as service properties in the ServiceRegistry.

That way one can (a) hide secrets from showing up in the service registry and (b) hide certain properties from other OSGi services.


Affects: 0.8.0, 0.9.0 Fixed in: 0.9.0 Votes: 0, Watches: 3

grgrzybek commented 8 years ago

Jörn Gersdorf commented

See pull request https://github.com/ops4j/org.ops4j.pax.jdbc/pull/14

Note: this pull request builds upon the patch in PAXJDBC-85 (i. e. it subsumes that patch).

The patch supports hidden configuration properties a la Declarative Services, i. e. configuration properties with a leading dot (".") which will not be set as service properties. They will nevertheless be propagated to the DataSourceFactory (without the leading dot).

grgrzybek commented 7 years ago

SaschaVogt commented

According to the Git history, the PR has been merged and was included in the 0.9.0 release - closing the issue