Asset Management

Customisable asset layouts and structured infrastructure tracking.

Weavestream's asset system lets you build structured records for any kind of infrastructure. You define the fields, and every tenant's assets conform to that schema.

Asset Layout Editor
Asset Layout Editor

Asset Layouts

An Asset Layout is a global template — think of it as a form definition. Each layout has a name, an optional icon, and a list of fields. Layouts are managed by SUPER_ADMIN users and shared across all tenants.

Examples of layouts you might create:

  • Server — hostname, IP address, operating system, CPU, RAM, warranty expiry
  • Workstation — assigned user, serial number, purchase date, warranty date
  • Software License — product name, vendor, seat count, license key, renewal date
  • Network Device — make, model, firmware version, management IP, location
  • SSL Certificate — domain, issuer, expiry date, notes

Layout management

  • Rename layouts in place without affecting existing assets
  • Archive layouts to hide them from the creation picker while preserving historical records
  • Drag-and-drop field reordering within the layout builder
  • Sidebar sections with custom positioning for grouping related fields

Field Types

Each layout can contain any combination of the following field types:

Type Description Notes
TEXT Single-line plain text —
TEXTAREA Multi-line plain text —
RICH_TEXT Tiptap rich-text editor Tables, images, code blocks
NUMBER Numeric value —
DATE Calendar date Supports expiry tracking
DATETIME Date and time Supports expiry tracking
EMAIL Email address Renders as mailto: link
PHONE Phone number —
URL Hyperlink —
BOOLEAN Yes / No toggle —
DROPDOWN Single-select from predefined options Optional free-text "Other…" escape hatch
MULTISELECT Multiple selections from predefined options Drag-and-drop option reordering
IP_ADDRESS IPv4 or IPv6 address, optional CIDR Groundwork for IPAM
FILE Document or image upload —
ASSET_REFERENCE Cross-link to another asset Creates a Relation record

Field Options

Each field supports additional configuration:

Option Description
Primary field Highlighted in list and table views
Show in table Controls column visibility in asset list tables
Visible to clients Whether the field appears in the client portal
Expiry tracking DATE and DATETIME fields — enables countdown and colour-coded status
Unique per company Enforces uniqueness of the field value within a tenant

Asset Records

Each Asset is a single instance of a layout within a tenant. Assets support:

  • Soft-archive — remove from active lists while preserving the full historical record
  • Permanent deletion — requires the asset to be archived first; this is enforced server-side for both single and bulk purge, and purging additionally requires step-up re-authentication. Bulk purge skips still-active assets and reports them so you can archive and retry
  • External ID tracking — for synchronising with external systems
  • Embedded passwords — link credentials directly to an asset; they archive when the asset is archived
  • Cross-references — ASSET_REFERENCE fields create navigable links between assets
  • Version history — every real change is kept as a version (see below)

Version History

Every asset keeps an append-only history. Creating an asset records version 1; each later edit that actually changes the name or a field value appends a new version holding the full state of the asset after that change. Saving without changing anything, archiving and restoring do not create versions.

The Version history panel on the asset page is collapsed and loads nothing until you open it. It then lists versions newest first (20 at a time, Load older versions for more), each with who made the change (integration syncs show System), when, the reason and the names of the changed fields. Show changes in version N loads that version's values: changed fields are highlighted with the value they had before (was: ...), and Show N unchanged fields reveals the rest. The newest version opens by itself.

Users who can edit the asset can restore:

  • Restore this puts one field (or the name) back to its value in that version. Everything else keeps its current value.
  • Restore version N puts the name and every field back to that version.

Restoring is forward-only: it appends a new version (reason restore ... from vN) and keeps the current one in history, and it goes through the normal edit path, so validation, unique-value checks, search and the audit log behave as for any edit. A restore never changes the integration link (externalId / externalSource), and it is refused on archived assets. If the asset already matches that version, nothing is written.

Assets that existed before version history was introduced get their previous state recorded as a baseline version the first time they are edited. Edits made before then are not reconstructed (the audit log is the only record of them, and is subject to retention).

Client users can read history only for fields they can see on the asset; fields hidden from clients are removed from the response, including from the list of changed fields. Client users also never see who made a change, and the only reason text they get is restore from vN. Stored restore reasons never contain field names (restore from vN, or restore from vN (field restore)); the panel builds the details from the changed fields when it displays them.

Two things to know before changing history-relevant settings:

  • Making a field visible to clients exposes its history. Visibility is applied when history is read, not when it is written. If you switch a field to Visible to clients, client users can then read every earlier value that field held, including values entered while it was hidden. Redact the field's history first (below) if those older values must stay private. The layout editor asks for confirmation before it shows a saved field to clients.
  • Restoring can overwrite integration-owned values. A restore is an ordinary edit, so it will write a field even if an integration syncs it. The next sync normally sets it back to the source value (unless the field is set to preserve manual edits), and that sync appears in history as a System version.

History is bounded: at most 500 versions are kept per asset (oldest dropped first, never the first or the latest), and an operator can prune by age with the prune-asset-versions CLI command. To erase a value from history, see Redacting history below and Data Retention.

Redacting history

Users with the asset purge permission can erase captured values from history: all versions of one field, or every value of one version. A version name that is a copy of the erased value (a name taken from the primary field) is erased with it, and erasing a whole version also erases its name and integration link. The version rows and numbers stay, marked redacted in the panel. A redacted value can never be restored: a whole-version restore keeps the current value of each redacted field, and a fully redacted version cannot be restored at all. A file, tag or linked asset that was deleted after that version cannot be restored either; the restore is refused and names the field. This needs a fresh step-up confirmation and a signed-in session (not an API key), and is audited without values. It does not change the live value, the audit log, or earlier backups.

