Disallow Screwdriver from submitting to the sandbox tenant
@@ -105,7 +105,10 @@ public class AthenzRoleFilter extends JsonSecurityRequestFilterBase {
.forEach(accessibleTenant -> roleMemberships.add(Role.athenzTenantAdmin(accessibleTenant.name())));
}));
- if (identity.getDomain().equals(SCREWDRIVER_DOMAIN) && application.isPresent() && tenant.isPresent())
+ if ( identity.getDomain().equals(SCREWDRIVER_DOMAIN)
+ && application.isPresent()
+ && tenant.isPresent()
+ && ! tenant.get().name().value().equals("sandbox"))
futures.add(executor.submit(() -> {
if ( tenant.get().type() == Tenant.Type.athenz
&& hasDeployerAccess(identity, ((AthenzTenant) tenant.get()).domain(), application.get()))
