- Go 61.7%
- TypeScript 21.2%
- HTML 5.7%
- Shell 5.5%
- JavaScript 2.9%
- Other 3%
| console | ||
| console-ui | ||
| docs | ||
| openfsc-operator | ||
| scripts | ||
| .dockerignore | ||
| .gitignore | ||
| chart.go | ||
| config.go | ||
| console.go | ||
| console_test.go | ||
| definition.yaml | ||
| definition_test.go | ||
| Dockerfile | ||
| go.mod | ||
| go.sum | ||
| installer.go | ||
| installer_test.go | ||
| Justfile | ||
| LICENSE | ||
| logo-dark.svg | ||
| logo.svg | ||
| main.go | ||
| mise.toml | ||
| plugin.go | ||
| README.md | ||
OpenFSC plugin (RINIS)
This is our repo for the Fieldlab of November 2026: the rinis-openfsc
Fundament plugin and its
openfsc-operator, in one Go module (rinis-oss/open-fsc).
Checkout paths
The docs and scripts use two variables for where the repos are checked out. Set them if yours differ from the defaults:
export PLUGIN_HOME=$HOME/plugin # this repo
export FUNDAMENT_HOME=$HOME/fundament # the fundament repo
Docs
- Deploy OpenFSC to the local plugin sandbox: run this repo's plugin in a local fundament sandbox, either with hot reload (
functl plugin dev, route A) or published, approved and installed assystem(just publish, route B). - Plugin sandbox on a slow machine: fix for a sandbox that crash-loops at start.
- Proposed improvements: issues found during the Fieldlab and suggested fixes.
Scripts
- scripts/sandbox-up.sh: start Docker (Colima), the main cluster, the plugin sandbox and the wiring between them (
just cluster-start,just plugins cluster-start,just plugin-sandbox-kubeconfig,just plugins sandbox-catalog). Safe to rerun.--freshalso wipes all earlier OpenFSC work in the sandbox and the catalog (bothsystem--rinis-openfscand thefunctl plugin devinstallationacme-corp--rinis-openfsc), so you can publish and install 1.0.0 again (asks first). Add--remove-imagesto delete the rinis-openfsc images too, and--reset-platformto reset fundament to its test data (removes your own users, organizations, projects and API keys; slow). - scripts/sandbox-down.sh: stop the sandbox and the main cluster gracefully, without deleting them.
--colimaalso stops Docker. Both refuse whilefunctl plugin dev(skaffold dev) runs: stop it with Ctrl-C first. - scripts/console-preview/: stand-in Console host for
just console-preview/just console-dev.
Layout
| Path | What it is |
|---|---|
definition.yaml |
The plugin manifest: metadata, RBAC, console menu and components |
plugin.go |
The plugin itself |
main.go |
Hands the plugin to the SDK runtime |
Justfile |
Build, test, lint and image recipes |
mise.toml |
Pinned tool versions (Go, just, skaffold, kubectl) |
LICENSE |
AGPL-3.0 |
console.go |
Embeds the console UI assets |
console/ |
Console UI pages (Vite build output of console-ui/) |
console-ui/ |
Console UI source (Vite, vanilla TS) |
openfsc-operator/ |
The openfsc-operator: FSCInstallation CRD, controller, Helm chart |
Develop
Tool versions are pinned in mise.toml. With mise
installed, mise install gets Go, just, skaffold and
kubectl at the versions this project expects. Recipes live in the
Justfile; run just --list to see them all.
The plugin and the operator share one Go module (rinis-oss/open-fsc). The
plugin embeds the operator's Helm chart (openfsc-operator/chart, see
chart.go) and installs it at runtime; the operator image is built separately.
go mod tidy # needs network access, or a warm module cache
just build # plugin binary
just operator-build # operator binary
just test # Go tests for plugin and operator
just console-build # console-ui/ → console/
just console-test
Image builds need the docker buildx plugin (with Homebrew and Colima:
brew install docker-buildx):
just docker # plugin image, linux/amd64, also on an Apple Silicon Mac
PLATFORM=linux/arm64 just docker # for an arm64 cluster
just operator-docker # openfsc-operator image
Sandbox
just operator-push builds the operator image and pushes it to the sandbox
registry (localhost:5112); set the printed ref as OPERATOR_IMAGE in the
PluginInstallation's spec.config before the first install, together with
POSTGRES_STORAGE_CLASS: local-path (the console's create page otherwise uses
the Fieldlab clusters' ceph-incluster).
just test-sandbox checks that the installation reaches Running and that a
sample FSCInstallation becomes Active; just test-sandbox-cleanup removes it.
just console-preview / just console-dev need a fundament checkout at
$FUNDAMENT_HOME (default ~/fundament) for the shared /plugin-ui bundle.
Hot reload
functl plugin dev runs the plugin in the Fundament plugin sandbox and rebuilds
it when you save Go or console/ source, go.mod or go.sum. Changes to
definition.yaml need a restart of functl plugin dev. Prerequisites: the sandbox cluster, docker,
skaffold, kubectl, and a functl auth login session. Set up the sandbox as described in
https://github.com/fundament-oss/fundament/blob/master/docs/developer/plugins/testing-plugins-locally.md.
functl plugin dev # deletes the dev installation on Ctrl-C
functl plugin dev --no-cleanup # keeps it after exit
functl plugin dev-down # removes a leftover dev installation
Config values for spec.config (the keys in definition.yaml's configSchema)
come from --set KEY=VALUE (repeatable) or a --config YAML file; --set wins.
functl checks them against the schema before building, including required keys.
functl plugin dev --set MY_KEY=value # MY_KEY declared in configSchema
functl plugin dev --config dev-config.yaml # MY_KEY: value
Fill in
definition.yaml:spec.permissions.rbacdecides what the plugin may do in the cluster. It is materialised verbatim as a ClusterRole, so grant only what the plugin uses.spec.menu,spec.customComponents,spec.allowedResourcesand the files underconsole/are one contract.definition_test.gochecks that the files referenced actually exist; nothing checks the rest, so change them together.- Every
TODOmarker in this project.
metadata.license says AGPL-3.0, and LICENSE holds its text. Keep the two
in step if the licence ever changes.
Publish
Publishing to the Fieldlab marketplace follows
https://fieldlab2026.projects.digilab.network/aan-de-slag#plugin. Images go to the
Forgejo registry of the openfsc organisation, tagged with metadata.version:
REG=code.digitaledienst.overheid.nl/openfsc
just docker v1.0.0 && just operator-docker v1.0.0
docker tag rinis-openfsc-plugin:v1.0.0 $REG/rinis-openfsc-plugin:v1.0.0
docker tag rinis-openfsc-operator:v1.0.0 $REG/rinis-openfsc-operator:v1.0.0
docker push $REG/rinis-openfsc-operator:v1.0.0
docker push $REG/rinis-openfsc-plugin:v1.0.0
docker buildx imagetools inspect $REG/rinis-openfsc-plugin:v1.0.0 # Digest: sha256:...
FUNCTL_URL=https://fundament-poc.nl functl plugin publish definition.yaml --create --submit \
--image=$REG/rinis-openfsc-plugin@sha256:<digest>
docker login code.digitaledienst.overheid.nl needs a Forgejo access token with
package: read and write. The plugin installs the operator image named in
config.go (OPERATOR_IMAGE default), whose tag must equal metadata.version;
definition_test.go checks this. Each version publishes once: bump
metadata.version and the operator tag together for a new release.
Fundament docs
https://github.com/fundament-oss/fundament/tree/master/docs/developer/plugins