API (all under /companies/:companyId/assets/:id):

Method and path Permission Notes
GET /versions?limit=&cursor= asset.read Lightweight summaries, newest first (limit 1-100, default 20; cursor = last version of the previous page; response has nextCursor). Per version: number, changed fields, author, reason, date, redacted flag. No values.
GET /versions/:version asset.read One version with its captured values (fields the caller can read) and the previous version's state for comparison.
POST /versions/:version/restore asset.write Optional body { "fields": ["name", "<field id>", ...] }; omit for the whole version. Audited as asset.version.restored with field names only, in the same transaction as the new version, and only when something changed.
POST /versions/redact asset.purge, step-up, human session Body { "fieldId"?, "version"? } (at least one). Rate limited. Audited as asset.version.redacted with ids and a count.

Copying and Moving Assets

Copy an asset into another company (or duplicate it in the same one) from the asset's ⋯ → Copy to company… menu, or select several in the asset table and use Copy to…. Tick Move to archive the originals after copying: they are archived, not deleted, so they can be restored.

Asset layouts are global, so a copy keeps its layout and every field value you can see, handled as follows:

What In the copy
Files (fields and the attachments panel) Copied into the target company's storage as new files; a deleted file is skipped. A file whose stored content is missing is not copied: the copy is reported as incomplete, and a move keeps the original. A missing thumbnail does not block the copy
Linked assets Dropped when the company changes; they point at the source company's records. Same-company copies keep links whose target still exists and omit dead ones. A required link field blocks a cross-company copy
Tags Copied. Old tag values the asset page does not show (from before tags became global) are left out
Linked passwords Not copied; they stay with the original
Hidden fields you cannot see Not copied
Integration identity (external id) Not copied; the copy is a hand-managed asset

Move is refused, with the reason, when it would lose or undo something: the asset is kept in sync by an integration (the next sync would restore the original), it has linked passwords (they would be archived with it), or some of its fields are hidden from you. Copy it instead in those cases.

Copying needs read access to the source company and write access to the target; moving also needs archive access to the source. Read-only users can select several assets in the table to copy them; archive, restore and delete stay hidden. If a bulk run fails part-way, the assets already copied are removed from the selection, so a retry copies only the rest. A field marked unique per company that is already taken in the target makes that copy fail with a clear message; the other copies in a bulk run still go through. Each copy is audited (asset.clone, plus upload.copy per file).

Expiration Tracking

DATE and DATETIME fields with expiry tracking enabled appear in the global Expirations dashboard (/admin/expirations). Cells are colour-coded:

  • Green — within a healthy window
  • Amber — approaching expiry
  • Red — expired

This lets you surface warranty expirations, license renewals, and certificate deadlines across all tenants at a glance.

Dismissing items

Every row on Expiring soon (global and per company) has a Dismiss button, with an optional note such as "client cancelled, letting it lapse". A dismissed item:

  • disappears from Expiring soon, stops sending expiry alert emails, and stops counting on the dashboard's domain alerts (unless the domain is also listed there for a low score);
  • applies to that due date only. If the date changes, for example a renewal that later lapses again, the item shows up again;
  • changes nothing about the asset, domain or password itself.

Use Show dismissed to see dismissed items with their note, and Restore to bring one back. Dismissing needs the same permission as managing the item (domain.manage, asset.write, or password.write plus access to that password), and every dismiss and restore is in the audit log.

Asset lists search names and indexed field values, including text, choice labels, numbers, stored dates and date-times, file names, and tag names. Boolean values, asset-reference targets, and Vaultwarden links are not indexed. Client users search only fields visible to clients.

Type a term and press Enter to add a search pill, then add more terms to narrow the list. Every term must match; words within a term may match different fields. Matching is case-insensitive and uses literal substrings, so % and _ are ordinary characters. Remove a pill with its ×, use Backspace in an empty search box to remove the last term, or choose Clear all to reset the filters. A search supports at most 10 distinct terms, each with at most 8 words and 200 characters.

The company Assets page also accepts field.<slug>=<value> URL filters. Text values are trimmed and matched case-insensitively; dropdowns accept a choice label or slug. Numbers and booleans match by value. Without a layout filter, a field slug matches across all layouts that use it. Invalid fields, values, or search limits show a Filter not applied banner and keep the filter pills available for removal.

The same indexed text supports full-text search via the command palette and the search API. Results are scoped to the requesting user's accessible tenants.

CSV Export

On a company's layout list in the admin interface, open Export and choose:

Choice Contents
Visible columns (CSV) Name, layout fields marked Show in table (except the primary field already represented by Name), Updated, and Archived at when archived records are included
All fields (CSV) Name, every readable non-primary layout field, ID, Created, Updated, and Archived at

Export requires asset read access; read-only staff can use it. The client portal has no Export control. Both choices omit archived fields and Vaultwarden links. Files export as names, references as asset names where available, tags and choices as labels, and rich text as plain text. Timestamps use ISO format.

The CSV follows the list's committed search terms, archive toggle, and tag filter. It exports up to 5,000 rows in the list's default order, applying the tag filter after that cap, just as the page does. Local column sorting does not change the CSV order. When the base list exceeds the cap, a warning asks you to narrow the search. Cells that could be interpreted as spreadsheet formulas are escaped, and every download is audited as asset.export.

The API endpoint is GET /api/v1/companies/:companyId/assets/export, with required layout=<uuid>, optional repeated q, includeArchived=true, tag=<uuid>, and columns=table|all (default table). It allows 10 requests per minute and returns X-Export-Truncated: true when capped.