Configurable auto-generated ref_id templates per object type — for multi-team deployments
#4179
rajeshkhanikar
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Context
I'm setting up a CISO Assistant Community Edition deployment for an asset-owner organisation with ~40 renewable-energy plants (wind, solar, BESS, electrolyser). The deployment is used concurrently by:
That's easily 30+ users concurrently creating Findings, AppliedControls, Incidents, Assets, RiskScenarios, Solutions, Contracts, Threats across multiple projects.
The problem with free-text
ref_idref_idis currently a free-text input on every governance object (Finding, AppliedControl, Incident, Asset, Solution, Contract, Threat, RiskScenario, Perimeter…). No format enforcement, no auto-generation, no per-tenant template.That works in a single-curator lab. At organisational scale, different users adopt incompatible ad-hoc conventions:
ref_idF001Finding-2026-001Amigo_Wind_F12026.01.001Three months later, when the lender audit asks "show me all open Findings", the list is unfilterable, unsortable by ID, and visibly inconsistent. The CISO loses time arguing with auditors about ID hygiene instead of demonstrating cyber posture.
Why this matters beyond cosmetics
ref_idis not just a display string — it appears in:/findings,/applied-controls,/incidents,/risk-scenarios)Inconsistent IDs make the artefact look unprofessional in the very forums where it's supposed to demonstrate governance maturity.
Precedent — EBIOS RM operational scenarios already auto-generate IDs
Issue #3338 confirms that EBIOS RM operational scenarios do auto-generate IDs (
AP.01,AP.02, …). The pattern exists in the codebase — it just hasn't been:AP.01IDs)This discussion is essentially: take the EBIOS auto-id pattern, make it general, make it configurable, make it robust.
Proposed functionality
A per-tenant
ref_idtemplate configuration, settable via the existing/api/settings/general/namespace (or a new/api/settings/ref-id-templates/namespace if cleaner) — one template per object type. Variables expanded at item-creation time:{YYYY}{MM}{NNN}{NN}{project_code}ref_id(when the object is scoped to a Perimeter){folder_name}{user}Example tenant configuration
Example result, three users creating items concurrently
ref_idFND-2026-001FND-2026-002AC-017FND-2026-003WP0029-AST-008SOL-013The user creating the item can still override the auto-generated
ref_idif needed (e.g. carrying over an ID from a legacy system). This preserves current free-text behaviour as a fallback.Behaviour around imports / migration
ref_id, that one is used. If absent, the template generates one. Backwards-compatible.AP.01issue reported in EBIOS RM : impossibilité de changer l'ID d'un scénario opérationnel #3338.ref_ids. The template only applies to new creations.ref_idshows in the form, editable before save.Discussion points
{project_code}in the prefix (our case); others want a single org-wide sequence. The template syntax above supports both — the variable is only expanded if present.{NNN}? Year-bound sequences (INC-{YYYY}-{NNN}) reset to001on 1 January. Non-year-bound (AC-{NNN}) keep counting forever. The presence of{YYYY}in the template signals the reset behaviour implicitly. Alternative: explicit{NNN_year_reset}and{NNN_global}variables.Why this is feature-request territory (not workaround territory)
The workarounds available today are all unsatisfying:
Putting it natively in the tool, with the EBIOS RM auto-id pattern already proving the concept works, feels like the right shape.
Happy to help with implementation if it lands on the roadmap. Would be glad to test against the 30+ user / 40-plant deployment described above.
Beta Was this translation helpful? Give feedback.
All reactions