Getting the error: Invalid config file (/usr/share/enterprise-search/config/enterprise-search.yml): The setting '#/ent_search' contains additional properties ["auth"] outside of the schema when none are allowed

I am trying to deploy Elastic Enterprise search on Azure Kubernetes, i have followed Quickstart | Elastic Cloud on Kubernetes [2.9] | Elastic

But getting the error:
Invalid config file (/usr/share/enterprise-search/config/enterprise-search.yml):
The setting '#/ent_search' contains additional properties ["auth"] outside of the schema when none are allowed

Hi @shwetha_L,

Welcome to the community! It looks like a configuration issue. Can you share your config for us to take a look?

hello Carly,

I am using the default YAML mentioned on the elastic config:
however, I understood the problem is that in 8.10 enterprise search version, the Cnfiguration is deprecated.
"The setting '#/ent_search/auth/source' is deprecated and will be removed in version '8.0.0'. Please use the new auth config format ent_search.auth.<auth_name>.source." but no where what is the new configuration to be provided is documented. kindly help me on this, as I am setting up this in Azure Kuberentes on my own.

apiVersion: enterprisesearch.k8s.elastic.co/v1
kind: EnterpriseSearch
metadata:
name: enterprise-search
namespace: sb-elastic
spec:
version: 8.10.3
count: 1
elasticsearchRef:
name: elasticsearch
namespace: sb-elastic

apiVersion: kibana.k8s.elastic.co/v1
kind: Kibana
metadata:
name: kibana
namespace: sb-elastic
spec:
version: 8.10.3
count: 1
elasticsearchRef:
name: elasticsearch
namespace: sb-elastic
http:
tls:
certificate:
secretName: elastic-ssl-kib
service:
spec:
type: LoadBalancer
config:
xpack.monitoring.kibana.collection.enabled: false
xpack.monitoring.collection.enabled: true
podTemplate:
spec:
containers:
- name: kibana
resources:
requests:
memory: 2Gi
cpu: 1
limits:
memory: 2Gi
cpu: 1

Hi @shwetha_L,

It sounds like your issue hasn't been resolved so I've removed the solution indicator.

I don't see the deprecated settings in your configuration. Can you share where those are, or confirm that you're not setting ent_search.auth.<auth_name>.source anywhere?

hello Carly,

As per the elastic document, yes I am no where setting " ent_search.auth.<auth_name>.source" in the yaml file

apiVersion: enterprisesearch.k8s.elastic.co/v1

kind: EnterpriseSearch
metadata:
name: enterprise-search
namespace: sb-elastic
spec:
version: 8.10.3
count: 1
elasticsearchRef:
name: elasticsearch
namespace: sb-elastic

Hello Carly,

we havent got any response, please help us on this.

Small observation if this hepls:

Based on the yaml you've provided, I see that you've defined resources for a Kibana instance, but there is no direct mention of Enterprise Search configuration or authentication settings. The error message indicates that the problem lies in the enterprise-search.yml file, which you haven't included here.

To resolve this issue, you should check the enterprise-search.yml configuration file, specifically the auth setting

It seems like you've tried to configure an authentication setting under "auth" in your YAML file, but the schema doesn't allow for additional properties under "#/ent_search"

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.