How do I regenerate an NSP system token?

Purpose

Perform this procedure to regenerate an NSP system token on either a standalone NSP deployment or a DR deployment.

Steps
Standalone NSP
 

On the deployer node, set deleteOnUndeploy: false in the nsp-config.yml

cd <NSP DEP build path>/<NSP CN build path>/config/

Edit the nsp-config.yml file

platform:

  kubernetes:

    storage:

      deleteOnUndeploy: false


From the deployer node, uninstall NSP:

cd <NSP DEP build path>/bin

./nspdeployerctl uninstall --undeploy --clean


Regenerate the system token:

./nspdeployerctl secret -s system-token -n nsp-psa-restricted -r system-token=32 update


Re-install NSP with the regenerated system token:

./nspdeployerctl install --config --deploy

End of steps

DR NSP
 

On both active and standby deployer nodes, set deleteOnUndeploy: false in the nsp-config.yml

cd <NSP DEP build path>/<NSP CN build path>/NSP-CN-25.11.0-rel.406/config/

Edit the nsp-config.yml file:

platform:

  kubernetes:

    storage:

      deleteOnUndeploy: false


On the Standby site deployer node, uninstall NSP:

cd <NSP DEP build path>/bin

./nspdeployerctl uninstall --undeploy --clean


Then from the Active site deployer node, uninstall NSP:

cd <NSP DEP build path>/bin

./nspdeployerctl uninstall --undeploy --clean


Regenerate the system token on the active site:

./nspdeployerctl secret -s system-token -n nsp-psa-restricted -r system-token=32 update


Re-Install NSP on the active site with the regenerated token:

./nspdeployerctl install --config --deploy


Fetch the regenerated system token from the active site deployer node:

cd <NSP DEP build path>/bin

./nspdeployerctl secret -s system-token -n nsp-psa-restricted -s system-token -o /<Token_Save_Path>/regen-systoken.aes fetch


Copy the fetched token file (regen-systoken.aes) from the active site to the standby site.


Install the regenerated system token secret on the standby site. Then re-install NSP on the standby site with the regenerated token. On the standby deployer node:

cd <NSP DEP build path>/bin

./nspdeployerctl secret -n nsp-psa-restricted -s system-token -f /<Token_Save_Path>/regen-systoken.aes update

./nspdeployerctl install --config --deploy

End of steps