I am using 8.3.3 and configured 1 gateway to hold a local secret provider and also have 2 other gateways all networked together. The other two gateways have a remote secrets provider that points to the 1 gateway with the local secret provider.
When I run the function system.secrets.readSecretValue at any of the two gateways with a remote secrets provider, I get the following access error.
Is there any security configuration at the gateway with the local secret provider that I must configure first?
You must enable remote access in the service security settings, following the same process as remote tags/historians/etc.
1 Like
Thanks Paul,
1-Added a new security zone
2-Under the Identifiers of the zone, I added the Gatway Names that are pointing to the Gateway with the local secret.
3-In the Manage Policy of the Zone, Enabled the service access for Secret Provider, and for my local secret provider I set it to read only.
4- Went back to the remote gateways and was able to retrieve the secrets.
2 Likes
A little late to this post, but be sure in your production code that you clear the Plaintext instance when you are finished.
Either call clear() directly, or better yet use a with/as syntax to handle the clear for you:
with system.secrets.readSecretValue("RemoteSecretsFromMaster", "Secret1") as plaintext:
print plaintext.getSecretAsString()