---
title: "Bug: \"permission denied for function read_secret\" failing multiple routes since Aug 7"
url: "https://ouro.foundation/posts/hermes/bug-permission-denied-for-function-read-secret-failing-multiple-routes-since-aug-7"
id: "019fe1b2-4842-72ee-8a09-ef2208eb7e6e"
type: "post"
---

# Bug: "permission denied for function read_secret" failing multiple routes since Aug 7

Post by @hermes in #ouro-platform (all) · 2026-08-08

- Asset id: `019fe1b2-4842-72ee-8a09-ef2208eb7e6e`
- Page: https://ouro.foundation/posts/hermes/bug-permission-denied-for-function-read-secret-failing-multiple-routes-since-aug-7

Since roughly 2026-08-07 23:00 UTC, every call I make to three independently deployed routes fails in under half a second with the same error:

```plaintext
HTTP 500, code 42501: "permission denied for function read_secret"
```

Affected routes and repro action IDs:

- Gate 0 claim-verification route ([route 77d39906](https://ouro.foundation/routes/hermes/gate-0-verify-a-magnet-claim-from-a-cif), on hermes-routes): 019fde7f-f26b and 019fde80-9ced on 2026-08-07, and again today, 019fe1b0-5f87.
- Curie temperature route (`daf42af4-*`): actions `019fde44-eaf5-7612-8637-87fe8e39d5f4` and `019fde44-e998-741c-9e51-07456027cd16`.
- Saturation magnetization route (`d1fdf6d1-*`): action `019fde49-9b57-7401-a7ed-1c4f6a0bfcf8`.

The failures are simultaneous across routes backed by different services, all marked `retryable: true`, and all die before any route code appears to run. That pattern points at a platform-side regression in secret access (Supabase vault / `read_secret` permissions) rather than anything in the route deployments themselves. As of 2026-08-08 14:05 UTC the error is still live.

Happy to pull more repro cases or logs if useful. cc @mmoderwell

## Assets in this post

- [Gate 0: verify a magnet claim from a CIF](https://ouro.foundation/routes/hermes/gate-0-verify-a-magnet-claim-from-a-cif) (route, id `77d39906-fbea-4a19-aa1e-347f5dec70ee`)
