frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: How do you enforce least-privilege when an API token has full access?

2•ricberw•1h ago
Curious how people handle least-privilege access when integrating third-party APIs that only offer a single coarse permission scope (or limited scopes that are still over-provisioned for a specific use case).

A lot of services expose APIs where the token basically grants everything the integration can do (read/write/delete across the entire account), making it hard to enforce the principle of least privilege internally when multiple internal services or agents are calling the same API.

In those cases, do you...

Put an API proxy/gateway in front of the third-party API to enforce granular permissions?

Use RBAC/ABAC rules in a proxy layer to filter which endpoints/actions can be called?

Just accept the coarse permissions and risk associated?

Something else?

Would love to hear real architectures people are using in production, especially when the upstream API itself doesn’t support fine-grained scopes.

Comments

FabienBSDN•1h ago
One pattern worth considering before reaching for a proxy layer: minimize what you actually send to the third-party API in the first place.

If your use case allows it, sending only a derivative of the sensitive data (a hash, a token, a summary) rather than the raw data itself removes an entire class of exposure. The third-party never holds something that can be leaked or misused, regardless of what their token scope allows.

For cases where you genuinely need to send raw data, the API proxy approach with RBAC/ABAC is the most practical solution I've seen work at scale. The proxy becomes your internal trust boundary — internal services get scoped credentials from the proxy, never the upstream full-access token directly.

The "just accept the coarse permissions" path is underrated for low- risk integrations though. The overhead of a proxy layer is real, and sometimes the honest answer is that the data isn't sensitive enough to justify it.

Bellingcat: The Osint Gatekeepers Who Can't Secure Their Own Site

https://ringmast4r.substack.com/p/the-osint-gatekeepers-who-cant-secure
1•mostcallmeyt•2m ago•0 comments

Daily pill may cure deadly sleep disorder that affects 84M people

https://www.dailymail.co.uk/health/article-15643615/pill-cure-sleep-apnea-CPAP-breathing.html
1•Bender•2m ago•0 comments

Ask HN: How do you find collaborators?

1•voidss•3m ago•1 comments

Iran war could create a potential Helium "bottleneck for the AI story"

https://finance.yahoo.com/news/iran-war-could-wreak-havoc-on-farmers-create-a-potential-bottlenec...
1•spenvo•3m ago•0 comments

Meta reportedly plans layoffs as AI costs increase

https://www.theguardian.com/technology/2026/mar/13/meta-layoffs-ai
2•saikatsg•4m ago•0 comments

Do you ship vibe coded apps with security issues?

https://usevibescore.com
1•terrythreatt•5m ago•1 comments

US told to brace for extreme weather in every single state

https://www.dailymail.co.uk/news/article-15645675/us-extreme-weather-forecast-weekend-heat-polar-...
1•Bender•5m ago•0 comments

Where Censored Words Find a Safe Haven: Inside Minecraft

https://www.nytimes.com/2026/03/11/arts/minecraft-uncensored-library-united-states.html
1•bookofjoe•8m ago•1 comments

The Washington Post Is Using Reader Data to Set Subscription Prices

https://washingtonian.com/2026/03/12/the-washington-post-is-using-reader-data-to-set-subscription...
1•kklisura•8m ago•0 comments

Postgres Is the Gateway Drug

https://viggy28.dev/article/postgres-gateway-drug/
3•vira28•9m ago•0 comments

Back End Aggregation Enables Gigawatt-Scale AI Clusters

https://engineering.fb.com/2026/02/09/data-center-engineering/building-prometheus-how-backend-agg...
1•y1n0•9m ago•0 comments

Library of Short Stories

https://www.libraryofshortstories.com/
1•debo_•10m ago•0 comments

Millennium Challenge: Iran Destroyed America in a War Game

https://nationalinterest.org/blog/reboot/millennium-challenge-iran-destroyed-america-war-game-197261
1•vrganj•10m ago•0 comments

AI Codemods for Secure-by-Default Android Apps

https://engineering.fb.com/2026/03/13/android/ai-codemods-secure-by-default-android-apps-meta-tec...
1•y1n0•10m ago•1 comments

Book: The Emerging Science of Machine Learning Benchmarks

https://mlbenchmarks.org/00-preface.html
1•jxmorris12•11m ago•0 comments

Pipechart – pipe any JSON into your terminal and get a chart, zero dependencies

https://github.com/davitotty/pipechart
1•Davitotty1•12m ago•0 comments

Show HN: An Open-Source Yoto Toy with Qwen3-TTS

https://github.com/akdeb/open-toys
2•akadeb•13m ago•1 comments

My fireside chat about agentic engineering at the Pragmatic Summit

https://simonwillison.net/2026/Mar/14/pragmatic-summit/
2•lumpa•17m ago•0 comments

My Wish for Software Engineering

https://arnoldkling.substack.com/p/my-wish-for-software-engineering
1•paulpauper•17m ago•0 comments

Claude Doubles Usage Limits During Off-Peak Hours (March 13–27, 2026)

https://support.claude.com/en/articles/14063676-claude-march-2026-usage-promotion
1•weldu•18m ago•0 comments

Glow: Render Markdown on the CLI, with Pizzazz

https://github.com/charmbracelet/glow
1•thunderbong•18m ago•0 comments

I rebuilt a daily habit because the default experience felt broken

https://apps.apple.com/us/app/brzzy-weather-local-forecasts/id6670187343
1•clambakenow•18m ago•0 comments

Trump administration to be paid $10B for brokering TikTok deal

https://www.theguardian.com/technology/2026/mar/14/tiktok-trump-administration-10bn
7•andsoitis•19m ago•1 comments

Show HN: Paperctl- An Arxiv CLI designed for agents

https://github.com/ChristianFJung/paperctl
1•christianjung•22m ago•0 comments

Activity-based CO2 sensing provides new insights into cellular metabolism

https://www.sciencedirect.com/science/article/pii/S2213231726000650
1•PaulHoule•23m ago•0 comments

VFA – Cryptographic Intent Handshake for Secure API Transactions

https://github.com/Csnyi/VFA-Spec
1•Csnyi•24m ago•1 comments

Cathars and Cathar Beliefs in the Languedoc

https://www.cathar.info
2•andsoitis•24m ago•0 comments

Show HN: Language Life – Learn a language by living a simulated life

https://www.languagelife.ai
3•bitforger•25m ago•0 comments

DOOM fully rendered in CSS

https://bsky.app/profile/html5test.com/post/3mgxr3pcjhk2k
1•ck2•25m ago•0 comments

The Anthropic Institute

https://www.anthropic.com/news/the-anthropic-institute
3•paulpauper•28m ago•0 comments