Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

RDB backend

Environment variables

  • TC_METAHUB — MetaHub service host (default: localhost:8033)
  • POSTGRES_USER / POSTGRES_PASSWORD / POSTGRES_DB / POSTGRES_HOST / POSTGRES_PORT
  • KC_SERVER_URL / KC_REALM / KC_CLIENT_ID — Keycloak connection

Role-based access control

All authorization is driven by Keycloak roles. The backend reads roles from both Realm roles and Client roles under resource_access.{KC_CLIENT_ID}, merging them into a single set.

Built-in action roles

Role Effect
nodes:create Create new nodes
nodes:read_all See all nodes regardless of visibility
nodes:edit_any Edit any node (bypasses creator check)
nodes:review Change node status (draft / pending_review / published / archived)

Owner fallback: a node's creator can always edit and see their own nodes, even without the roles above.

Visibility roles

Each node has a visibility field (default: "public"). To control who can see non-public nodes, create roles following the pattern:

nodes:visibility:{name}

Examples:

Role Effect
nodes:visibility:internal See nodes with visibility: "internal"
nodes:visibility:proj_a See nodes with visibility: "proj_a"
nodes:visibility:proj_b See nodes with visibility: "proj_b"

Visibility rules for read endpoints (list, search, get single node):

  1. nodes:read_all → sees everything
  2. visibility == "public" → everyone sees
  3. nodes:visibility:{x} in user's roles → sees nodes with visibility: "{x}"
  4. Creator of the node → always sees their own

Unauthenticated users can only see public nodes.

Setting up in Keycloak

Example: a project setup with proj_a and proj_b:

Realm roles (Realm → Roles):

  • nodes:create
  • nodes:visibility:proj_a
  • nodes:visibility:proj_b

Client roles (Clients → your-app → Roles):

  • admin — associate: nodes:read_all, nodes:create, nodes:edit_any, nodes:review
  • member_proj_a — associate: nodes:create, nodes:visibility:proj_a

Assign member_proj_a to users who should create nodes and see proj_a resources.

Downstream customization

If you run your own instance with a different Keycloak client, just create the same role names. The backend does not have a hardcoded role list — any role matching the pattern nodes:* or nodes:visibility:* is honored.

Metadata

Release files for miz-tc 0.0.2.dev3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for miz-tc 0.0.2.dev3
File Size Uploaded Provenance Actions
miz_tc-0.0.2.dev3.tar.gz 12.0 kB With provenance Details for miz_tc-0.0.2.dev3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for miz-tc 0.0.2.dev3
File Interpreter ABI Platform Actions
miz_tc-0.0.2.dev3-py3-none-any.whl Python 3 none any Details for miz_tc-0.0.2.dev3-py3-none-any.whl

Total release size: 30.1 kB

Release files / miz_tc-0.0.2.dev3.tar.gz

Download URL miz_tc-0.0.2.dev3.tar.gz
Size 12.0 kB
Tags Source
SHA-256 checksum
How to use checksums
401fd4ba2c4426dead358dc6f751ea1ff8b087b099467b60e1824f99b1add904
BLAKE2b-256 checksum
How to use checksums
6acc1b08a708a6ec24b8404ff4cd0e51488366e3cc92e2075a7a37d38b001bb2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 7, 2026.

Transparency log

Release files / miz_tc-0.0.2.dev3-py3-none-any.whl

Download URL miz_tc-0.0.2.dev3-py3-none-any.whl
Size 18.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
915206606eb7f0e332fa0d0fd3d34f9eaf853d2aab8685c23af5fe9a9395d382
BLAKE2b-256 checksum
How to use checksums
2a59b4beb5d8239d93355c7d57b2a9ef3f165ce4765b8a09b141f88c49987201
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 7, 2026.

Transparency log

Security for miz-tc 0.0.2.dev3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for miz_tc-0.0.2.dev3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 7, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page