Skip to content

Commit

Permalink
Boards for DX refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
andylwelch committed Feb 29, 2024
1 parent e60ab8c commit 740866e
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 34 deletions.
File renamed without changes.
File renamed without changes
31 changes: 31 additions & 0 deletions docs/boards/dx/auth/sso.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
### Allow SSO for Boards

!!! tip

This task is only required if Boards is hosted on a different domain to HCL DX

## Steps

Edit the config to include the following,

1. haproxy.cfg

Edit the config using the following command

`kubectl edit configmap <DX_DEPLOYMENT>-haproxy -n <DX_NAMESPACE> -o yaml`

For example:

`kubectl edit configmap hcl-dx-dev1-haproxy -n hcl-dx-dev1 -o yaml`

Add the following line

http-response replace-header Set-Cookie ^(.*) \1;\ SameSite=None;\ Secure

For example:

![outcome](./haproxy.png)

1. httpd.conf

Header edit Set-Cookie ^(.*)$ "$1; Secure; SameSite=None"
File renamed without changes.
34 changes: 4 additions & 30 deletions docs/boards/dx/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,36 +6,10 @@
1. Kubernetes environment
1. `kubectl` installed & authenticated

## WebSphere OAuth Config
## Steps

Please follow the instructions in [WebSphere OAuth Config](./oauth/websphere.md)
1. Setup [WebSphere OAuth Config](./auth/websphere.md)

## Install Boards portlet
1. Configure [SSO for Boards](./auth/sso.md)

Please follow the instructions in [Install Boards portlet](./portlet/index.md)

### Allow SSO inside Boards frame

Edit the config to include the following,

1. haproxy.cfg

Edit the config using the following command

`kubectl edit configmap <DX_DEPLOYMENT>-haproxy -n <DX_NAMESPACE> -o yaml`

For example:

`kubectl edit configmap hcl-dx-dev1-haproxy -n hcl-dx-dev1 -o yaml`

Add the following line

http-response replace-header Set-Cookie ^(.*) \1;\ SameSite=None;\ Secure

For example:

![outcome](./haproxy.png)

1. httpd.conf

Header edit Set-Cookie ^(.*)$ "$1; Secure; SameSite=None"
1. Install the Boards portlet as [described here](./portlet/index.md)
14 changes: 10 additions & 4 deletions docs/boards/dx/portlet/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,23 @@ To install the Huddo Boards portlet, follow these steps:

1. Open the `Portlets` page, find Huddo Boards, click `Configure Portlet`

![configure portlet](./manage-portlet.png)
![configure portlet](./manage.png)

1. Edit the cfg.BaseURL to `https://<BOARDS_URL`.
1. Edit the cfg.BaseURL to `https://<BOARDS_URL>`.

For example `https://boards.company.com` or `https://company.example.com/Boards`
For example:

- `https://boards.company.com` or
- `https://company.example.com/boards`
- `https://boards.huddo.com` (hybrid customers)

![edit base url](./configure.png)

Click OK

1. The `Huddo Boards` Portlet should now be accessible under `Edit mode` => `Add` => `Applications`
1. The `Huddo Boards` Portlet should now be accessible at

`Edit mode` => `Add` => `Applications`

![applications](./applications.png)

Expand Down
File renamed without changes

0 comments on commit 740866e

Please sign in to comment.