We have a web application that makes use of a custom Compute Context with a dedicated system account (SYSUSERID). Similar to a Stored Process context in SAS 9.
The problem is that end users are able to select that context in other Viya applications, such as SAS Studio, and hence run their own code using that SYSUSERID.
For a batch job, you would simply restrict which users can access the context. But in this case, we need the end users to be able to access the context, albeit only for Jobs within a particular Viya Folder.
Is there any way to restrict access to a Compute Context to specific Jobs? As opposed to specific users/groups?
Alternatively, is there any setting (analogous to the INIT setting of SAS 9 STPs) that will run whenever the compute session is launched? As perhaps custom logic can be added there (in this fashion). Note that the autoexec is not helpful here, as the runtime variables are injected after the autoexec executes.
/Allan
MacroCore library for app developers
Data Workflows, Data Contracts, Data Lineage, Drag & drop excel EUCs to SAS 9 & Viya - Data Controller
DevOps and AppDev on SAS 9 / Viya / Base SAS - SASjs