.env and kc.yaml files:
- Open a terminal and connect to your instance of Package Security Manager.
-
Enter to your installer directory by running the following command:
-
Make a copy of the current
.envfile for reference and/or recovery purposes: -
Using your preferred file editor, open the
.envfile. -
Update the
DOMAINvariable to your new domain.Example .env file

- Save your changes and close the file.
-
Enter your keycloak directory by running the following command:
-
Using your preferred file editor, open the
kc.yamlfile. -
Locate the
clientId: repo-servicesection of the file and add the following line:Example kc.yaml file
If you have existing clients (tools) configured to use Package Security Manager instances using the old DNS name, you will need to update those clients as well. -
Restart your container and apply your changes by running the following commands:
- Open a browser and log in to the Keycloak administrative console.
- Verify you are on the dev realm.
- Select Clients from the left-hand navigation.
-
Select the repo-service client.

- Update the Root URL to your new domain.
- Prepend the Valid redirect URIs path with your new domain.
-
Click Save.

- If you are using SSL, update your certificates to refer to your new domain.
- You can now log in to Package Security Manager normally.

