Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding Keycloak to SSO guides #1383

Closed
wants to merge 4 commits into from
Closed

adding Keycloak to SSO guides #1383

wants to merge 4 commits into from

Conversation

dmitry-spectro
Copy link
Contributor

Describe the Change

This PR adds Keycloak integration guide to SSO

Review Changes

💻 Add Preview URL

🎫 Jira Ticket

@dmitry-spectro dmitry-spectro requested a review from a team as a code owner June 27, 2023 08:53
@dmitry-spectro dmitry-spectro requested review from karl-cardenas-coding, rahulhazra97 and sudkul87 and removed request for a team June 27, 2023 08:53
@netlify
Copy link

netlify bot commented Jun 27, 2023

Deploy Preview for docs-spectrocloud failed.

Name Link
🔨 Latest commit 8be1b75
🔍 Latest deploy log https://app.netlify.com/sites/docs-spectrocloud/deploys/655bad004eb47000083071bb

<a href="#gdcalert19">alert19</a>
<a href="#gdcalert20">alert20</a>

<p style="color: red; font-weight: bold">>>>>> PLEASE check and correct alert issues and delete this message and the inline alerts.<hr></p>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove all HTML tags and elements.

# Palette Keycloak integration


## Prerequisites:
Copy link
Contributor

@sudkul87 sudkul87 Jul 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
## Prerequisites:
# Prerequisites

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your document must adhere to the following layout:

# Title

# Prerequisites

# Enablement
1. Action 1 ...
...
...
N. Action N

# Validate

Notice that there are no H2 tags. Read the details here.



<p style="color: red; font-weight: bold">>>>>> gd2md-html alert: ERRORs: 0; WARNINGs: 0; ALERTS: 20.</p>
<ul style="color: red; font-weight: bold"><li>See top comment block for details on ERRORs and WARNINGs. <li>In the converted Markdown or HTML, search for inline alerts that start with >>>>> gd2md-html alert: for specific instances that need correction.</ul>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [vale] reported by reviewdog 🐶
[spectrocloud.ableism] Avoid using ableism terms. Use 'display' instead of 'See'.




# Palette Keycloak integration
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [vale] reported by reviewdog 🐶
[Vale.Spelling] Did you really mean 'Keycloak'?



1. Access to Palette
2. Keycloak exposed on an external IP address, preferably with DNS name
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [vale] reported by reviewdog 🐶
[Vale.Spelling] Did you really mean 'Keycloak'?



1. Provision a k8s cluster from Palette and download its kubeconfig
2. Let’s install keycloak on our Kubernetes cluster with CLI:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [vale] reported by reviewdog 🐶
[Vale.Spelling] Did you really mean 'keycloak'?


1. Provision a k8s cluster from Palette and download its kubeconfig
2. Let’s install keycloak on our Kubernetes cluster with CLI:
3. After a couple of minutes, verify which address Keycloak got:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [vale] reported by reviewdog 🐶
[Vale.Spelling] Did you really mean 'Keycloak'?

![alt_text](images/image14.png "image_tooltip")


23. I add a team “admins” and add “Project Admin” role to my project “Default”
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [vale] reported by reviewdog 🐶
[Vale.Terms] Use 'admin' instead of 'Admin'.


![alt_text](images/image16.png "image_tooltip")

26. I go back to Keycloak, click on “Users” on the left hand side and create a user, making sure “Username”, “Email”, “First Name” and “Last Name” are all filled in.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [vale] reported by reviewdog 🐶
[Vale.Spelling] Did you really mean 'Keycloak'?


![alt_text](images/image18.png "image_tooltip")

28. If I now open another incognito window, go to Palette and log in with my newly created user in Keycloak, I should be automatically logged in Palette as admin!
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [vale] reported by reviewdog 🐶
[Vale.Spelling] Did you really mean 'Keycloak'?


![alt_text](images/image19.png "image_tooltip")

29. Voilà, our example is done,we’re logged in with the user from Keycloak without touching anything in Palette
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [vale] reported by reviewdog 🐶
[Vale.Spelling] Did you really mean 'Keycloak'?

![alt_text](images/image20.png "image_tooltip")


Please contact us if you have any further questions on how to set up proper RBAC!
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [vale] reported by reviewdog 🐶
[Google.Exclamation] Don't use exclamation points in text.

@karl-cardenas-coding karl-cardenas-coding removed the request for review from rahulhazra97 November 8, 2023 23:00
@@ -0,0 +1,134 @@
# Palette Keycloak integration

This document permits to integrate Palette with Keycloak and log in to Palette with credentials stored in Keycloak
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [vale] reported by reviewdog 🐶
[Vale.Spelling] Did you really mean 'Keycloak'?

@@ -0,0 +1,134 @@
# Palette Keycloak integration

This document permits to integrate Palette with Keycloak and log in to Palette with credentials stored in Keycloak
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [vale] reported by reviewdog 🐶
[Vale.Spelling] Did you really mean 'Keycloak'?

## Installation

1. Provision a Kubernetes cluster from Palette and download its kubeconfig
2. Install keycloak on our Kubernetes cluster with CLI:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [vale] reported by reviewdog 🐶
[Vale.Spelling] Did you really mean 'keycloak'?

