ARTIFACTORY: How can I modify the value of the "X-Artifactory-Node-Id" header?

ARTIFACTORY: How can I modify the value of the "X-Artifactory-Node-Id" header?

AuthorFullName__c
Fadi Rouhana
articleNumber
000005779
ft:sourceType
Salesforce
FirstPublishedDate
2023-06-12T14:50:42Z
lastModifiedDate
2023-06-12T14:50:42Z
VersionNumber
1

When inspecting an Artifactory response, you may notice the "X-Artifactory-Node-Id" header. This header's value is derived from the unique identifier of the Artifactory instance node. Under specific circumstances, you may consider overriding its value to align with certain use cases.

To change the "X-Artifactory-Node-Id" header in Artifactory, please follow these steps:
 

1. Navigate to the system.yaml file located under "$JFROG_HOME/artifactory/var/etc". Please note that "$JFROG_HOME" refers to the installation directory of Artifactory.
 
2. Look for the "shared.node.id” parameter under the “shared” section in the file.
 
3. Change the value of  “shared.node.id” to the desired new value (you may need to add “shared.node.id” if it doesn't exist).

For example:
shared:
  node:
    id: "NEW_VALUE"

4. Save the changes to the system.yaml file.
 
5. Restart Artifactory to apply the new configuration.


After restarting Artifactory, the "X-Artifactory-Node-Id" header should contain the newly set value.

It is crucial to maintain proper indentation when editing the system.yaml file, since YAML files are sensitive to indentation. To avoid any potential issues, it is strongly recommended to create a backup of the file before making any modifications.