Skip to content

Looking After the Library

The central team, curators and administrators keep the organization library. Only they see New Item on the library’s list, and Edit Item and Publish Version on an item’s page. The application checks it on every request: hiding the buttons is only a convenience.

  1. On the Organization Library page, choose New Item. The dialog goes step by step: Kind, Name and Key, Element, Where and When (not for a threat), Description, then Review.
  2. Kind: choose the tile: Service, Appliance, Zone, Control, Threat or Dependency.
  3. Name and Key: the Name; the Key: lower-case letters and digits, in words joined by hyphens, at most 60 characters, such as std-waf. A model’s library fields name the item by its key. A key is never reused, not even after the item is deprecated. And Owner (Optional): the team that keeps the item.
  4. Element, Where and When and Description: the content of its first version. See below.
  5. Review: check the item. Change beside a part goes back to its step.
  6. Choose Add the Item.

The item is made with its first version, marked First Version, and its page opens.

New Item and Publish Version ask for the same content, in three steps: Element, Where and When (zone, triggers and dependency kind; a threat has none of them, so it has no such step) and Description (with a control’s responsibility and a stencil’s enterprise controls). What is offered follows the kind.

Field What It Holds Kinds
Element The element as the engine writes it, as a JSON object, without its name, id or place: those are given where it is used Every kind
Zone Where it usually sits, such as dmz. A model may place it elsewhere Service, appliance, dependency
Parent Zone The zone it usually sits inside Zone
Triggers When a model should show it, one a line Every kind but a threat
Dependency Kind Such as Identity, DNS, Logging or Backup Dependency
Description What it is and when to use it, for the people who choose it Every kind

The triggers the engine knows are:

any
internet-entry
data-store
auth-flow
crosses-into-zone:<zone>
node-type:<type>
cloud:<provider>

A control has Responsibility for the Control:

  • Responsibility: Common, Hybrid or System-Specific, or left unsaid.
  • Enterprise Owner: the team that operates it for everyone. Needed for a common or hybrid control.
  • What the System Provides: needed for a hybrid control.

A service or appliance stencil has Enterprise Controls: tick the library’s approved controls that come with it. Each is added with the stencil to a model, implemented on it.

  1. On the item’s page, choose Publish Version. The content starts from the latest version. The dialog goes step by step: Element, Where and When (not for a threat), Description, Release, then Review.
  2. Change the content in its steps.
  3. Release:
    • Weight: choose the tile Required or Optional. A required update is shown on every model that uses the item until it is applied. It cannot be dismissed, and the owners of those models are told. An optional update is shown until the model’s owner applies or dismisses it.
    • Due Date (Optional), for a required update: the date it is due by. Models still without it then show it as Overdue. It cannot be in the past.
    • Release Notes: what changed, and what the owners of the models should check. They are shown with the update on each model.
  4. Review: check the version. Change beside a part goes back to its step.
  5. Choose Publish the Version.

A published version is never changed. To correct one, publish the next. Publishing changes no model: each is offered the update, and a person applies it. See Library updates.

If another keeper published a version after you opened the item, nothing is published: the dialog says “Someone else published version {number} after you opened this item.” and keeps what you typed. Look at their version on the page behind the dialog, then choose Publish the Version again if yours is still needed; it goes after theirs.

Edit Item changes what is not versioned, step by step: Name and Owner, Status, then Review. Every step can be chosen at the top, as each holds what is saved.

  • Name and Owner: the Name and the Owner.
  • Status: choose the tile Approved or Deprecated. A deprecated item is no longer offered in Add From Library. The models that use it keep it, and its page says “This item is deprecated.” Replaced By (Optional), for a deprecated item: the approved item of the same kind to use instead, or Nothing Replaces It. The deprecated item’s page links to it.

On Review, choose Save the Item. The content changes only by publishing a version.

If someone else changed the item while you had the dialog open, it says what they changed and keeps yours. See When someone else saved first.

The item’s page lists, under Where It Is Used, the models that use it:

Column What It Shows
Model The model, which opens on its Library tab
Element The element and its tab
Pinned Version The version the element holds; Behind when it is older than the latest
Altered Altered when the team changed it
Stencil Kind Standard, One-Off or Deviation for a stencil

Only the models you can see are listed. A use in a restricted model you are not let in to is left out, with no count; the Uses column of the list counts the same way. See Who can see a model.

Versions, beside it, lists every version, newest first, with who published it and when, its weight, due date and release notes, its content, and its element as JSON.

Every change to the library is recorded in the activity log:

  • Library item created: the item’s kind, key and name.
  • Library item changed: what changed of its name, owner, status or replacement.
  • Library version published: the version’s number, weight and due date.

What happens to items in models is recorded about each model: see Add items from the library, Library updates and One-offs and deviations.

The engine’s Find Gaps compares a model with your organization’s environment: the services, appliances, zones, controls and dependencies a model of that kind should show. The API gives the library in the shape the engine reads, at GET /api/library/environment:

Terminal window
curl -s -H "authorization: Bearer <accessToken>" \
https://forge.example.com/api/library/environment
{
"items": [
{
"id": "std-waf",
"kind": "appliance",
"name": "Standard WAF",
"zone": "dmz",
"applies_when": ["internet-entry"]
}
]
}

It holds the approved items whose latest version has at least one trigger. A threat is not part of the environment, and neither is an item with no trigger. Each item’s id is its library key, so a model whose elements name that key in their library fields counts as having it. Everyone in the organization can read it.

Keep an Organization Environment Item As a Stencil

Section titled “Keep an Organization Environment Item As a Stencil”

An item of your organization’s environment, as the engine’s Organization Environment describes it, can be kept in the library as a stencil, through POST /api/library/from-environment. It then has a version, an owner and updates like any other item. Only the central team, curators and administrators can do it. On the screens it is Keep as a Library Stencil, on the Organization Environment page, which gives the stencil a key made from the item’s name.

Send the item in the environment’s shape, with appliesWhen and dependencyKind in camel case:

{
"id": "std-waf",
"kind": "appliance",
"name": "Standard WAF",
"zone": "dmz",
"appliesWhen": ["internet-entry"],
"owner": "Network Security"
}

Its id becomes the key, written the way a key is, unless you give key. A threat is refused, as it is not an environment item. An item already kept answers with the library item it became, so sending it twice makes one item. See Using the API for signing in and calling it.