We would like to limit down specific resource credentials by the environment. Below is a resource credential we set up. Notice the environment is set to "Production."
I have a plan where I'm pulling this Resource Credential and handing it to a global script to set the specific values I'm looking for. For a rough example:
set $myUsername = $GetCredentialProperty(UsernamePassword::ExampleDBProduction, UserName);
set $myPassword = $GetCredentialProperty(UsernamePassword::ExampleDBProduction, Password);
PSCall GLOBAL::Secure-Test
(
username: $myUsername,
password: $myPassword,
);
I have set "Agents.EnforceServerRestrictions" to be on.
I have also limited the user (or group) as a restriction on the task/permissions.
But I'm able to pull the Resource Credential that was limited to "Production" to "Test" with my user that is also restricted from "Production".
Is this a bug or do I have something wrong in the setup.
Product: BuildMaster
Version: 5.8.2