Skip to main content

Protected contexts

Contexts allow to define a different behavior / value for your flags. It can be usefull to handle environments. To learn more about contexts, read the context guide.

It is sometimes usefull to "protect" contexts to avoid accidental modifications, for instance to avoir updating a flag activation in production by mistake.

For such cases, Izanami allows to "protect" a context.

Audit log for features are available from Izanmi 2.9.0

Rights on protected contexts

Operation on protected contexts are restricted to users with admin rights on either project or tenant, depending if context is local or global.

Protected contexts and associated overloads remain visible to any user with read right on project / tenant.

Global contexts

Below array details right change regarding global protected contexts.

User with admin rights on tenantUser with write rights on tenantUser without write right on tenant
Read overloads of protected or unprotected context
Create / delete / update overloads on unprotected contexts
Delete unprotected context
Protect / unprotect context
Create / delete / update overloads on protected contexts
Delete protected context

Local contexts

Below array details right change regarding project local protected contexts.

User with admin rights on projectUser with write rights on projectUser without write right on project
Read overloads of protected or unprotected context
Create / delete / update overloads on unprotected contexts
Delete unprotected context
Protect / unprotect context
Create / delete / update overloads on protected contexts
Delete protected context

Protecting a context

To protect a context, you'll have to go to context page, either global context page (for global contexts) or project context page (for local contexts).

Then click on the "3 dots" icons and choose "protect context" option.

Once you've confirmed, context is protected.

⚠️⚠️⚠️ When protecting a context all subcontexts automatically get protected as well. ⚠️⚠️⚠️

Unprotecting a context

As for protecting context, you'll have to go to context page (project context page for local context, tenant context page for global context).

Then click on the "3 dots" icons and choose "unprotect context" option.

Once you've confirmed, context is unprotected.

⚠️⚠️⚠️ Unlike context protection, unprotecting context DOES NOT unprotect subcontexts. ⚠️⚠️⚠️