Urgent.News

What's breaking now, across thousands of outlets.

Tech

Scoped Supabase tokens: limit what your app’s agent can change

A personal access token can give a coding agent, CI job, or MCP server access to Supabase projects. The risk is easy to miss: a classic token follows the account’s access, including access to organizations and projects added later. Supabase’s scoped personal access tokens offer a narrower option. You choose the organizations or projects and permissions when creating the token, then use it where…

Supabase has introduced scoped personal access tokens, providing developers with a way to limit what their app's agent can change. These tokens are created in the Supabase dashboard, allowing developers to select specific organizations, projects, and permissions. Unlike classic tokens, scoped tokens cannot grant more access than the user originally had.

When creating a scoped token, it's crucial to understand the operations the automation job will perform. Mapping these operations to the required permissions helps ensure that the token has only the necessary access. Each operation, such as linking a local repository to a project, reading project settings, changing database objects, or managing another platform resource, must be carefully considered.

Permissions cannot be edited after creation, so it's essential to choose the appropriate token form based on the workflow. Classic tokens carry the permissions of the account that created them, including current and future access. In contrast, scoped tokens are constrained to the resources and permissions selected at creation.

When setting an expiry for a scoped token, it's recommended to use a preset or a custom date up to one year. If a user loses access to a project, the scoped token will lose that access too. When storing the token, ensure it's not written in source code, terminal transcripts, issue comments, or logs. Instead, restrict access using a CI secret manager or the appropriate local secret store.

To avoid breaking existing builds, replace one consumer of the current token at a time with the scoped token. Thoroughly test both the expected access and expected denial outside the selected scope. Keep a rollback plan in place to revert to the original token if necessary. Finally, record which job owns each token, who can rotate it, and when it expires.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

I built MeshLive: video calling and live broadcasting over Bluetooth mesh, without internet (Open source)

A few weeks ago, during the student protests in Delhi, I saw how mobile internet was shut down and how the government even tried to get Bitchat's GitHub repositories taken down, although they remained…

  • MeshLive enables video calling and live broadcasting over Bluetooth mesh without internet
  • Features include live camera, multi-hop relaying, two-way voice and video calls
  • App operates without accounts, backend servers, mobile data, or Wi-Fi requirements

Why Traccar's WebSocket needs a proxy, and how to set one up with nginx

You have Traccar running, the REST API answers, and now you want a custom web map that moves vehicles live. You open a WebSocket to /api/socket , and it fails.

  • Traccar's WebSocket needs a proxy due to authentication and CORS issues.
  • WebSocket only accepts session cookie for authentication, not possible in browser.
  • Nginx proxy solves issues by forwarding API requests and serving frontend files.

How to Monetize Data as a Solo Dev: The Three Product Shapes That Actually Sell

Solo developers ask me how to monetize data. They picture a dataset on a marketplace, a price tag, passive income. That picture is why most data products fail: they sell the pile, and nobody buys…

  • Solo developers often misunderstand data monetization by selling entire datasets.
  • Three successful product shapes: monitoring as a service, subscription revenue, and one-off answers.
  • Position product based on value, not data collection cost; incorporate recurring element.

More from Saturday 10 October →