[Geoserver-devel] Custom Layer fields in Geoserver UI

Hi Devs,

Is it possible to add an extra (hidden) 'field' in the Layer gui of
Geoserver, one that does NOT show up in GetCapabilities response.

Context: having Geoserver with a big database-datastore, it is often
hard to track down the right view or table name from the Geoserver
layer. Als the full path to the ETL script to load the data can be
interesting to store.

We did(!) put the Table/View names in the 'abstract' field, but a
security auditor told us to 'hide' such information as it revealed our
internal datastructure....

So we have been looking now in adding text (or an url) in the geoserver
admin interface to hold this (internal!) information.
Geoserver admins should be able to see/edit that field, but normal users
should not see this (when they should examine the getcapabilities output
for example).

So Questions:
- are other people see this as something that is helpfull or a good/bad
idea?
- is it already possible? (we tried all fields in the admin interface,
but all show up in the capabilities, also in the community modules I
could not find something).

Thanks for any input/ideas,

Regards,

Richard Duivenvoorde

Hi Richard,
you can do it but not via the user interface (at least at the moment).
Most configuration elements have a “metadataMap” where anything can be stored, e.g,
if you check the xml config of a feature type you’ll probably see something like this:

false

This keeps GWC pluggable, as it’s not part of the base information model.
In that map yon can place whatever you want… from the REST API only though.

We have been discussing making the map contents UI editable a few times already at GeoSolutions,
in the context of adding in there info to enrich the CSW outputs, maybe with some configuration
on which fields to show, and to build a form to edit them in the UI (e.g., some might be using a dropdown,
and so on). But we so far failed to gather someone interested in funding this activity.

Your use case seems similar (although I guess you’d be happy with just exposing a single text field).

Cheers
Andrea

···

On Thu, Jul 19, 2018 at 4:33 PM, Richard Duivenvoorde <rdmailings@anonymised.com> wrote:

Hi Devs,

Is it possible to add an extra (hidden) ‘field’ in the Layer gui of
Geoserver, one that does NOT show up in GetCapabilities response.

Context: having Geoserver with a big database-datastore, it is often
hard to track down the right view or table name from the Geoserver
layer. Als the full path to the ETL script to load the data can be
interesting to store.

We did(!) put the Table/View names in the ‘abstract’ field, but a
security auditor told us to ‘hide’ such information as it revealed our
internal datastructure…

So we have been looking now in adding text (or an url) in the geoserver
admin interface to hold this (internal!) information.
Geoserver admins should be able to see/edit that field, but normal users
should not see this (when they should examine the getcapabilities output
for example).

So Questions:

  • are other people see this as something that is helpfull or a good/bad
    idea?
  • is it already possible? (we tried all fields in the admin interface,
    but all show up in the capabilities, also in the community modules I
    could not find something).

Thanks for any input/ideas,

Regards,

Richard Duivenvoorde


Check out the vibrant tech community on one of the world’s most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot


Geoserver-devel mailing list
Geoserver-devel@anonymised.com.366…sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Regards, Andrea Aime == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.