The Simplest Way to Make Port and VS Code Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

You pair Port and VS Code to bring service catalog data into your local editor. This setup lets developers view service owners, check deploy status, and trigger self-service actions. Teams often struggle to keep their catalog and code editor in sync. Developers switch tabs to find service details, check cloud status, or run a build job. When you link these tools well, coders get the facts they need right inside their workspace. They read catalog states and start permitted tasks without leaving

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 pair Port and VS Code to bring service catalog data into your local editor. This setup lets developers view service owners, check deploy status, and trigger self-service actions.

Teams often struggle to keep their catalog and code editor in sync. Developers switch tabs to find service details, check cloud status, or run a build job. When you link these tools well, coders get the facts they need right inside their workspace. They read catalog states and start permitted tasks without leaving their main screen.

How port and vs code share identity and catalog data

Data moves between Port and VS Code through standard web calls over HTTPS. The editor sends requests to the catalog API to fetch blueprints, entities, and scorecards. The catalog checks who sent the request and returns the matching JSON payload. Developers can also trigger backend jobs from the editor by sending action inputs to the portal.

Identity flows start when a developer logs in from their local machine. The editor uses a personal API key or an OAuth flow to prove who the user is. The developer portal maps that user token to team roles and blueprint rules. If a role allows read rights on a service, the editor shows that data. If a user asks to trigger a deploy action, the portal checks the role first. Then the portal forwards the request to a webhook, runner, or Git workflow.

Common failure modes with local tokens and shared keys

Many teams take shortcuts when they set up local editor tools. A common mistake is sharing one admin client secret across an entire engineering group. Developers paste this master key into local workspace files or plain text settings. When one laptop gets lost or a repo leaks, the attacker gains full catalog write rights. Also, shared keys ruin audit logs because every change looks like it came from one bot.

Broad permissions cause a second major risk in daily work. If an editor token has admin rights, a rough script can delete core blueprints by mistake. Unlogged API calls from local laptops also make it hard to track who ran a production task. Security teams lose sight of which user triggered a cloud change or read sensitive service metadata.

Infrastructure as Code Security Scanning + End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

To fix this, give each developer their own user identity tied to your single sign-on tool. Scope editor roles to read-only access for most catalog views and scorecards. Require explicit role checks on the backend before any self-service action runs against live systems. Store local tokens in the operating system keychain instead of plain files inside a project folder. Rotate user tokens on a strict schedule and revoke them right away when someone leaves the team.

Scoping network paths and backend actions

Your developer portal acts as a central hub for system state, not a direct network tunnel. When a developer triggers an action in the editor, the portal sends an event out. A runner or pipeline inside your private network picks up that job and runs it. This model keeps private database ports and internal servers off the public internet.

Even with runners, teams must guard the data that flows back into the editor. Action logs and entity records can hold private details like emails, phone numbers, or card numbers. If a runner writes raw customer records into a catalog property, every developer can read it. Set up strict data rules so backend jobs strip or mask sensitive fields before updating the catalog. Keep your catalog clean by storing only service metadata, health scores, and links to secure logs.

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 should developers log in to the catalog from their editor?

Developers should log in with personal tokens tied to your single sign-on system. Store these tokens in the local system keychain and never commit them to source control.

Can a developer trigger production changes from the editor?

Yes, a developer can start self-service actions if their catalog role allows it. You should require human approval steps for any action that touches production apps or data.

How do we stop sensitive data from showing up in the catalog view?

Do not push raw user records into catalog entities. Mask fields like emails, phone numbers, or national IDs in your pipelines before sending updates to the catalog API.

The query runs. The emails stay hidden.