Application Protection
Access Restriction
Plugin: nevisadmin-plugin-nevisproxy
Sets up a filter in nevisProxy to block or filter incoming requests based on the source IP of the request.
The pattern can be assigned to applications
or an entire Virtual Host using Additional Settings.
Blocked requests are responded to with HTTP error code 403.
To produce a nice looking error page, ensure that
you have configured an error page for 403 on the Virtual Host
or use the HTTP Error Handling pattern on the same location.
Source IPs accepts individual IPv4 addresses and ranges in the form
192.0.2.1-192.0.2.255. Deferred endpoints are also supported, for example
placeholder://from_1 - placeholder://to_1, and may be mixed with concrete
endpoints. Deferred values remain quoted in the generated Lua and must resolve
to valid IPv4 addresses during deployment; unresolved or invalid values fail
closed. IPv4 CIDR notation remains supported for individual concrete entries.
Listing Type
Indicates if Source IPs should be used as blacklist or whitelist.
blacklist: Access from all configuredSource IPsis denied. All other IPs are allowed.whitelist: Access is allowed only for IPs in theSource IPslist. All other IPs are blocked.
Source IPs
List of client source IPs which shall be allowed. You may include entire range of IPs by separating two IPs with -.
If there is load-balancer in front of nevisProxy please configure it to preserve the client source IP. IPv6 is not supported here.
Examples:
10.0.0.1: specific IP address192.168.0.0-192.168.0.255: range of IP addresses0.0.0.0-255.255.255.255: all IP addresses
Source IP HTTP-Header
Optional setting used to specify HTTP header that contains the users IP. Otherwise, a default environment variable from nevisProxy is used.
Examples:
X-Forwarded-For
Country Database File
IP geolocation database file for country filtering.
Currently only the mmdb format (MaxMind Database) is supported. This is a binary file format.
Country Database URL
IP geolocation database URL for country filtering.
The resource behind the given URL is periodically downloaded and used as an IP geolocation database.
Currently only the mmdb format (MaxMind Database) is supported. This is a binary file format.
Using dbUrl and dbFile together is not supported, only set one of them.
Rules
Defines what action should be taken for a specified country.
Possible actions are:
- allow: Requests are let through
- log: A log entry is made for each request from the specified country
- block: Blocks requests from a country
Default Action
Defines the action taken either when no country rules were matched or the IP of a request does not have an associated country in the database.
Possible actions are:
- allow: Requests are let through
- log: A log entry is made for each request
- block: Blocks requests
Apply only to sub-paths
Set to apply this pattern on some sub-paths only.
Sub-paths must be relative (e.g. not starting with /)
and will be appended to the frontend path(s) of the virtual host (/)
or applications this pattern is assigned to.
Sub-paths ending with / are treated as a prefix,
otherwise an exact filter-mapping will be created.
The following table provides examples to illustrate the behavior:
| Frontend Path | Sub-Path | Effective Filter Mapping |
|---|---|---|
/ | secure/ | /secure/* |
/ | accounts | /accounts |
/ | api/secure/ | /api/secure/* |
/ | api/accounts | /api/accounts |
/app/ | secure/ | /app/secure/* |
/app/ | accounts | /app/accounts |
/app/ | api/secure/ | /app/api/secure/* |
/app/ | api/accounts | /app/api/accounts |
Allow Override
By default, access restriction rules apply to all sub-locations.
For instance, when you assign an Access Restriction pattern to a Virtual Host
all applications on this virtual host will be affected.
To replace the rules defined on a parent location
select enabled on all Access Restriction patterns in the hierarchy.
If disabled is selected anywhere in the hierarchy the rules are
considered additional.
Technical Details:
This feature is implemented using a nevisProxy LuaFilter.
Mapped filters are inherited to sub-locations unless an exclude-url-regex is defined.
By selecting enabled the generator is informed that the mapped filter has the purpose
access restriction. The generator then ensures that an exclude-url-regex entry
is generated when a filter with the same purpose is mapped to a sub-location.
Custom GeoLocation Lookups
The geolocation database contains multiple attributes to its IP-groups.
The attribute(s) that are retrieved by an IP-lookup can be altered using this parameter.
To check what attributes are in your database, use the tool mmdbinspect.
To set a path, separate its elements by slashes (/).
Each lookup entry contains a path as key and an output variable name as value.
This output variable makes the returned entries accessible from LuaFilter with req:getAttribute('output_var').
Examples:
country/names/en➜geolocation: Uses the country's English name and sets thegeolocationrequest attribute.country/iso_code➜countrycode: Uses the country's two letter long code and sets thecountrycoderequest attribute.country/names/en➜geolocation,country/iso_code➜countrycode,continent/code➜continentcodeKeep the default country name but also set the country code and continent code.
By default, the country's English name is used.
Country Database Download Periodicity
The IP geolocation database download periodicity. Only has effect when the database URL is set.
BehavioSec Risk Plugin
Plugin: nevisadmin-plugin-nevisdetect
The pattern configures BehavioSec risk scores to be integrated with nevisDetect.
For more information, see BehavioSec Developer Docs.
URL
Service URL used to connect to the BehavioSec service from the plugin.
For example: https://mycompany.behaviosec.com/BehavioSenseAPI/
Key Store
Used when simple or mutual (2-way) HTTPs is configured. If no pattern is assigned here automatic key management will provide the key store.
Trust Store
Reference a trust store provider pattern or leave empty to manage the trust store with nevisAdmin.
Proxy
Outbound proxy, optional
Web App URL
BehavioSec Dashboard URL
Fraudulent Flags
List of BehavioSec report flag names. Please add each entry line-by-line.
If any of these flags contains true value in the report, the request is marked as fraudulent and the request fails.
If the field remains empty, the items marked with (*) will be part of the default configuration.
Potential flag names (as of 5.4):
- advancedUser (*)
- autoModel
- coached (*)
- deviceChanged (*)
- deviceIdShared (*)
- deviceIntegrity (*)
- diError (*)
- drFlag (*)
- finalized
- ipChanged (*)
- ipShared (*)
- isDataCorrupted (*)
- isBot (*)
- isDuplicate (*)
- isOneHand
- isRemoteAccess (*)
- isReplay (*)
- isSessionCorrupted (*)
- isWhitelisted
- locationMismatch (*)
- newCountry (*)
- newsubprofile
- numpadAnomaly (*)
- numpadUsed
- numrowUsed
- ohFlag (*)
- otjsError (*)
- pdError (*)
- pnFlag (*)
- pocAnomaly (*)
- pocUsed
- tabAnomaly (*)
- tabUsed
- travelTooFast (*)
- uiConfidenceFlag (*)
- uiScoreFlag (*)
Flag / Description Mappings
List of BehavioSec report flag names with their description name in the following format: <flagName>=<descriptionName>. Please add each entry line-by-line.
If any of these flags contain true value in the report, it will be added to the respective header field along with the mapped description value.
To delete a default mapping, omit the description field's name: <flagName>=.
If the flag is part of the default mapping, it will be overwritten, otherwise added.
Default combined values (flag name/description name):
- advancedUser/advancedUserScore
- deviceChanged/deviceDesc
- deviceIntegrity/deviceIntegrityDesc
- diError/diDesc
- finalized/finalizeTimestamp
- isBot/botDesc
- isDuplicate/duplicateDesc
- isRemoteAccess/raDesc
- isReplay/replayDesc
- isSessionCorrupted/isSessionCorruptedDesc
- locationMismatch/locationMismatchDesc
- newCountry/ipCountry
- numpadUsed/numpadRatio
- otjsError/otjsDesc
- pdError/pdDesc
- pocUsed/pocRatio
- tabUsed/tabRatio
- travelTooFast/travelTooFastDesc
- uiConfidenceFlag/uiConfidence
- uiScoreFlag/uiScore
Cookie Customization
Plugin: nevisadmin-plugin-nevisproxy
Configure whether cookies are to be returned to the caller or stored in the user session.
You may also assign the pattern to multiple applications, and set Shared Protected Cookies
to share cookies between applications.
Note that cookie sharing is supported only for applications using the same session in nevisProxy, that is, applications protected by the same authentication realm.
The default cookie handling differs based on the type of application:
| Type | Behaviour | |---|---|---| | Web Application (with authentication) | Cookies are stored. | | Web Application (public) | Cookies are allowed to passthrough. | | REST API | Cookies are dropped. | | SOAP Service | Cookies are dropped. |
Client Cookies
Cookies listed here will be allowed to pass through.
Use for cookies which should be returned to the caller (e.g. browser).
Regular expressions are supported.
Example:
LANG.*
Shared Protected Cookies
Cookies listed here will be stored in nevisProxy and shared between all applications which have this pattern assigned.
Note that storing cookies requires a user session. Thus, we recommend not using this feature for applications which are supposed to be stateless and public.
Regular expressions are supported.
Note that cookies matching ^Marker_.*$ will never be stored as a
corresponding allow rule is generated to support Session Expiration features of the SAML SP Realm.
Example:
LANG.*
Protected Cookies
Cookies listed here will be stored in nevisProxy.
However, cookies marked as Client Cookies in any Cookie Customization pattern
assigned to the same application will still be allowed to pass through!
Storing cookies requires a user session. Thus, we recommend not using this feature for stateless or public applications!
Incoming cookies with the same name will be blocked.
Regular expressions are supported.
Example:
.*SESSION.*
Cookie Conflict Resolution
When multiple Cookie Customization patterns are used it happen that
a certain cookie is defined as both a Client Cookie and as a Shared Protected Cookie
for the same application.
By default, this conflict is resolved by allowing the cookie to pass-through, treating it as a Client Cookie.
This behavior is usually more robust but less secure as the cookie will be accessible in the browser.
Select protect to threat the cookie as a Shared Protected Cookie instead.
CSRF Protection Settings
Plugin: nevisadmin-plugin-nevisproxy
Customize CSRF protection for an application, for example, Web Application.
You can assign the pattern to Virtual Host patterns as well,
to configure CSRF protection for all applications on this host.
SameSite Cookie (Experimental)
Set to lax to issue a separate cookie with the SameSite flag set to lax.
In this configuration, links and redirects from other domains are allowed,
while CSRF-prone requests (e.g. POST) should be prevented by the browser.
Set to off to not send an additional cookie.
There are several reasons why this feature may be disabled:
-
Not all browsers support the
SameSiteflag and behave incorrectly by never sending the cookie. Older versions of IE and Windows may be affected. -
The
SameSiteflag breaks SAML use cases when POST binding is used.
SP-initiated authentication does work with NEVIS but all other SAML process (e.g. logout) will fail.
Header-based Check
CSRF protection can be obstructive for some cross-domain use cases (e.g. federation or providing a public REST API).
Allowed Domains
CSRF protection can be obstructive for cross-domain use cases (e.g. federation or providing a public REST API).
Enter domains which should be excluded from header-based CSRF protection.
There is no support for wildcards, pre- or postfix notations (sub-domains must be listed individually).
Example:
www.adnovum.ch
adnovum.ch
Generic Application Settings
Plugin: nevisadmin-plugin-nevisproxy
Customize the web.xml configuration for an application
using XML constructs as described in the nevisProxy Technical Documentation.
Use as add-on for Web Application, SOAP Service, or REST Service.
The following expressions may be used for all applications:
${name}: sanitized name of the pattern${service.name}: the name of the application${service.id}: the unique ID of the application${host.key}: use asEntryPointIDwhen adding a customIdentityCreationFilter(advanced use case)
For applications with only 1 Frontend Path:
${service.path}: the frontend path of the application, excluding trailing slash/and asterisk*${service.mapping}: theurl-patterncalculated for the frontend path of the application
In case an Authentication Realm is assigned:
${realm.name}: name of the realm (use forStateKey/DelegateSource)${auth.connector}: name of theEsauth4ConnectorServlet(use forAuthenticationServlet)${logrend.renderer}: name of theLoginRendererServlet${logrend.connector}: name of theHttp(s)ConnectorServletfor nevisLogrend (if nevisLogrend is used)
When defining filters it is recommended to set Filter Mappings to automatic.
This way the filters are mapped to all frontend paths of the application.
Filters and Mappings
Configure filters and their mappings using the XML syntax described in the nevisProxy Technical Documentation.
Filters that have the same name as other filters (even those defined by other patterns)
will be combined: the init-param sets will be merged where possible.
Direct contradictions are interpreted as validation failures.
Example 1: Create (or patch) a filter with a fixed name
<filter>
<filter-name>SomeName</filter-name>
<filter-class>ch::nevis::isiweb4::filter::SomeClass</filter-class>
<init-param>
<param-name>...</param-name>
<param-value>...</param-value>
</init-param>
</filter>
Example 2: Create (or patch) a filter using an application-specific name
<filter>
<filter-name>SomeName_${service.name}</filter-name>
<filter-class>ch::nevis::isiweb4::filter::SomeClass</filter-class>
...
</filter>
Example 3: Map a filter to a sub-path of the assigned application(s). This example works for applications which have 1 frontend path only.
<filter-mapping>
<filter-name>SomeFilter</filter-name>
<url-pattern>${service.path}/custom/*</url-pattern>
</filter-mapping>
Example 4: Use multi-value expressions
Multi-value expressions replicate an entire line for each associated value.
Use the expressions *{service.path} and *{service.mapping} to generate filters
which must contain the frontend paths of all assigned applications.
The following snippet is not complete but should illustrate the concept:
<filter>
<filter-name>FormSigning</filter-name>
<filter-class>ch::nevis::isiweb4::filter::validation::EncryptionFilter</filter-class>
<init-param>
<param-name>EntryURL</param-name>
<param-value>
*{service.path}/
</param-value>
</init-param>
...
</filter>
Filter Mappings
Choose between:
manual(default): only thefilter-mappingelements which have been configured viaFilters and Mappingswill be added.automatic: filters configured viaFilters and Mappingswill be mapped to allFrontend Pathsof the application.both: likeautomaticbut additionalfilter-mappingelements are allowed as well.
Filter Phase
When adding filter-mapping elements, a phase must be defined.
The phase defines where the filter-mapping is placed in the web.xml and ensures that filters
are applied in the right order, relative to other phases.
The order within a certain phase is undefined as it must not matter.
The order for requests is START to END and END to START for responses.
This setting applies to all filter-mapping elements.
The filter-mapping elements may be provided via Filters and Servlets,
or created automatically (see Filter Mappings for details).
Choose from the following filter phases:
START: applied as early as possible for requests and as late as possible for responses.BEFORE_SANITATION: applied before filters which validate the request (e.g. Mod Security).SANITATION: used for security. This is the first phase which allows accessing the session for applications protected by a realm.AFTER_SANITATION: your request has passed security checks.BEFORE_AUTHENTICATION: applied just before authentication.AUTHENTICATION: used by the filter which connects to nevisAuth for applications which are protected by anAuthentication Realm.AFTER_AUTHENTICATION: the request has level 1 authentication. Used byAuthorization PolicyforAuthentication Levelstepup.BEFORE_AUTHORIZATION: choose this phase to do preprocessing before authorization.AUTHORIZATION: used byAuthorization PolicyforRequired Rolescheck.AFTER_AUTHORIZATION: used by patterns assigned asApplication Access Tokento applications.END: applied as late as possible for requests and as early as possible for responses.
This setting is ignored when you patch a filter generated by another pattern
(e.g. by adding, overwriting, or removing an init-param element) but do not create any filter-mapping element.
Servlets and Mappings
Configure servlet and/or servlet-mapping elements
using the XML constructs described in the nevisProxy Technical Documentation.
You may add new elements or customize elements provided by other patterns.
- Reference a
servletby settingservlet-name. UseConnector_${service.name}for the servlet which connects to the backend application. - Reference a
servlet-mappingby settingurl-pattern.
In Kubernetes side-by-side deployment a postfix is added to service names.
Use the expression ${service.postfix} connecting to a service deployed against the same inventory.
Example 1: Add or overwrite an init-param:
Enable load-balancing when there are multiple backend servers.
<servlet>
<servlet-name>Connector_${service.name}</servlet-name>
<init-param>
<param-name>LoadBalancing</param-name>
<param-value>true</param-value>
</init-param>
</servlet>
Instruct nevisProxy to a add Content-Type header when missing.
<servlet>
<servlet-name>Connector_${service.name}</servlet-name>
<init-param>
<param-name>ProxyPolicy</param-name>
<param-value>mime-completion</param-value>
</init-param>
</servlet>
Example 2: Remove an init-param (no param-value provided):
<servlet>
<servlet-name>Connector_${service.name}</servlet-name>
<init-param>
<param-name>CookieManager</param-name>
</init-param>
</servlet>
Example 3: Change the servlet-mapping for an application to use a different servlet
by changing servlet-name.
<servlet>
<servlet-name>Connector_Conditional_${service.name}</servlet-name>
<servlet-class>ch::nevis::isiweb4::servlet::mapping::ServletMappingServlet</servlet-class>
...
</servlet>
<servlet-mapping>
<servlet-name>Connector_Conditional_${service.name}</servlet-name>
<url-pattern>${service.path}/*</url-pattern>
</servlet-mapping>
Removing servlet or servlet-mapping elements is not supported.
Template Parameters
Define Template Parameters.
Examples:
backend-host: backend.siven.ch
These parameters can be used in:
Servlets and MappingsFilters and Mappings
The expression formats are:
${param.<name>}:
namefound: parameter value is used.namemissing: expression is not replaced.
${param.<name>:<default value>}:
namefound: parameter value is used.namemissing: default value will be used.
In <default value> the character } must be escaped as \}.
Remove Filter Mappings
Remove <filter-mapping> elements generated by other patterns.
The syntax is a map of <filter-name>:<url-pattern>, according to elements from the web.xml.
In the <filter-name> the expressions ${service.name} and ${realm.name} may be used.
For applications which have only 1 frontend path you may use ${service.mapping} instead of <url-pattern>.
Examples:
ModSecurity_${service.name}:${service.mapping}
Authentication_${realm.name}:${service.mapping}
Generic nevisProxy TLS Settings
Plugin: nevisadmin-plugin-nevisproxy
Use the add-on to customize TLS/SSL settings for nevisProxy.
Assign to a Virtual Host to customize settings for incoming connections.
You can customize connections to backends by assigning the pattern to your applications
(Web Application, REST Service, SOAP Service) using Additional Settings.
Protocols
The value(s) configured here will be used as SSLProtocol.
Read the Apache Documentation for supported values.
The SSLProtocol can appear in 2 different places, depending on where this pattern is assigned:
- as attribute for the
SSLelement innavajo.xml. - as init-param for the
HttpsConnectorServlet.
If nothing is configured, a default will apply. The default is determined as follows:
-
For the
SSLelement innavajo.xmltheSSLProtocolattribute will be generated as-all +TLSv1.2 +TLSv1.3by theVirtual Hostpattern. -
For the
HttpsConnectorServletnoSSLProtocolinit-param will be generated, and thus the default of this servlet applies. Read the documentation of the HttpsConnectorServlet for further information.
Cipher Suite
Configure the allowed cipher suites.
Read the Apache Documentation for the supported format.
The value configured here will be applied as:
SSLCipherSuitefor theSSLelement innavajo.xmlwhen the pattern is assigned to aVirtual Host.SSLCipherSuitesfor theHttpsConnectorServletelement in theweb.xmlwhen this pattern is assigned to an application.
If nothing is configured, a default will apply. The default is determined as follows:
- For the
SSLCipherSuiteattribute of theSSLelement innavajo.xmla default will be generated by theVirtual Hostpattern. - For
HttpsConnectorServletnothing will be generated, and thus the default of this servlet applies. Read the documentation of the HttpsConnectorServlet for details.
SSL Options
The value configured here will be applied as SSLOptions.
It should only have value when assigned to a Virtual Host pattern.
Check the Apache Documentation for details.
If empty and when this pattern is assigned to a Virtual Host the following value is used:
+OptRenegotiate +StdEnvVars +ExportCertData
Generic QoS Configuration (mod_qos)
Plugin: nevisadmin-plugin-nevisproxy
Assign the pattern to a Virtual Host using Additional Settings.
Use to configure mod_qos in case the standard configuration is not sufficient.
mod_qos is quite powerful, and can cover may use cases.
See mod_qos documentation for further information.
The mod_qos directives are not validated.
The directives are applied using an ApacheConfigFilter (named Qos),
which is added to the web.xml of the Virtual Host.
Server Directives
Server level directives can be entered here.
These directives apply to the entire nevisProxy Instance
which means that other Virtual Host patterns may be affected.
Examples:
QS_ClientEventBlockCount 200 300
QS_SetEnvIf NAVAJO_HTTPSESS_CREATED !QSNOT QS_Block=yes
QS_SrvMaxConnClose 85%
QS_SrvMaxConnPerIP 75
QS_SrvMinDataRate 75 300 250
Host Directives
Host level directives can be entered here.
Generic Virtual Host Settings
Plugin: nevisadmin-plugin-nevisproxy
Customize the web.xml configuration
using XML constructs as described in the nevisProxy Technical Documentation.
Use as add-on for the Virtual Host pattern.
The following expressions are supported:
${name}: sanitized name of the pattern${service.name}: the name of the virtual host${service.id}: the unique ID of the virtual host${service.path}: the base path of the virtual host (empty String)${service.mapping}: theurl-patternfor the virtual host/*
Filters and Mappings
Configure filters and their mappings using the XML syntax described in the nevisProxy Technical Documentation.
Filters that have the same name as other filters (even those defined by other patterns)
will be combined: the init-param sets will be merged where possible.
Direct contradictions are interpreted as validation failures.
Example 1: Create (or patch) a filter with a fixed name
<filter>
<filter-name>SomeName</filter-name>
<filter-class>ch::nevis::isiweb4::filter::SomeClass</filter-class>
<init-param>
<param-name>...</param-name>
<param-value>...</param-value>
</init-param>
</filter>
Example 2: Create (or patch) a filter using an application-specific name
<filter>
<filter-name>SomeName_${service.name}</filter-name>
<filter-class>ch::nevis::isiweb4::filter::SomeClass</filter-class>
...
</filter>
Example 3: Map a filter to a sub-path of the assigned application(s). This example works for applications which have 1 frontend path only.
<filter-mapping>
<filter-name>SomeFilter</filter-name>
<url-pattern>${service.path}/custom/*</url-pattern>
</filter-mapping>
Example 4: Use multi-value expressions
Multi-value expressions replicate an entire line for each associated value.
Use the expressions *{service.path} and *{service.mapping} to generate filters
which must contain the frontend paths of all assigned applications.
The following snippet is not complete but should illustrate the concept:
<filter>
<filter-name>FormSigning</filter-name>
<filter-class>ch::nevis::isiweb4::filter::validation::EncryptionFilter</filter-class>
<init-param>
<param-name>EntryURL</param-name>
<param-value>
*{service.path}/
</param-value>
</init-param>
...
</filter>
Filter Mappings
Choose between:
manual(default): only thefilter-mappingelements which have been configured viaFilters and Mappingswill be added.automatic: filters configured viaFilters and Mappingswill be mapped to/*.both: likeautomaticbut additionalfilter-mappingelements are allowed as well.
Filter Phase
When adding filter-mapping elements, a phase must be defined.
The phase defines where the filter-mapping is placed in the web.xml and ensures that filters
are applied in the right order, relative to other phases.
The order within a certain phase is undefined as it must not matter.
The order for requests is START to END and END to START for responses.
This setting applies to all filter-mapping elements.
The filter-mapping elements may be provided via Filters and Servlets,
or created automatically (see Filter Mappings for details).
Choose from the following filter phases:
START: applied as early as possible for requests and as late as possible for responses.BEFORE_SANITATION: applied before filters which validate the request (e.g. Mod Security).SANITATION: used for security. This is the first phase which allows accessing the session for applications protected by a realm.AFTER_SANITATION: your request has passed security checks.BEFORE_AUTHENTICATION: applied just before authentication.AUTHENTICATION: used by the filter which connects to nevisAuth for applications which are protected by anAuthentication Realm.AFTER_AUTHENTICATION: the request has level 1 authentication. Used byAuthorization PolicyforAuthentication Levelstepup.BEFORE_AUTHORIZATION: choose this phase to do preprocessing before authorization.AUTHORIZATION: used byAuthorization PolicyforRequired Rolescheck.AFTER_AUTHORIZATION: used by patterns assigned asApplication Access Tokento applications.END: applied as late as possible for requests and as early as possible for responses.
This setting is ignored when you patch a filter generated by another pattern
(e.g. by adding, overwriting, or removing an init-param element) but do not create any filter-mapping element.
Servlets and Mappings
Configure servlet and/or servlet-mapping elements
using the XML constructs described in the nevisProxy Technical Documentation.
You can also customize elements which have been generated by other patterns. Elements can be referenced as follows:
servlet:servlet-nameservlet-mapping:url-pattern
In Kubernetes side-by-side deployment a postfix is added to service names.
Use the expression ${service.postfix} connecting to a service deployed against the same inventory.
Example 1: Add or overwrite an init-param for an existing servlet:
<servlet>
<servlet-name>Hosting_Default</servlet-name>
<init-param>
<param-name>NoMatchFile</param-name>
<param-value>/index.html</param-value>
</init-param>
</servlet>
Example 2: Remove a servlet-mapping:
<servlet-mapping>
<url-pattern>/app/*</url-pattern>
</servlet-mapping>
Here we left out the servlet-name to tell the pattern to remove the servlet-mapping for the given url-pattern.
Note that the mapping of the hosted resources is an exception and cannot be removed this way
(see the property Hosted resources of the Virtual Host pattern for more information).
Removing a servlet element is not supported.
Template Parameters
Define Template Parameters.
Examples:
backend-host: backend.siven.ch
These parameters can be used in:
Servlets and MappingsFilters and Mappings
The expression formats are:
${param.<name>}:
namefound: parameter value is used.namemissing: expression is not replaced.
${param.<name>:<default value>}:
namefound: parameter value is used.namemissing: default value will be used.
In <default value> the character } must be escaped as \}.
Remove Filter Mappings
Remove <filter-mapping> elements generated by other patterns.
This is an advanced configuration.
Use only when you want to remove a <filter-mapping> but keep the <filter> element,
e.g. to map it on a sub-location.
The syntax is a map of <filter-name>:<url-pattern>, according to values from the web.xml.
For instance, the following would remove the ErrorHandler_Default from /*:
ErrorHandler_Default:/*
Mime-Mappings
Set or replace mime-mapping elements.
Examples:
<mime-mapping>
<extension>svg</extension>
<mime-type>image/svg+xml</mime-type>
</mime-mapping>
The mime-mapping elements affect the entire Virtual Host
and are used use to determine the Content-Type for responses.
nevisProxy always sets a Content-Type header
for static resources served by the Virtual Host.
Further, nevisProxy can add a Content-Type header for resources served by applications.
To enable this advanced feature assign Generic Application Settings to the application
and set the parameter ProxyPolicy to mime-completion.
Geolocation Service
Plugin: nevisadmin-plugin-nevisproxy
This pattern sets up a service that responds with the geolocation of the caller, based on the callers source IP.
The response is a JSON with the following format:
{
"query":"<IP>"
"status":"success|fail"
"continentCode":"<ISO continent code>"
"countryCode":"<ISO country code>"
"licence":"https://www.maxmind.com/en/geolite2/eula"
}
The pattern requires that nevisProxy is able to correctly determine the source IP for the incoming request.
If a component in front of nevisProxy terminates TLS connections (e.g. a load balancer, ingress, Cloudflare),
then you have to configure a Source IP Header in the Virtual Host pattern.
Virtual Host(s)
Assign a Virtual Host which shall serve as entry point.
Frontend Path
The path on which the service shall be accessible.
Geolocation Database
Upload a Maxmind database file.
For further information, see the documentation in the nevisProxy reference guide.
Authentication Realm
Optionally assign a realm to protect this application or service.
Additional Settings
Assign add-on patterns to customize the behavior of this service.
Example use cases:
Authorization Policyto enforce roles or an authentication level.URL Handlingto redirect or forward requests.HTTP Header Customizationto add, replace, or remove HTTP headers in requests or responses.
gRPC Service
Plugin: nevisadmin-plugin-nevisproxy
Set up access to a backend application providing a gRPC API.
Virtual Host(s)
Assign Virtual Host patterns which shall serve as entry point for this application. HTTP/2 has to be enabled on each Virtual Host.
Frontend Path(s)
The (base) path of the application.
Examples:
/app/- defines a base path.
Any requests which have a path component starting with /app/ will be sent to this application.
/- forward all requests to this application.
Use this only when there are no other applications or hosted resources.
exact:/app.html- matches requests to/app.htmlonly (query parameters are allowed).
Use this for single-page applications which do not require any additional resources.
Note that if the frontend path is different from the path used within Backend Addresses
then URL rewriting will be configured to correctly route
requests and responses between clients and backends.
Authentication Realm
Optionally assign a realm to protect this application or service.
Application Access Token
Propagate a token to the backend application. The token informs the application about the authenticated user.
For instance, assign Nevis SecToken if the application uses Ninja or
SAML Token for applications which are able to consume SAML Responses.
Additional Settings
Assign add-on patterns to customize the behavior of this service.
Example use cases:
Authorization Policyto enforce roles or an authentication level.URL Handlingto redirect or forward requests.HTTP Header Customizationto add, replace, or remove HTTP headers in requests or responses.
Backend Addresses
Enter the complete URL (scheme, host, port and path) of the gRPC service.
Note:
- Only one backend is allowed.
- Automatic path rewriting will be performed when the path differs from the
Frontend Path.
Key Store
Optional setting to use a client certificate for connecting to HTTPS backends.
Trust Store
Optional setting for enabling trust to HTTPS backends.
For securing production environments:
- set
Backend Addressesstarting withhttps:// - assign a
Trust Storepattern containing the certificates required for verifying the backend certificate - set
Hostname Validationtoenabled
Hostname Validation
Enable to verify that the hostname on the certificate presented by the backend matches the hostname configured in Backend Addresses
Host Header
Defines the Host header for requests forwarded to the application.
When backend is selected then nevisProxy uses the host part of the backend address that has been selected.
This is the default behavior and similar to what a browser would do.
Therefore, this configuration should work in most cases.
When client is selected then nevisProxy will keep the Host header as received from the client.
The following init-param will be generated:
<init-param>
<param-name>HostName</param-name>
<param-value>ENV:HTTP_Host;</param-value>
</init-param>
The configuration is dynamic to support virtual hosts with multiple frontend addresses.
Note that this may be less secure.
Even though browsers do not allow this clients may sent an arbitrary value for the Host header.
It is therefore recommended to test how your application behaves in this case.
Outbound Client Authentication
Controls whether the service access presents a client certificate on outbound TLS connections.
automatic follows the referenced target's server-side client-authentication setting. required ensures that client authentication is used, preserving an explicitly configured key store and generating an implicit identity only when no key store is configured. disabled prevents client authentication and is rejected when the referenced target requires it.
Allowed HTTP Methods
Define the HTTP methods allowed for this application.
Methods which are listed here must also be allowed on the Virtual Host.
The only valid HTTP method used in gRPC over HTTP/2 is POST.
Note: While gRPC itself only uses POST, higher-level frameworks like Cloud Endpoints support HTTP/JSON transcoding, which can map HTTP GET, POST, PUT, and DELETE methods to gRPC methods using annotations (e.g., option (google.api.http) = { get: "/v1/shelves/{shelf}" };).
Custom Parameters
Add custom init-param(s) for the Http2Servlet. For example: ConnectionPoolSize=200
Please check the nevisProxy technical documentation for supported init-params of the servlet class ch::nevis::nevisproxy::servlet::connector::http::Http2Servlet.
Hosting Service
Plugin: nevisadmin-plugin-nevisproxy
Use the pattern to host static pages and related resources.
For instance, you can use this pattern to host HTML or a single-page application (SPA).
Further, you can provide CSS, images, and Javascript for error pages uploaded by a HTTP Error Handling pattern.
The pattern generates configuration for the nevisProxy ch::nevis::nevisproxy::servlet::file::FileReaderServlet.
Virtual Host(s)
Assign a Virtual Host which shall serve as entry point.
Frontend Path
The path at which the resources shall be accessible at the frontend.
You may use / to deploy root content.
Resources
Upload your resources here.
All files will be deployed in the same directory. Please use standard extensions (e.g. .css, .png, .html, .htm) only.
If you want to use subdirectories please upload a .zip file instead. The content of the .zip file will be unpacked.
Default File
Defines a default file which will be returned when there is no other matching file.
Authentication Realm
Optionally assign a realm to protect this application or service.
Rewrite Rules
Rewrite rules for serving files.
This can be useful if a file should be served under a different name, or to map extensions to file names.
Examples:
| Source | Destination |
|---|---|
/static/picture | /static/picture.jpg |
Additional Settings
Assign add-on patterns to customize the behavior of this service.
Example use cases:
Authorization Policyto enforce roles or an authentication level.URL Handlingto redirect or forward requests.HTTP Header Customizationto add, replace, or remove HTTP headers in requests or responses.
HTTP Error Handling
Plugin: nevisadmin-plugin-nevisproxy
Use the pattern to handle HTTP error codes.
You can use the pattern as an add-on for Virtual Host
or any backend application, for example, Web Application, REST Service, or SOAP Service.
Error Pages
Upload HTML error pages, JSON error pages and associated resources here.
Pages must be named like the error code they are used for (e.g. 500.html).
You can use the same page for multiple status code (e.g. 401,403,500-599.html).
By default, the error pages are deployed to /errorpages/<name> but
you can set a different location via the property Base Path (see Advanced Settings).
In your error pages we recommend using relative links to include resources.
You may also include resources deployed on the virtual host via Hosted Resources.
The following placeholders are supported:
TRANSFER_IDfor the unique ID of the request (e.g.c0a80e52-5d04-11ac0500-16906714eee-00000003)TIMESTAMPto show a timestamp (e.g.Tue, 19 Feb 2019 15:48:02 GMT)
Blocked Status Codes
Hide certain HTTP status code(s) by returning 200 OK instead (by using the reset-status-code action).
By default, the status code is not changed as it can be useful for technical clients.
The response body will still be replaced.
You may also enter:
- ranges of status codes (e.g.
500-599), - lists (e.g.
403,500) - combination thereof (e.g.
403,500-599).
Redirect Status Code Mapping
Redirect to a given location instead of rewriting the response body.
Locations can be entered as:
- URLs (starting with
http://orhttps://) - paths (starting with
/)
Internal and external locations are supported.
Examples:
404,500-599 -> /some/super/redirect/
403 -> https://www.google.com
Keep Header Status Codes
By default, HTTP headers are dropped when an error code is handled.
This avoids information leakage but can lead to session loss in some cases.
For instance, the nevisProxy session will be lost when all the following holds:
- this pattern is configured to handle code
502. - the application is unreachable (
502is produced). - the nevisProxy session cookie is renegotiated (
Set-Cookieheader is set). - user refreshes the page after the error page is shown.
To overcome this limitation you may enter 502 here.
Note that we are investigating additional measures and may adapt this property in future releases.
Overwrite Status Codes
Overwrite certain HTTP status code(s) by returning with the defined status code instead.
If for an error code both Blocked Status Code and Overwrite Status Code is configured, the Blocked Status Code will take precedent.
Examples:
404,406-499 -> 401
405 -> 200
Mode
Enable or disable the error handling.
When set to disabled, all settings except Apply only to sub-paths are ignored.
Use this setting in combination with Apply only to sub-paths to disable the error handling for some sub-paths only.
Usage examples (valid for Virtual Hosts and backend applications):
- Disable the error handling:
use an Error Handler pattern with Mode set to disabled and link it to the target pattern via Additional Settings;
- Disable the error handling for some sub-paths:
use an Error Handler pattern with Mode set to disabled and Apply only to sub-paths set to the paths where no error handling should occur, and link it to the target pattern via Additional Settings;
- Define a customised error handling and disable it for some sub-paths:
use two Error Handler patterns, one with the custom settings, and one with Mode set to disabled and Apply only to sub-paths set to the paths where no error handling should occur. Link both of them to the target pattern via Additional Settings.
Apply only to sub-paths
Set to apply the error handling on some sub-paths only.
Sub-paths must be relative (e.g. not starting with /)
and will be appended to the frontend path(s) of the virtual host (/)
or applications this pattern is assigned to.
Sub-paths ending with / are treated as a prefix,
otherwise an exact filter-mapping will be created.
The following table provides examples to illustrate the behavior:
| Frontend Path | Sub-Path | Effective Filter Mapping |
|---|---|---|
/ | secure/ | /secure/* |
/ | accounts | /accounts |
/ | api/secure/ | /api/secure/* |
/ | api/accounts | /api/accounts |
/app/ | secure/ | /app/secure/* |
/app/ | accounts | /app/accounts |
/app/ | api/secure/ | /app/api/secure/* |
/app/ | api/accounts | /app/api/accounts |
Content-Type Mode
The Content-Type Mode allows enabling or disabling the error handling depending on the Content-Type header of the backend response.
Use this setting in combination with the Content-Types setting.
Choose one of:
None: The error handling settings are applied to all backend responses.Enabled: The error handling settings are enabled only for the backend responses with aContent-Typeheader included in the Content-Types setting.
Backend responses with other Content-Types are propagated to the client.
Disabled: The error handling settings are disabled for the backend responses with aContent-Typeheader included in the Content-Types setting.
These responses are propagated to the client.
The error handling settings are applied to backend responses with other Content-Type headers.
Content-Types
The Content-Types configures the Content-Type headers for which the Content-Type Mode setting is applied.
Enter one value per line.
Use this setting in combination with the Content-Type Mode setting.
Base Path
By default, the error pages are deployed to /errorpages/<name> but you can set a different location here.
Keep Security Headers
Configure the name of special response headers which should be kept, regardless of the header action of the matching rule. Useful for keeping the security response headers for the error pages.
Default:
Strict-Transport-Security
X-Content-Type-Options
Referrer-Policy
HTTP Header Customization
Plugin: nevisadmin-plugin-nevisproxy
Use to add, overwrite, or remove HTTP headers in requests or responses.
You can use the pattern as add-on for Virtual Host or applications,
for example, Web Application, REST Service, or SOAP Service.
The following expressions may be used:
${client.ip}- IP address of the caller${request.id}- unique ID of this request${request.header.<name>}- value of a request header (only for requests)${env.<name>}- ApacheENVvariables${auth.<name>}- access to theAUTHscope (only for requests, requires anAuthentication Realmand theFilter Phaseis to be set toAFTER_AUTHENTICATIONorEND)
Add / Overwrite Headers
Adds/overwrites HTTP headers in requests.
The syntax is: <header name>:<value>
Examples:
X-Forwarded-For: ${client.ip}
User-ID: ${auth.user.auth.UserId}
Note: change the Filter Phase to replace headers early / late.
In order to use the ${exec: ...} syntax of nevisProxy for passwords,
use an inventory secret to skip the validation of the value.
Basic Auth User
Enter the basic auth user or an expression of the format <source>:<parameter>.
For the <source> you may use:
AUTH: outargs returned by nevisAuth.CONST: constant strings.ENV: Apache environment variables.PARAM: values from a request body as provided by aParameterFilter.HEADER: request headers.
Basic Auth Password
Enter the basic auth password or an expression of the format <source>:<parameter>.
For the <source> you may use:
AUTH: outargs returned by nevisAuth.CONST: constant strings.ENV: Apache environment variables.PARAM: values from a request body as provided by aParameterFilter.HEADER: request headers.
Remove Headers
Removes HTTP headers from requests.
The syntax is: <header name>
Examples:
User-Agent
Note: change the Filter Phase to remove headers early / late.
Filter Phase
START- manipulate request headers early to hide them from validation and authentication.AFTER_AUTHENTICATION- the original values are subject to validation and can be accessed in the authentication flow.
The header manipulation is applied afterwards to affect the application only.
END- manipulate request headers late, just before the request is forwarded to the application.
Add / Overwrite Headers
Adds/overwrites HTTP headers in responses.
The syntax is: <header name>:<value>
Force browser to use HTTPS only (1 day expiration):
Strict-Transport-Security: max-age=86400
Ensure pages are not cached:
Cache-Control: no-cache, no-store, must-revalidate
Pragma: no-cache
Expires: 0
Headers set by Apache (e.g. Server) cannot be overwritten.
Note: change the Filter Phase to set headers early / late.
Remove Headers
Removes HTTP headers from responses.
The syntax is: <header name>
Examples:
X-Content-Type-Options
Headers set by Apache cannot be removed:
Server
Note: change the Filter Phase to remove headers early / late.
Filter Phase
START- manipulate request headers late to also cover any headers set by nevisProxy.AFTER_AUTHENTICATION- default behavior which should work in most cases.END- manipulate response headers early hiding them from other nevisProxy filters which operate on responses.
Add / Overwrite Headers Condition
Set to do the header customization only if the given condition applies.
The condition is checked for Add / Overwrite Headers on requests and on responses.
You can use the expressions mentioned above.
Syntax:
${expression} == value
Examples:
${request.header.Content-Type} == application/x-www-form-urlencoded
Apply only to sub-paths
Set to apply the header customization on some sub-paths only.
Sub-paths must be relative (e.g. not starting with /)
and will be appended to the frontend path(s) of the virtual host (/)
or applications this pattern is assigned to.
Sub-paths ending with / are treated as a prefix,
otherwise an exact filter-mapping will be created.
The following table illustrates the behavior:
| Frontend Path | Sub-Path | Effective Filter Mapping |
|---|---|---|
/ | secure/ | /secure/* |
/ | accounts | /accounts |
/ | api/secure/ | /api/secure/* |
/ | api/accounts | /api/accounts |
/app/ | secure/ | /app/secure/* |
/app/ | accounts | /app/accounts |
/app/ | api/secure/ | /app/api/secure/* |
/app/ | api/accounts | /app/api/accounts |
ICAP Scanning
Plugin: nevisadmin-plugin-nevisproxy
The pattern configures a filter in nevisProxy to forward incoming requests to an ICAP server, for example, ClamAV. A typical use case is virus scanning for file uploads.
ICAP Server URLs
URL(s) of the ICAP server(s). Each URL must have the same path.
Example: icap://my-clamav-server1/avscan
Content-Type Restriction
Optional property to restrict scanning to a certain Content-Type (regular expression is supported here).
Example: application/.*
Apply only to sub-paths
Set to apply the ICAP scanning on some sub-paths only.
Sub-paths must be relative (e.g. not starting with /)
and will be appended to the frontend path(s) of the virtual host (/)
or applications this pattern is assigned to.
Sub-paths ending with / are treated as a prefix,
otherwise an exact filter-mapping will be created.
The following table provides examples to illustrate the behavior:
| Frontend Path | Sub-Path | Effective Filter Mapping |
|---|---|---|
/ | secure/ | /secure/* |
/ | accounts | /accounts |
/ | api/secure/ | /api/secure/* |
/ | api/accounts | /api/accounts |
/app/ | secure/ | /app/secure/* |
/app/ | accounts | /app/accounts |
/app/ | api/secure/ | /app/api/secure/* |
/app/ | api/accounts | /app/api/accounts |
Apply Only Conditionally
Configure one or more conditions under which the configured rules should be triggered. Multiple conditions are combined with logical AND.
In the first column enter the key, for example ENV:REQUEST_URI.
In the second column enter the regex which has to match, for example: .*\.js$.
JWT Access Restriction
Plugin: nevisadmin-plugin-nevisproxy
Sets up a filter in nevisProxy to verify the JWT of incoming requests.
A request will be allowed to pass through if it contains a valid JWT, in
every other case (e.g. failed to verify, expired or token not present), the
request will be blocked. Blocked requests are responded to with HTTP error code 403
The pattern can be assigned to applications
or an entire Virtual Host using Additional Settings.
.
HTTP Header
By default, the JWT will be extracted from the Bearer type Authorization request header:
Authorization: Bearer <token>
Optionally, this behavior can be overwritten by this property by specifying a request header from where the token should be extracted, for example if the token is sent like:
CustomAuthHeader: <token>
Then configure CustomAuthHeader for this property.
Algorithm
The algorithm used to sign and verify the JWT.
Supported algorithms are:
- RS256
- RS384
- RS512 (default)
Public Key
The public key corresponding to the private key which was used to sign the JWT.
Lua HTTP Processing
Plugin: nevisadmin-plugin-nevisproxy
Sets up a filter in nevisProxy which evaluates a Lua script.
The filter class is ch::nevis::isiweb4::filter::lua::LuaFilter.
Assign this pattern to your applications to perform complex request or response processing tasks.
Lua Script
Upload a Lua script which should be invoked for requests and / or responses. The script has to contain one or multiple of the following Lua functions:
function inputHeader(request, response)- called once per requestfunction input(request, response, chunk)- called once per request body chunkfunction outputHeader(request, response)- called once per responsefunction output(request, response, chunk)- called once per response body chunk
The uploaded script will be deployed to the nevisProxy host in sub-directory WEB-INF using
the name of this pattern for the file name to ensure that the file name is unique.
Here is an example Lua script which replaces sensitive information in response bodies:
local buf = {}
function output(request, response, chunk)
if chunk ~= nil then
table.insert(buf, chunk)
return nil
else
return string.gsub(table.concat(buf), "some-sensitive-data", "*****");
end
end
The following expressions can be used anywhere within the script:
${name}- sanitized name of this pattern${host}- name of theVirtual Hostdirectory${instance}- name of thenevisProxy Instancedirectory
Lua Libraries
Upload addtional Lua libraries to be used within the Lua Script.
Uploaded files will be deployed to the following directory:
/var/opt/nevisproxy/${instance}/${host}/WEB-INF/lib/${name}/"
The Lua script must patch package.path so that the Lua libraries can be used.
For instance, add the following line at the beginning of the script:
package.path = package.path .. ";/var/opt/nevisproxy/${instance}/${host}/WEB-INF/lib/${name}/?.lua"
Filter Phase
Defines the position of the filter-mapping for this Lua filter. Which position to choose depends on your use case.
For requests filters will be invoked from START to END.
For responses filters will be invoked from END to START.
Choose from the following filter phases:
START: applied as early as possible for requests and as late as possible for responses.BEFORE_SANITATION: applied before filters which validate the request (e.g. Mod Security).SANITATION: used for security. This is the first phase which allows accessing the session for applications protected by a realm.AFTER_SANITATION: your request has passed security checks.BEFORE_AUTHENTICATION: applied just before authentication.AUTHENTICATION: used by the filter which connects to nevisAuth for applications which are protected by anAuthentication Realm.AFTER_AUTHENTICATION: the request has level 1 authentication. Used byAuthorization PolicyforAuthentication Levelstepup.BEFORE_AUTHORIZATION: choose this phase to do preprocessing before authorization.AUTHORIZATION: used byAuthorization PolicyforRequired Rolescheck.AFTER_AUTHORIZATION: used by patterns assigned asApplication Access Tokento applications.END: applied as late as possible for requests and as early as possible for responses.
Script Parameters
Parameters defined here can be used inside the Lua script.
The name of each parameter must start with param_. This limitation may be lifted in a future release.
The value will be trimmed.
Set this property if you need a different value depending on the inventory.
- click
varto use a nevisAdmin 4 variable for the entire setting:- Enter a good name for the variable as the default may be quite verbose.
- Enter some sample values to document the variable in the project.
- add the nevisAdmin 4 variable to your inventories:
- See below for an example which illustrates the syntax.
Example inventory variable:
vars:
example-variable:
param_example_string: "on"
param_example_numeric: 60
It is sometimes required to quote values.
In the example above, the value on would be converted to a boolean value if it weren't for the double quotes ".
When unsure, always put double quotes around the value.
Apply only to sub-paths
Set to apply this pattern on some sub-paths only.
Sub-paths must be relative (e.g. not starting with /)
and will be appended to the frontend path(s) of the virtual host (/)
or applications this pattern is assigned to.
Sub-paths ending with / are treated as a prefix,
otherwise an exact filter-mapping will be created.
The following table provides examples to illustrate the behavior:
| Frontend Path | Sub-Path | Effective Filter Mapping |
|---|---|---|
/ | secure/ | /secure/* |
/ | accounts | /accounts |
/ | api/secure/ | /api/secure/* |
/ | api/accounts | /api/accounts |
/app/ | secure/ | /app/secure/* |
/app/ | accounts | /app/accounts |
/app/ | api/secure/ | /app/api/secure/* |
/app/ | api/accounts | /app/api/accounts |
Apply Only Conditionally
Configure one or more conditions under which the configured rules should be triggered. Multiple conditions are combined with logical AND.
In the first column enter the key, for example ENV:REQUEST_URI.
In the second column enter the regex which has to match, for example: .*\.js$.
Maintenance Page
Plugin: nevisadmin-plugin-nevisproxy
Shows a static maintenance page if the current date and time is within a certain interval.
Technical note: nevisProxy uses system calls to determine the current time in UTC.
To check if UTC time is correct, run date -u on the nevisProxy host.
You can assign the pattern using Additional Settings to applications,
or an entire Virtual Host.
Show Maintenance Page
Allows to easily enable / disable the maintenance with being forced to set a time window.
Start
Enter the start date and time of the maintenance window.
- format:
yyyy-mm-dd HH:mm(24 hours) - timezone: UTC (not your local time)
- example:
2020-05-20 15:00
End
Enter the end date and time of the maintenance window.
- format:
yyyy-mm-dd HH:mm(24 hours) - timezone: UTC (not your local time)
- example:
2020-05-20 15:00
Maintenance Page
The page must contain two meta-tags which define the maintenance interval and will be patched during generation.
Example:
<head>
<meta name="maintenance-start" content="${maintenance-start-value}">
<meta name="maintenance-end" content="${maintenance-end-value}">
</head>
If the date and time on the target host are within this interval, the maintenance page will be shown. See also the introduction help text above.
Status Code
The status code of the response with the maintenance page.
By default, the response is sent with status code 503 for Service Unavailable.
Base Path
Enter the base path under which the maintenance page will be hosted.
You usually do not have to change this configuration, unless the path clashes with any other hosted resources.
By default, /maintenance/ is used.
Update Interval
Enter the time interval between checks of the maintenance page.
- In normal mode, the system checks the maintenance page for updates when a request comes in, if the configured interval has passed since the last check.
- In maintenance mode, the system ignores the
UpdateIntervaland fetches the maintenance page on each request.
nevisAdapt Risk Plugin
Plugin: nevisadmin-plugin-nevisdetect
The pattern configures nevisAdapt risk scores to be propagated to the nevisDetect backend for further processing.
For more information, see Risk score mapping for nevisAdapt.
nevisAdapt
Pattern reference for the nevisAdapt Instance to connect to.
Key Store
Used when simple or mutual (2-way) HTTPs is configured. If no pattern is assigned here automatic key management will provide the key store.
Trust Store
Reference a trust store provider pattern or leave empty to manage the trust store with nevisAdmin.
Propagate NevisAdaptDeviceFingerprint Risk Scores
Risk scores to be delivered to the client in the request headers. This option configures enables device fingerprint risk score to be propagated.
Propagate NevisAdaptDeviceRecognition Risk Scores
Risk scores to be delivered to the client in the request headers. This option configures enables device cookie risk score to be propagated.
Propagate NevisAdaptGeolocation Risk Scores
Risk scores to be delivered to the client in the request headers. This option configures enables geolocation risk score to be propagated.
Custom Properties
Set the value for the following optional parameters if the default ones do not match the requirements:
- cacheDisabled = (default 'false')
- ignoreHttpRequest = (default 'false')
- ignoreTlsObservation = (default 'true')
nevisDetect Administration GUI
Plugin: nevisadmin-plugin-nevisdetect
The pattern exposes the nevisDetect Frontend GUIs on a nevisProxy Virtual Host.
The Administration GUI is available on /nevisdetect/admin.
nevisDetect Admin
Reference for the pattern with the details of the web application.
Supported patterns:
- nevisDetect Admin Instance
Trust Store
Assign the trust store for outbound TLS connections.
If no pattern is assigned a trust store will be provided by nevisAdmin 4 automatic key management.
Hostname Validation
Enable to verify that the hostname on the certificate presented by the backend matches the hostname of nevisDetect Admin
Virtual Host(s)
Assign a Virtual Host which shall serve as entry point.
Authentication Realm
Mandatory setting to enforce authentication.
Application Access Token
Propagate a token to the backend application. The token informs the application about the authenticated user.
Please assign a Nevis SecToken. This is mandatory to have access to the Administration UI.
Additional Settings
Assign add-on patterns to customize the behavior of this service.
Example use cases:
Authorization Policyto enforce roles or an authentication level.URL Handlingto redirect or forward requests.HTTP Header Customizationto add, replace, or remove HTTP headers in requests or responses.
nevisDetect Authentication Connector
Plugin: nevisadmin-plugin-nevisdetect
Using the pattern, you can integrate nevisDetect as an authentication step in nevisAuth.
It is required to send the authentication requests to nevisDetect for analysis, and set the device recognition cookie for nevisAdapt.
nevisDetect Core
Pattern reference for the nevisDetect Core Instance to connect to.
nevisAdapt
Optional pattern reference for the nevisAdapt Instance to help configure the device cookie name.
On Success
Set the step to continue with on successful authentication.
On Failure
Set the step to continue with in case of error. If nothing is set, the authentication fails.
Message Queue Client Key Store
Used when simple or mutual (2-way) HTTPs is configured. If no pattern is assigned here automatic key management will provide the key store.
Message Queue Client Trust Store
Reference a trust store provider pattern or leave empty to manage the trust store with nevisAdmin.
Cookie Domain
If unset, the cookie will not be scoped to subdomains. Set this value to a specific domain to include more than one hostname.
Example: The user wants to login through example.com
If no value is given, the cookie will be effective for requests with the following addresses:
If the value is actually set as example.com, the cookie will be effective for requests against subdomains as well:
nevisDetect Database
Plugin: nevisadmin-plugin-nevisdetect
Configures nevisDetect to use a MariaDB database.
Assign to nevisDetect Persistency Instance as Database.
When deploying to Kubernetes, the database and connection user will be created automatically. The database schema will be migrated automatically on the next deployment when upgrading Nevis.
In classic VM deployments a database including tables must be set up before deployment.
Setup instructions can be found in the nevisDetect technical documentation. See Database setup for details.
If you want to use an Oracle database you have to set Custom Connection URL,
instead of using the high-level settings, and upload the JDBC Driver.
Database Type
Choose between MariaDB, Oracle and PostgreSQL.
We recommend using MariaDB as it is supported by all Nevis components that have a database.
Note: Support for PostgreSQL is experimental.
Database Host
Enter the host name of the database service.
The database service must be up when you deploy.
In a classic deployment the Database User and Database Password is used to connect.
In Kubernetes deployment a connection user and password will be generated
and the Root Credential will be used to set up the database schema.
Database Name
Enter the name of the database.
This database will be created in the database service.
Root Credential
Enter the name of a Kubernetes Secret containing the credentials for the database management job.
This setting is required in Kubernetes deployments when Advanced Settings > Database Management is
set to complete or schema.
It is not required when Database Management is set to disabled.
With complete, the Secret must contain the database management user:
username: <root-user>
password: <root-password>
With schema, the database management user can be omitted. The database and users must already
exist, and the Secret must contain the schema-owner and application users:
ownerUsername: <some-username>
ownerPassword: <some-password>
appUsername: <some-username>
appPassword: <some-password>
With complete, the application and schema-owner users are created with the credentials specified in
the Secret.
Because schemas are used, create a separate Kubernetes Secret for each database pattern with the application and schema-owner credentials when using Oracle or PostgreSQL. Store passwords in Secrets or an external secret provider, not directly in pattern values.
Root Credential Namespace
Set if the Root Credential is in a different Kubernetes namespace.
Database User
Enter the user for the DB connection.
Database Password
Enter the password of the DB connection user.
TLS Encryption
Configure how TLS is used when connecting to the database:
disabled– Connect without TLS (no encryption).trust– Use TLS, but skip certificate and hostname validation.verify-ca– Use TLS with certificate validation, but without hostname verification.verify-full– Use TLS with full validation: encryption, certificate verification, and hostname verification.
When certificate validation is enabled and the server certificate is not trusted by the component, you must configure
the Trust Store setting.
As the default trust varies by component (some use the Java default trust store, others also include OS-level trust stores),
configuring Trust Store is recommended whenever you use private CAs or self-signed certificates.
Trust Store
Assign a trust store which provides the CA certificate of the DB endpoint.
JDBC Driver
Due to licensing, nevisDetect cannot ship the JDBC driver to connect to Oracle databases, Therefore, those who want to use an Oracle database need to obtain and provide the Oracle JDBC driver on their own.
The .jar files can be downloaded from Oracle
Uploading any other .jar files containing JDBC drivers is possible as well.
Min Pool Size
Set the minimum connection pool size.
The connection pool will always attempt to maintain at least the minimum pool size.
However, the number of open connections may temporarily fall below the minimum in the following cases:
- During pool initialization.
- When connections are terminated due to idle timeout, maximum lifetime, network issues, or database server configuration.
Max Pool Size
Set the maximum number of available and borrowed (in use) connections that a pool maintains.
If the maximum number of connections is borrowed, no connections will be available until a connection is returned to the pool.
This setting allows the number of connections in the pool to increase as demand increases.
Max Idle Time
Sets the maximum amount of time that unused excess connections stay in the pool before it is considered stale and is removed (closed) to free up resources.
Max Lifetime
This setting controls the maximum lifetime of a connection in the pool.
After the specified lifetime, database connections are removed from the pool, closed, and reopened.
Database Management
The pattern controls whether the database and its schema are managed during installation and upgrades. For a complete installation and lifecycle guide, see Database management approaches.
The complete option performs the initial database preparation, such as creating the database or
Oracle tablespaces, creates the required database users, and runs schema migrations.
The schema option skips the initial preparation and runs schema migrations only. The database,
schema-owner user, and application user must already exist. Provide the schema-owner and application
user credentials in the root credential Secret. The root user information can be omitted with this
option. This is often a good balance when a DBA or customer provisioning service owns database
creation and role management, but automatic schema migrations are still desired. Select disabled
when migrations require explicit DBA approval and execution.
Select disabled to opt out of database management. In this case, create and migrate the database
schema yourself. Run the component dbschema image as a separate Kubernetes Job before the initial
deployment and before upgrades that change the schema. The migration job must be configured with
NEVIS_DBSCHEMA_BOOTSTRAP=false when role management is performed externally.
This feature is set to recommended by default. In Kubernetes deployments, recommended uses
complete. In classic VM deployments, it uses schema if the pattern supports Schema User and
Schema Password; otherwise, it uses disabled.
Flyway License Key
Please provide a licence key in case you would use the Flyway Teams Edition.
This is recommended only in case you would use an old database version (more than 5 years old). If you do not provide a licence key, the Flyway Community Edition will be used by default.
For more information about Flyway editions please visit this page Flyway.
Hikari Configuration Values
Enter custom values for Hikari datasource configuration.
Supported keys are described at HikariCP - GitHub.
The prefix spring.datasource.hikari. must not be included as it will be added automatically to each key.
The following keys should not be configured here as there are settings in the Connection Pool tab:
minimumIdlemaximumPoolSizeidleTimeoutmaxLifetime
If you still configure these keys, they will overrule the high-level settings.
Connection Parameters
Enter parameters for the DB connection string.
Enter 1 parameter per line.
Lines will be joined with &.
The default is:
useMysqlMetadata=true
The default value will be used only when no parameters are entered.
If you want to keep the default parameters, add them as well.
Connection URL
Set only if you have to use a JDBC connection string which the pattern cannot generate.
If the prefix of the connection string works for you
and you only have to add or overwrite query parameters, set Connection Parameters instead.
If you have to use this setting, please consult your setup with your integration partner.
In Kubernetes deployments the connection string configured here is used by the component only. It is not used to set up and migrate the database schema.
Thus, this setting should only be used in classic deployments,
or when Database Management is disabled.
Instead of using 'jdbc:mysql' either
- Use the high-level configuration for the Database Host instead of providing a custom URL
- Add the query parameter permitMysqlScheme to the custom URL
nevisDetect Persistency REST API
Plugin: nevisadmin-plugin-nevisdetect
The pattern exposes the nevisDetect Frontend GUIs on a nevisProxy Virtual Host.
The nevisDetect Persistency REST API is available on /nevisdetect/persistency.
nevisDetect Persistency
Reference for the pattern with the details of the web application.
Supported patterns:
- nevisDetect Persistency Instance
Trust Store
Assign the trust store for outbound TLS connections.
If no pattern is assigned a trust store will be provided by nevisAdmin 4 automatic key management.
Hostname Validation
Enable to verify that the hostname on the certificate presented by the backend matches the hostname of nevisDetect Persistency
Virtual Host(s)
Assign a Virtual Host which shall serve as entry point.
Authentication Realm
Mandatory setting to enforce authentication.
Application Access Token
Propagate a token to the backend application. The token informs the application about the authenticated user.
Please assign a Nevis SecToken. This is mandatory to have access to the Administration UI.
Additional Settings
Assign add-on patterns to customize the behavior of this service.
Example use cases:
Authorization Policyto enforce roles or an authentication level.URL Handlingto redirect or forward requests.HTTP Header Customizationto add, replace, or remove HTTP headers in requests or responses.
nevisProxy Observability Settings
Plugin: nevisadmin-plugin-nevisproxy
Sets up observability with OpenTelemetry for nevisProxy.
The OpenTelemetry settings are applied to each Virtual Host of the instance.
Transport Protocol
Choose one of:
- gRPC: The nevisProxy OpenTelemetry service supports gRPC
- http: The nevisProxy OpenTelemetry service does not support gRPC
Trace Mode
Choose one of:
- enabled: enable the trace feature of OpenTelemetry
- disabled: disable the trace feature of OpenTelemetry
Trace Exporter Address
Enter the target URL ([http[s]://]host:port) of the backend services to which the exporter is going to send spans.
The /v1/traces path is automatically attached to it.
This parameter is required if a Deployment Environment is set.
Trace Exporter Trust Store
Optional setting for enabling trust to the Opentelemetry service.
For securing production environments:
- set
Trace Exporter Addressstarting withhttps:// - assign a
Trust Storepattern containing the certificates required for verifying the backend certificate
Trace Exporter Key Store
Optional setting to use a client certificate for connecting to the Opentelemetry service.
Metrics Mode
Choose one of:
- enabled: enable the metrics feature of OpenTelemetry
- disabled: disable the metrics feature of OpenTelemetry
Metrics Exporter Address
Enter the target URL ([http[s]://]host:port) of the backend services to which the exporter is going to send metrics.
The /v1/metrics path is automatically attached to it.
Metrics Exporter Trust Store
Optional setting for enabling trust to the Opentelemetry service.
For securing production environments:
- set
Metrics Exporter Addressstarting withhttps:// - assign a
Trust Storepattern containing the certificates required for verifying the backend certificate
Metrics Exporter Key Store
Optional setting to use a client certificate for connecting to the Opentelemetry service.
Resource Service Name
Configure the service.name key-value pair resource attribute.
Deployment Environment
Allows the configuration of the deployment.environment.name key-value pair resource attribute. The configured value will be the values of the deployment.environment.name attribute sent to the OpenTelemetry service.
Logs Mode
Choose one of:
- enabled: enable the logs feature of OpenTelemetry
- disabled: disable the logs feature of OpenTelemetry
Logs Exporter Address
Enter the target URL ([http[s]://]host:port) of the backend services to which the exporter is going to send the logs.
The /v1/logs path is automatically attached to it.
Logs Exporter Trust Store
Optional setting for enabling trust to the OpenTelemetry service.
For securing production environments:
- set
Logs Exporter Addressstarting withhttps:// - assign a
Trust Storepattern containing the certificates required for verifying the backend certificate