wget -q -O - https://raw.githubusercontent.com/keycloak/keycloak-quickstarts/latest/kubernetes-examples/keycloak-ingress.yaml | sed "s/KEYCLOAK_HOST/a5f3a06f0063143fea26b6a086cb2c89-1900572074.eu-west-3.elb.amazonaws.com/" | kubectl create -f -
```

This creates an ingress and Palette should now show Keycloak service:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [vale] reported by reviewdog 🐶
[Vale.Spelling] Did you really mean 'Keycloak'?


This creates an ingress and Palette should now show Keycloak service:

![alt_text](/user-management_saml-sso_keycloak-01-keycloak-service.png "Keycloak Service")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [vale] reported by reviewdog 🐶
[Vale.Spelling] Did you really mean 'alt_text'?


![alt_text](/user-management_saml-sso_keycloak-13-palette-logged-in.png "Palette logged in")

## OPTIONAL: Create a Team in Palette and add one more user in Keycloak
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [vale] reported by reviewdog 🐶
[Vale.Spelling] Did you really mean 'Keycloak'?


![alt_text](/user-management_saml-sso_keycloak-14-palette-groups.png "Palette groups")

23. Add a team “admins” and add “Project Admin” role to the “Default” project
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [vale] reported by reviewdog 🐶
[Vale.Terms] Use 'admin' instead of 'Admin'.


![alt_text](/user-management_saml-sso_keycloak-16-palette-sso-admins.png "Palette SSO Admins")

26. Go back to Keycloak, click on “Users” on the left hand side and create a user, making sure “Username”, “Email”, “First Name” and “Last Name” are all filled in.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [vale] reported by reviewdog 🐶
[Vale.Spelling] Did you really mean 'Keycloak'?


![alt_text](/user-management_saml-sso_keycloak-18-keycloak-password.png "Keycloak password")

28. Open another incognito window, go to Palette and log in with the newly created user in Keycloak. You should be automatically logged in Palette as admin!
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [vale] reported by reviewdog 🐶
[Vale.Spelling] Did you really mean 'Keycloak'?


![alt_text](/user-management_saml-sso_keycloak-19-keycloak-incognito.png "Keycloak incognito")

29. Voilà, the example is done, you should be logged in with the user from Keycloak without touching anything in Palette!
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [vale] reported by reviewdog 🐶
[Google.Exclamation] Don't use exclamation points in text.

Copy link
Contributor

Images automagically compressed by Calibre's image-actions

Compression reduced images by 7%, saving 401.35 KB.

Filename Before After Improvement Visual comparison
assets/docs/images/user-management_saml-sso_keycloak-01-keycloak-service.png 331.11 KB 326.39 KB -1.4% View diff
assets/docs/images/user-management_saml-sso_keycloak-02-callback-url.png 348.60 KB 201.88 KB -42.1% View diff
assets/docs/images/user-management_saml-sso_keycloak-03-create-client.png 220.36 KB 217.34 KB -1.4% View diff
assets/docs/images/user-management_saml-sso_keycloak-04-palette-username.png 138.30 KB 135.47 KB -2.0% View diff
assets/docs/images/user-management_saml-sso_keycloak-05-client-authentication.png 229.88 KB 225.12 KB -2.1% View diff
assets/docs/images/user-management_saml-sso_keycloak-06-keycloak-callback.png 212.67 KB 208.26 KB -2.1% View diff
assets/docs/images/user-management_saml-sso_keycloak-07-keycloak-credentials.png 199.44 KB 194.27 KB -2.6% View diff
assets/docs/images/user-management_saml-sso_keycloak-08-palette-callback.png 351.00 KB 341.61 KB -2.7% View diff
assets/docs/images/user-management_saml-sso_keycloak-09-palette-oidc-enabled.png 246.49 KB 240.06 KB -2.6% View diff
assets/docs/images/user-management_saml-sso_keycloak-10-keycloak-admin.png 182.17 KB 177.14 KB -2.8% View diff
assets/docs/images/user-management_saml-sso_keycloak-11-palette-sso.png 701.50 KB 640.32 KB -8.7% View diff
assets/docs/images/user-management_saml-sso_keycloak-12-keycloak-sso.png 178.88 KB 159.23 KB -11.0% View diff
assets/docs/images/user-management_saml-sso_keycloak-13-palette-logged-in.png 621.93 KB 583.52 KB -6.2% View diff
assets/docs/images/user-management_saml-sso_keycloak-14-palette-groups.png 103.11 KB 99.59 KB -3.4% View diff
assets/docs/images/user-management_saml-sso_keycloak-15-palette-project.png 123.61 KB 118.75 KB -3.9% View diff
assets/docs/images/user-management_saml-sso_keycloak-16-palette-sso-admins.png 443.66 KB 429.78 KB -3.1% View diff
assets/docs/images/user-management_saml-sso_keycloak-17-keycloak-user.png 179.40 KB 174.39 KB -2.8% View diff
assets/docs/images/user-management_saml-sso_keycloak-18-keycloak-password.png 141.41 KB 137.16 KB -3.0% View diff
assets/docs/images/user-management_saml-sso_keycloak-19-keycloak-incognito.png 184.39 KB 163.45 KB -11.4% View diff
assets/docs/images/user-management_saml-sso_keycloak-20-palette-user-logged-in.png 599.31 KB 562.12 KB -6.2% View diff

507 images did not require optimisation.

@karl-cardenas-coding
Copy link
Contributor

@dmitry-spectro I'm closing this ticket as the merge conflicts are a bit tricky to resolve. I created a new PR #1839

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants