The Simplest Way to Make Linstor and Port Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

You can link linstor and port to manage block storage from one developer portal. Port displays storage state and triggers actions, while Linstor manages disk volumes across nodes. This setup lets developers request storage volumes without direct host access. Platform teams keep control over disk pools, node placement, and capacity limits. Developers get fast self-service workflows, and admins keep strict rules in place. How linstor and port share data and permissions Linstor runs a central c

Your coding agents run with your access.

Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.

You can link linstor and port to manage block storage from one developer portal. Port displays storage state and triggers actions, while Linstor manages disk volumes across nodes.

This setup lets developers request storage volumes without direct host access. Platform teams keep control over disk pools, node placement, and capacity limits. Developers get fast self-service workflows, and admins keep strict rules in place.

How linstor and port share data and permissions

Linstor runs a central controller that tracks storage pools and volume replicas across nodes. Port acts as an internal catalog that shows this storage data to engineering teams. A sync job reads volume state from the Linstor controller API on a schedule. That job then writes the volume state into Port as catalog items.

When a developer needs a new volume, they fill out a form in Port. Port sends an event to a backend runner or webhook worker. That worker talks to the Linstor controller API to create or resize the disk. Once Linstor finishes the task, the worker sends the new status back to Port.

Identity checks must happen at every step of this workflow. The user logs in to Port using their company identity provider. Port checks if that user has the right role to run the storage action. Then the backend worker uses a dedicated service key to call the Linstor controller. Mutual TLS certificates or signed API keys secure the traffic to the controller.

Common failure modes and how to scope roles

Many teams make the mistake of using one shared admin key for all workers. If an attacker steals that broad key, they can delete every storage volume. Another common failure happens when teams skip user context in backend logs. When Port triggers an action, Linstor only sees the worker service account name. Admins cannot tell which human user asked to delete or resize a volume.

Unchecked network paths also create big risks for storage clusters. The Linstor controller port should never sit open on public or wide office networks. If any workstation can reach the controller API, one leaked token causes total data loss.

End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

You can fix these risks by splitting read and write roles. Give the catalog sync worker a read-only identity that only lists nodes and volumes. Give the action worker a separate identity that can only create volumes in approved pools. Never let portal workers delete storage pools or change cluster node settings.

Network rules should also lock down the path between the portal runner and storage nodes. Place the action worker inside the same private network segment as the Linstor controller. Require every action payload from Port to include the human user email and ticket ID. Store those user details in an audit log before the worker runs any storage command.

Keeping storage workflows fast and safe

Good portal workflows hide storage complexity from app developers. Developers should only pick a volume size, an app name, and a tier label. The backend worker translates those simple choices into specific Linstor resource groups. This pattern prevents bad settings and keeps cluster layouts clean across all environments.

Regular checks keep the catalog data in Port accurate and fresh. If someone changes a volume outside the portal, the next sync fixes the catalog record. Teams can then trust the portal view during outages or capacity planning.

Govern statements and responses across databases and APIs

Good config and scoped roles are needed setup. They do not check single queries in flight or mask sensitive fields in returned rows. Across Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, and internal HTTP endpoints, hoop.dev runs beside each supported service as an open-source proxy, a sidecar for your database or API.

First, hoop.dev guardrails block banned queries before they run. Then hoop.dev data masking rewrites matched sensitive values in responses in memory. The audit trail records every statement and verdict per resource. Furthermore, hoop.dev holds SOC 2 Type II and is open source on GitHub.

Frequently asked questions

How does Port get real-time storage updates from Linstor?

A lightweight sync worker polls the Linstor controller API or listens for cluster events. It maps storage pools, resource groups, and volumes into Port catalog entities.

Should Port talk directly to the Linstor controller API?

No, Port should trigger a private runner or webhook worker inside your network. That worker validates the request and calls the Linstor API over a private path.

How do we stop users from requesting huge storage volumes?

Set strict input limits on the self-service form inside Port. Also check the requested size inside your backend worker before calling Linstor.

The query runs. The emails stay hidden.