Skip to content

Commit

Permalink
feat: added trusted hosts necessary for istio ambient (#299)
Browse files Browse the repository at this point in the history
* fix: added trusted hosts necessary for istio ambient

* chore: addressed review comments

* docs

---------

Co-authored-by: Chance <139784371+UnicornChance@users.noreply.github.com>
Co-authored-by: Sebastian Łaskawiec <sebastian.laskawiec@defenseunicorns.com>
  • Loading branch information
3 people authored Feb 12, 2025
1 parent b950add commit 3093b41
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
13 changes: 12 additions & 1 deletion docs/reference/UDS Core/IdAM/upgrading-versions.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@ title: Upgrading Versions

This doc contains important information for upgrading uds-identity-config versions. It is not meant to be an exhaustive list of changes between versions, rather information and steps required to manually upgrade versions without a full redeploy of keycloak.

## v0.9.1 to v0.9.2

<details open>
<summary>Upgrade Details</summary>

* For running Istio with Ambient Mesh, it is required to add two new entries to the trusted hosts list: `*.pepr-uds-core-watcher.pepr-system.svc.cluster.local` and `*.keycloak.svc.cluster.local`. This is done automatically for new deployments but when upgrading it is required to perform these extra steps:
- Click `Clients` > `Client registration` > `Client details`
- Add `*.pepr-uds-core-watcher.pepr-system.svc.cluster.local` and `*.keycloak.svc.cluster.local` to the `Trusted Hosts` list
- Click `Save`
</details>

## v0.5.1 to v0.5.2

<details open>
Expand All @@ -19,7 +30,7 @@ This doc contains important information for upgrading uds-identity-config versio
- Click `Save`
* An additional scope (`bare-groups`) was included in the uds [realm.json](https://github.com/defenseunicorns/uds-identity-config/blob/v0.5.2/src/realm.json#L1608-L1636). To add this scope manually do the following (in the `Unicorn Delivery Service` realm):
- Click on `Client Scopes` > `Create client scope`.
- Name the scope `bare-groups`, and configure it to be to be
- Name the scope `bare-groups`, and configure it to be
- Type: `Optional`
- Include in token scope: `On`
- Click `Save`
Expand Down
4 changes: 3 additions & 1 deletion src/realm.json
Original file line number Diff line number Diff line change
Expand Up @@ -1925,7 +1925,9 @@
"trusted-hosts": [
"127.0.0.6",
"*.${UDS_DOMAIN}",
"*.${UDS_ADMIN_DOMAIN}"
"*.${UDS_ADMIN_DOMAIN}",
"*.pepr-uds-core-watcher.pepr-system.svc.cluster.local",
"*.keycloak.svc.cluster.local"
],
"client-uris-must-match": [
"true"
Expand Down
4 changes: 3 additions & 1 deletion src/test/cypress/realm.json
Original file line number Diff line number Diff line change
Expand Up @@ -1699,7 +1699,9 @@
"trusted-hosts": [
"127.0.0.6",
"*.${UDS_DOMAIN}",
"*.admin.${UDS_DOMAIN}"
"*.${UDS_ADMIN_DOMAIN}",
"*.pepr-uds-core-watcher.pepr-system.svc.cluster.local",
"*.keycloak.svc.cluster.local"
],
"client-uris-must-match": [
"true"
Expand Down

0 comments on commit 3093b41

Please sign in to comment.