Hello. As far as I understand. Create 3 nomad namespaces - dev test and prod. Create variables access policy for each namespace - so jobs in namespace dev are allowed to access dev/* variables, test can access test/ and prod can access prod/. Then the acl of the job is controlled by the job namespace.
Thank you for the suggestion. I created namespaces “dev, test, prod“ now as well as ACLs for the three namespaces allowing access to the path “my_vars/*“.
The jobs are also placed in the corresponding namespaces but still cant access the my_vars path without explicit assignment of the ACL to the Job.
Seems like the ACLs are not automatically assigned just by using the namespace.
But what worked as a workaround for now is using the “nomad/jobs“ path in combination with Namespaces to have different global accessible key value pairs for each environment.
But downside is still that i can only use the “nomad/jobs“ path so all key value pairs have to be in one path to be globally accessible without ACL assignment. (Does not allow to simply group key value pairs)