Declarations and library¶
Declarations¶
A declaration is one piece of desired state: identifier, type (for example
com.limdm.firewall) and a JSON payload. Each declaration carries a server_token that
changes with its content. The agent stores the declarations it received and only downloads
them again when the combined token changes. Every type and field is described in
Library reference.
Payloads are validated strictly twice: by the server when an item is saved and by the agent before it applies anything (unknown fields, option injection in package and unit names, path traversal, shell and config metacharacters).
Library¶
The Library holds reusable items, each one validated payload of one type, for example "CIS Level 1 baseline", "Proxy Berlin" or "Developers may restart nginx". The item editor describes every type, shows an example payload and a field reference generated from the payload types, checks the JSON while you type (Format indents it) and links the type's section in Library reference.
The server signs every item when it is saved. An item whose signature does not verify is marked Signature invalid in the library and is not delivered to devices until it is opened and saved again.
Shared items of the Default tenant¶
With multi tenancy on, global administrators can mark library items and
blueprints of the tenant Default as shared (Tenants, Shared objects). Every
tenant reads them and uses them in its own blueprints, but cannot change or delete them.
The default blueprint is shared. Without multi tenancy everything belongs to Default and
this has no visible effect.