# Cluster SAML integration

**URL:** <https://discuss.elastic.co/t/cluster-saml-integration/184850>\
**Category:** Elastic Cloud Enterprise (ECE)\
**Created:** [June 8, 2019, 7:21pm UTC](https://discuss.elastic.co/t/cluster-saml-integration/184850 "2019-06-08T19:21:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![afuggetta](https://avatars.discourse-cdn.com/v4/letter/a/71e660/32.png) [@afuggetta](https://discuss.elastic.co/u/afuggetta)\
**Post date:** [June 8, 2019, 7:21pm UTC](https://discuss.elastic.co/t/cluster-saml-integration/184850/1 "2019-06-08T19:21:45Z")

</div>

Hello,

I am trying to setup an ECE cluster security with SAML.  
This is what I put into the `settings_overrides` for the data nodes:

```
xpack.security.authc.token.enabled: true
xpack.security.authc.realms.saml.saml1:
  order: 2
  idp.metadata.path: "https://xxx_metadata.xml"
  idp.entity_id: "https://xxx.com"
  sp.entity_id: "xxx.com"
  sp.acs: "https://xxx:443/api/security/v1/saml"
  sp.logout: "https://xxx.com/logout"
  attributes.principal: "Principal"
  attributes.groups: "Groups"

```

And this is what I set for the kibana `settings_overrides`:

```
xpack.security.authProviders: [saml, basic]
server.xsrf.whitelist: [/api/security/v1/saml]

```

Kibana never provisions when I add the aforementioned settings.

The error I see in the logs is this:

`ERROR	[kibana]	elastic/elastic.go:117	error making http request: Get https://xxxx:18674/api/status: dial tcp xxxx:18674: connect: connection refused`

I can't find any info about the port 18674...

Also I'm not sure if the elasticsearch configuration goes in the `data` node or `master` node.

Thanks.

---

<div class="post-metadata">

**Author:** ![Alex\_Piggott](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alex_piggott/32/11053_2.png) [@Alex\_Piggott](https://discuss.elastic.co/u/Alex_Piggott)\
**Post date:** [June 10, 2019, 1:21pm UTC](https://discuss.elastic.co/t/cluster-saml-integration/184850/2 "2019-06-10T13:21:25Z")

</div>

> [@afuggetta](#):
>
> Also I'm not sure if the elasticsearch configuration goes in the `data` node or `master` node.

The ES configuration should go in _both_ (sorry about that, we're working on making the configuration of multi-topology clusters more intuitive)

> [@afuggetta](#):
>
> And this is what I set for the kibana `settings_overrides` :
> 
> ```auto
> xpack.security.authProviders: [saml, basic]
> server.xsrf.whitelist: [/api/security/v1/saml]
> 
> ```

Per the SAML docs ([Secure your clusters with SAML | Elastic Cloud Enterprise Reference [3.6] | Elastic](https://www.elastic.co/guide/en/cloud-enterprise/current/ece-securing-clusters-SAML.html)) the Kibana config is missing (eg):

```auto
xpack.security.public:
  protocol: https
  hostname: d1a45bf330b74c248d7cc2e0ead8e159.192.168.44.10.ip.es.io 
  port: 9243

```

(seems like your hostname would be `xxx.com`)

> [@afuggetta](#):
>
> The error I see in the logs is this:  
> `ERROR	[kibana]	elastic/elastic.go:117	error making http request: Get https://xxxx:18674/api/status: dial tcp xxxx:18674: connect: connection refused`

Are those your client logs? I don't recognize that logging format. Seems plausible that it would be explained by the missing `xpack.security.public`

Note you might also need the trailing `/` on this:

```auto
sp.entity_id: "KIBANA_ENDPOINT_URL/"

```

---

<div class="post-metadata">

**Author:** ![afuggetta](https://avatars.discourse-cdn.com/v4/letter/a/71e660/32.png) [@afuggetta](https://discuss.elastic.co/u/afuggetta)\
**Post date:** [June 10, 2019, 1:25pm UTC](https://discuss.elastic.co/t/cluster-saml-integration/184850/3 "2019-06-10T13:25:16Z")

</div>

Thanks @Alex_Piggott, I'm trying that now.

---

<div class="post-metadata">

**Author:** ![afuggetta](https://avatars.discourse-cdn.com/v4/letter/a/71e660/32.png) [@afuggetta](https://discuss.elastic.co/u/afuggetta)\
**Post date:** [June 10, 2019, 1:34pm UTC](https://discuss.elastic.co/t/cluster-saml-integration/184850/4 "2019-06-10T13:34:09Z")

</div>

Adding the `xpack.security.public` seems to have done it, thanks @Alex_Piggott.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 24, 2019, 1:39pm UTC](https://discuss.elastic.co/t/cluster-saml-integration/184850/5 "2019-06-24T13:39:29Z")

</div>

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