opensearch-project / documentation-website

The documentation for OpenSearch, OpenSearch Dashboards, and their associated plugins.
https://opensearch.org/docs
Apache License 2.0
66 stars 448 forks source link

[DOC-META] Create repository with different cluster security config examples #1566

Closed cwperks closed 1 month ago

cwperks commented 1 year ago

What do you want to do?

There are currently 2 zip files on the documentation website with examples for an LDAP authentication and authorization backend and one with a SAML authentication backend as well. See https://github.com/opensearch-project/documentation-website/tree/main/assets/examples

The example zips can be located on:

Its been reported that the LDAP example is outdated and needs updating: https://github.com/opensearch-project/documentation-website/issues/905

There currently is no example for OpenID Connect and setup-related questions are commonly asked on the forum.

As a new maintainer for the security plugin, I have created different cluster configs for the different types of authentication backends to go through the same setup as new users of OpenSearch to understand the steps required to setup the backends and for debugging purposes.

See:

Advantages:

Disadvantages:

cwperks commented 1 year ago

@cwillum @davidlago @dblock Any ideas on the suggestion above?

hdhalter commented 8 months ago

Sorry this has been neglected for so long. @davidlago , @scrawfor99 - do you think this is worth doing?

davidlago commented 8 months ago

There is a sweet spot between how useful is to have examples and the cost of maintaining them. @cwperks do you have some data points around how F are these FAQs that would be answered by those examples?

I'm in support of creating an examples repo for security use cases, but being judicious with how many we put in there as we (someone) will have to keep them up to date.

cwperks commented 8 months ago

I have started adding examples into the demos repo. Here's the ldap-example for a cluster running with OpenLDAP as an Identity provider. I think this is worth doing and as soon as more examples are added to the demos repo I think we can remove the zips on the documentation-website and instead maintain the demos repo.

I was thinking of having some OSCI contributors help with creating the demos of different cluster configurations. i.e. SAML, OIDC, an example using multiauth, JWT backend and possibly others.

DarshitChanpura commented 5 months ago

Another example in queue to be added to demos repository: SAML demo (PR: https://github.com/opensearch-project/demos/pull/126)

In this example, an OpenSearch node, an OpenSearch Dashboards node, and a test SAML IdP server are spun up via docker with 1 default user shipped as part of the SAML auth realm. It is configurable, and ready to be tested.

hdhalter commented 5 months ago

Hi @cwperks, with the updated SAML example, do you want to test the existing sample, or should we remove it?

hdhalter commented 2 months ago

@AntonEliatra - Can you please respond to this comment so I can assign you to the issue? Thanks!

AntonEliatra commented 1 month ago

@hdhalter Please assign to me

hdhalter commented 1 month ago

@AntonEliatra , has everything in this issue been addressed? Thanks!

AntonEliatra commented 1 month ago

@hdhalter ldap, saml and oidc are available, I believe this was the requirement in this issue. In which case, yes, I believe this can be closed