Change the Service Secret
Just like a password for a user account, you may want to change the service secret on a regular basis to maintain security. You should also change the service secret if a service that is connected to Hub has been compromised.
In Hub, you can generate a new service secret, or set the service secret manually. If the service secret is saved on the client side, you must also change the service secret in the connected service.
Prerequisites
You must have access to the relevant properties file in the connected service. If you do not change the service secret in the connected service, the service will not be able to connect to Hub.
To change the service secret
- In the external Hub service, select Services from the Server Settings section of the Administration menu.
- Select the service from the list.
- On the Settings tab, click the Change button next to the Secret setting.
- In the Change Service Secret dialog, you can either:
- Set the service secret property to the new service secret in the connected service.
If the service secret is saved on the client side, you need to set the service secret property to match the new service secret in Hub.
To change the service secret in TeamCity:
- In the TeamCity home directory, open the
<service_home>/conf/hub-config.properties
file. - Paste or write the new service secret into the
hub.service.secret
property. Remove any empty spaces at the end of the row. - Save and close the properties file.
- Restart the service.
To change the service secret in Upsource:
- In the Upsource home directory, open the
<service_home>/conf/internal/hub.properties
file. The<service_home>
directory is the location where the ZIP distribution was unpacked during installation. - Paste or write the new service secret into the
upsource-frontend.service.secret
property. Remove any empty spaces at the end of the row. - Save and close the properties file.
- Restart the service.
To change the service secret in YouTrack:
- In the YouTrack home directory, open the
<service_home>/conf/internal/hub.properties
file. - Paste or write the new service secret into the
youtrack.service.secret
property. Remove any empty spaces at the end of the row. - Save and close the properties file.
- Restart the service.