Demo content from demo/admin-guide (684ae12)
This commit is contained in:
parent
3fd7bd87cb
commit
db127cbf82
3 changed files with 126 additions and 0 deletions
2
.order
2
.order
|
|
@ -3,6 +3,8 @@ entra-id
|
|||
forgejo-identity-provider
|
||||
github-sign-in
|
||||
spaces-and-git-providers
|
||||
classifications
|
||||
releases
|
||||
configuration-reference
|
||||
production-setup
|
||||
backup-and-restore
|
||||
|
|
|
|||
63
classifications/index.md
Normal file
63
classifications/index.md
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
---
|
||||
id: classifications
|
||||
title: Classifications
|
||||
description: Mark pages as public, internal, confidential or strictly confidential, and limit what AI agents can read.
|
||||
tags: [admin, security]
|
||||
lang: en
|
||||
---
|
||||
|
||||
# Classifications
|
||||
|
||||
A page can carry one of four classes:
|
||||
|
||||
| Class | What it changes |
|
||||
|---|---|
|
||||
| Public | Chip on the page |
|
||||
| Internal | Chip on the page |
|
||||
| Confidential | Chip; search shows the hit without a text snippet |
|
||||
| Strictly confidential | Chip and a "do not distribute" banner; search never shows it; it is not listed as a related page of other pages |
|
||||
|
||||
A class **does not grant or deny access**. Who can read a page is still
|
||||
decided by the repository of its space (see [[spaces-and-git-providers]]). A
|
||||
class tells readers how to handle the content and keeps it out of places where
|
||||
it would travel further: search snippets, related-page lists, AI agents.
|
||||
|
||||
## Turn classes on for a space
|
||||
|
||||
Add a `classification:` block to the space's `_meta/schema.yaml`:
|
||||
|
||||
```yaml
|
||||
classification:
|
||||
default: internal # class of pages that set none
|
||||
max: confidential # strictest class allowed in this space
|
||||
```
|
||||
|
||||
Both keys are optional (`default: internal`, `max: strictly-confidential`);
|
||||
an empty block turns classes on with these values. Without the block the space
|
||||
behaves exactly as before.
|
||||
|
||||
`max` is the important one. Give a space everyone in the company can read
|
||||
`max: internal`, and a confidential page can never be saved or released there:
|
||||
the editor offers nothing above the maximum and the API refuses it. Pages that
|
||||
already exceed the maximum show a warning until someone lowers their class.
|
||||
|
||||
## Set the class of a page
|
||||
|
||||
In the editor, the select next to *Archive* sets the class. "Space default"
|
||||
leaves the field out of the file, so a later change of `default` applies to
|
||||
the page too. The value lives in the page's frontmatter:
|
||||
|
||||
```yaml
|
||||
classification: confidential
|
||||
```
|
||||
|
||||
## AI agents
|
||||
|
||||
Every API token has an upper limit, chosen when it is created (*Settings →
|
||||
Connections → API tokens*). The default is **Internal**. Above its limit a
|
||||
token sees only the title and class of a page; the content, the source and
|
||||
every write action are refused. An agent then tells its user that the token is
|
||||
too narrow, and the person decides.
|
||||
|
||||
Browser sessions have no limit: a person who can read the repository can read
|
||||
every page in it.
|
||||
61
releases/index.md
Normal file
61
releases/index.md
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
---
|
||||
id: releases
|
||||
title: Releases
|
||||
description: Freeze a released version of a page as a permanent, read-only copy next to it in Git.
|
||||
tags: [admin, versioning]
|
||||
lang: en
|
||||
---
|
||||
|
||||
# Releases
|
||||
|
||||
In a space with versioning, every approval gives the page a new version
|
||||
number, and earlier versions can be compared with today. A **release** goes
|
||||
one step further: the version is **frozen** as a copy that stays readable as a
|
||||
whole page, even after the page has been edited many times, the Git history
|
||||
was rewritten or the database was lost.
|
||||
|
||||
## Freeze a release
|
||||
|
||||
In the review, tick **Freeze as release** before approving. Agents can do the
|
||||
same with the `archive` parameter of `release_page`, but only when asked to.
|
||||
Releases need versioning in the space (`versioning: true` in
|
||||
`_meta/schema.yaml`), because the version number names the copy.
|
||||
|
||||
## Where the copy lives
|
||||
|
||||
```
|
||||
<page folder>/
|
||||
index.md ← the living page
|
||||
_media/
|
||||
_releases/
|
||||
1.2.0/
|
||||
page.md ← the frozen version
|
||||
_media/ ← copies of the attachments it references
|
||||
```
|
||||
|
||||
The copy is written in the same commit as the new version number, so there is
|
||||
never a version without its copy. Only attachments the page actually
|
||||
references are copied; a frozen diagram stays as it was when the version was
|
||||
released.
|
||||
|
||||
## Read a release
|
||||
|
||||
- The page header links to the newest release.
|
||||
- **All versions** marks frozen versions as *Release* with a link to open them.
|
||||
- A release opens read-only, with a banner naming the version and a link back
|
||||
to the current version.
|
||||
- The page shows the release's own [[classifications]] chip, the one the page
|
||||
had when it was frozen.
|
||||
- The info rail beside it shows the tags, relations and metadata of the frozen
|
||||
copy, not of the current page. Automatic fields (author, date) resolve to the
|
||||
author and date of the release. There is no mini graph.
|
||||
|
||||
## Can a release be changed?
|
||||
|
||||
Not through f451: no route writes into `_releases/`. Someone with write
|
||||
access to the repository can still change the files directly in Git. f451
|
||||
notices this at the next reindex and shows *This version was changed in the
|
||||
repository after it was frozen* on the release.
|
||||
|
||||
Deleting a page deletes its releases with it. To keep the releases of a page
|
||||
that is no longer current, archive the page instead of deleting it.
|
||||
Loading…
Add table
Add a link
Reference in a new issue