[Geoserver-users] Spring/environment variable property replacement in ROLE config.xml

Hi,

We have a plug-in for GeoServer that connects GeoServer roles to an RBAC service. Currently, we set up the connection URL required to reach the service during initial deployment, which works well. However, we are switching to a service discovery mechanism and need the values to be replaceable at runtime with Spring Framework properties or environment variables.

Does the GeoServer security subsystem do property replacements when reading the config.xml file?

Example configuration

RBAC_ROLE

com.company.security.RBACRoleService

${rbac.httpPrefix}://${rbac.ip}:${rbac.port}/

ROLE_GEOADMIN

Thanks,

Chris Snider

Senior Software Engineer

Intelligent Software Solutions, Inc.

Direct (719) 452-7257

Description: Description: Description: cid:image001.png@anonymised.com

Hi Chris

Property replacements are not supported. I never tried it but I am quite sure.

Cheers
Christian

image001.png

···

On Fri, Nov 7, 2014 at 4:26 PM, Chris Snider <chris.snider@anonymised.com> wrote:

Hi,

We have a plug-in for GeoServer that connects GeoServer roles to an RBAC service. Currently, we set up the connection URL required to reach the service during initial deployment, which works well. However, we are switching to a service discovery mechanism and need the values to be replaceable at runtime with Spring Framework properties or environment variables.

Does the GeoServer security subsystem do property replacements when reading the config.xml file?

Example configuration

RBAC_ROLE

com.company.security.RBACRoleService

${rbac.httpPrefix}://${rbac.ip}:${rbac.port}/

ROLE_GEOADMIN

Thanks,

Chris Snider

Senior Software Engineer

Intelligent Software Solutions, Inc.

Direct (719) 452-7257

Description: Description: Description: cid:image001.png@anonymised.com



Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

DI Christian Mueller MSc (GIS), MSc (IT-Security)
OSS Open Source Solutions GmbH

Thanks Christian,

I had tried regular property values and they are NOT supported, but didn’t know if there was an additional configuration I had to set.

Chris Snider

Senior Software Engineer

Intelligent Software Solutions, Inc.

Description: Description: Description: cid:image001.png@...5633...

image001.png

···

Hi Chris

Property replacements are not supported. I never tried it but I am quite sure.

Cheers

Christian

On Fri, Nov 7, 2014 at 4:26 PM, Chris Snider <chris.snider@…3225…> wrote:

Hi,

We have a plug-in for GeoServer that connects GeoServer roles to an RBAC service. Currently, we set up the connection URL required to reach the service during initial deployment, which works well. However, we are switching to a service discovery mechanism and need the values to be replaceable at runtime with Spring Framework properties or environment variables.

Does the GeoServer security subsystem do property replacements when reading the config.xml file?

Example configuration

RBAC_ROLE

com.company.security.RBACRoleService

${rbac.httpPrefix}://${rbac.ip}:${rbac.port}/

ROLE_GEOADMIN

Thanks,

Chris Snider

Senior Software Engineer

Intelligent Software Solutions, Inc.

Direct (719) 452-7257

Description: Description: Description: cid:image001.png@...5633...



Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

DI Christian Mueller MSc (GIS), MSc (IT-Security)

OSS Open Source Solutions GmbH