Please don't post unformatted code, logs, or configuration as it's very hard to read.
Instead, paste the text and format it with </> icon or pairs of triple backticks (```), and check the preview window to make sure it's properly formatted before posting it. This makes it more likely that your question will receive a useful answer.
It would be great if you could update your post to solve this.
Is elasticsearch and kibana running fine after you set the configuration ?
What does "I launch the app from GSuite" mean exactly ? Do you click on a link/button in Gsuite ? If so, what is the URL that this link points to ?
Where do you get this message from ? What is the URL on your browser when that message is shown ?
What happens when you try to navigate to https://<aws_pub_ip>:5601 ? Do you get redirected to google to authenticate ?
Apologies for not formatting the question @ikakavas.
Please find answer's to your questions.
Is elasticsearch and kibana running fine after you set the configuration ?
Yes I am able to access elasticsearch and kibana with their respective url's. They both are hosted in same machines and ssl is configured for both of them.
What does "I launch the app from GSuite" mean exactly ? Do you click on a link/button in Gsuite ? If so, what is the URL that this link points to ?
I have created a GSuite custom saml app for kibana, which I am trying to launch.
The URL points to " https://<aws_pub_ip>:5601/api/security/saml/v1/saml"
Where do you get this message from ? What is the URL on your browser when that message is shown ?
When I try to launch the app from GSuite it throws the mentioned error. The url on the browser is https://<aws_pub_ip>:5601/api/security/saml/v1/saml
Note: I also see the same message when I try to access this url from my browser.
What happens when you try to navigate to https://<aws_pub_ip>:5601 ? Do you get redirected to google to authenticate ?
When I try to access the above url it takes me to Kibana homepage. I am not redirected to google to authenticate.
Thanks @ikakavas it has solved that issue, but now has lead to different issue.
As soon as I changed the ACS url It asked me to enable xpack.security.enabled: true in elasticsearch.yml which I did, following that I am receiving below errors in kibana
Browser shows Kibana server is not ready yet
an 28 14:48:51 ip-xx-xx-xx kibana[27260]: {"type":"log","@timestamp":"2020-01-28T14:48:51Z","tags":["warning","plugins","licensing"],"pid":27260,"message":"License information could not be obtained from Elasticsearch for the [data] cluster. [security_exception] missing authentication credentials for REST request [/_xpack], with { header={ WWW-Authenticate={ 0=\"Bearer realm=\\\"security\\\"\" & 1=\"ApiKey\" & 2=\"Basic realm=\\\"security\\\" charset=\\\"UTF-8\\\"\" } } } :: {\"path\":\"/_xpack\",\"statusCode\":401,\"response\":\"{\\\"error\\\":{\\\"root_cause\\\":[{\\\"type\\\":\\\"security_exception\\\",\\\"reason\\\":\\\"missing authentication credentials for REST request [/_xpack]\\\",\\\"header\\\":{\\\"WWW-Authenticate\\\":[\\\"Bearer realm=\\\\\\\"security\\\\\\\"\\\",\\\"ApiKey\\\",\\\"Basic realm=\\\\\\\"security\\\\\\\" charset=\\\\\\\"UTF-8\\\\\\\"\\\"]}}],\\\"type\\\":\\\"security_exception\\\",\\\"reason\\\":\\\"missing authentication credentials for REST request [/_xpack]\\\",\\\"header\\\":{\\\"WWW-Authenticate\\\":[\\\"Bearer realm=\\\\\\\"security\\\\\\\"\\\",\\\"ApiKey\\\",\\\"Basic realm=\\\\\\\"security\\\\\\\" charset=\\\\\\\"UTF-8\\\\\\\"\\\"]}},\\\"status\\\":401}\",\"wwwAuthenticateDirective\":\"Bearer realm=\\\"security\\\", ApiKey, Basic realm=\\\"security\\\" charset=\\\"UTF-8\\\"\"}"}
My question is do we have to enable xpack.security.enabled: true since document does not state that.
I would think that duplicating this information (to set xpack.security.enabled: true ) in every part of the docs that refer to any security feature is too verbose, but I'll bring this up and see if we can make it any clearer for users. Thanks for the feedback!
Thanks for the clarification, so does that also mean I need to set basic security for elasticsearch (username/password) or will it be offloaded to SAML in case of SAML configuration?
@ikakavas thanks for all the help, I was able to somehow resolve the issue until I landed on this error. {"statusCode":401,"error":"Unauthorized","message":"[security_exception] current license is non-compliant for [saml], with { license.expired.feature=\"saml\" }"}
For testing purpose I am using self signed certificates for ELK stack. Can you please let me know if SAML can work with self signed certificates. I have read through the article you mentioned but can't get my head around certificates.
When I try to open app from GSuite I am getting {"statusCode":403,"error":"Forbidden","message":"Forbidden"} error msg
I have almost tried all settings to make it work but I am unable to login to Kibana. Can you please help and let me know if I am missing something in configuration.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.