/* * Copyright 2015 floragunn UG (haftungsbeschränkt) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ package com.floragunn.searchguard.support; public class ConfigConstants { public static final String SG_CONFIG_PREFIX = "_sg_"; public static final String SG_CHANNEL_TYPE = SG_CONFIG_PREFIX+"channel_type"; public static final String SG_DLS_QUERY = SG_CONFIG_PREFIX+"dls_query"; public static final String SG_FLS_FIELDS = SG_CONFIG_PREFIX+"fls_fields"; //public static final String SG_INTERNAL_REQUEST = SG_CONFIG_PREFIX+"internal_request"; public static final String SG_CONF_REQUEST_HEADER = SG_CONFIG_PREFIX+"conf_request"; public static final String SG_REMOTE_ADDRESS = SG_CONFIG_PREFIX+"remote_address"; public static final String SG_REMOTE_ADDRESS_HEADER = SG_CONFIG_PREFIX+"remote_address_header"; //public static final String SG_SGROLES = SG_CONFIG_PREFIX+"sgroles"; /** * Set by SSL plugin for https requests only */ public static final String SG_SSL_PEER_CERTIFICATES = SG_CONFIG_PREFIX+"ssl_peer_certificates"; /** * Set by SSL plugin for https requests only */ public static final String SG_SSL_PRINCIPAL = SG_CONFIG_PREFIX+"ssl_principal"; /** * If this is set to TRUE then the request comes from a Server Node (fully trust) * Its expected that there is a _sg_user attached as header */ public static final String SG_SSL_TRANSPORT_INTERCLUSTER_REQUEST = SG_CONFIG_PREFIX+"ssl_transport_intercluster_request"; /** * Set by the SSL plugin, this is the peer node certificate on the transport layer */ public static final String SG_SSL_TRANSPORT_PRINCIPAL = SG_CONFIG_PREFIX+"ssl_transport_principal"; public static final String SG_USER = SG_CONFIG_PREFIX+"user"; public static final String SG_USER_HEADER = SG_CONFIG_PREFIX+"user_header"; public static final String SG_XFF_DONE = SG_CONFIG_PREFIX+"xff_done"; public static final String SG_CONFIG_INDEX = "searchguard.config_index_name"; public static final String SG_DEFAULT_CONFIG_INDEX = "searchguard"; public static final String SG_INTERCLUSTER_REQUEST_EVALUATOR_CLASS = "searchguard.cert.intercluster_request_evaluator_class"; }