Title: pluginDir read-modify-write TOCTOU (otp, capability, shortlink, activitypub) · Issue #4 · JavaScriptSolidServer/plugins · GitHub
Open Graph Title: pluginDir read-modify-write TOCTOU (otp, capability, shortlink, activitypub) · Issue #4 · JavaScriptSolidServer/plugins
X Title: pluginDir read-modify-write TOCTOU (otp, capability, shortlink, activitypub) · Issue #4 · JavaScriptSolidServer/plugins
Description: The pluginDir JSON writes are now atomic (temp + rename, commit ca52373). But two concurrent request handlers can still interleave read → modify → write and lose one update: e.g. two capability revocations, two OTP mints, two shortlink c...
Open Graph Description: The pluginDir JSON writes are now atomic (temp + rename, commit ca52373). But two concurrent request handlers can still interleave read → modify → write and lose one update: e.g. two capability rev...
X Description: The pluginDir JSON writes are now atomic (temp + rename, commit ca52373). But two concurrent request handlers can still interleave read → modify → write and lose one update: e.g. two capability rev...
Opengraph URL: https://github.com/JavaScriptSolidServer/plugins/issues/4
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"pluginDir read-modify-write TOCTOU (otp, capability, shortlink, activitypub)","articleBody":"The pluginDir JSON *writes* are now atomic (temp + rename, commit ca52373). But two concurrent request handlers can still interleave read → modify → write and lose one update: e.g. two capability revocations, two OTP mints, two shortlink claims, or two AP inbox pushes racing.\n\nDistinct from the atomicity fix (which prevents *torn files*) and from core [#600](https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/600) (the host's own conditional-write non-atomicity).\n\n**Fix direction:** a per-key (or per-file) async lock / serialized write queue around the read-modify-write. Low impact at scratch scale; accepted-risk in [SECURITY.md](../blob/gh-pages/SECURITY.md).","author":{"url":"https://github.com/melvincarvalho","@type":"Person","name":"melvincarvalho"},"datePublished":"2026-07-11T08:48:03Z","url":"https://github.com/JavaScriptSolidServer/plugins/issues/4"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:dff5fa4e-133b-6df2-d514-b9e159407e2a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ACD4:1F40:3937FA:486B19:6B0393BA |
| html-safe-nonce | 0a3c3adc73eae8181451fbf56a135bff5272113fc45dc9bcef2baaa6c485e004 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQ0Q0OjFGNDA6MzkzN0ZBOjQ4NkIxOTo2QjAzOTNCQSIsInZpc2l0b3JfaWQiOiIyNDkwNDU0MDM2OTY5NjU3Mjc0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 250f13f87a21a1fce93b16763f376bd480a239b16fc7e55722b070b8af5b2412 |
| hovercard-subject-tag | issue:4861455781 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/JavaScriptSolidServer/plugins/4/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8cf9427d9aaa2a1a6a714f201da2e852086af2857616dfb49023fdbc9b02cd1e/JavaScriptSolidServer/plugins/issues/4 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8cf9427d9aaa2a1a6a714f201da2e852086af2857616dfb49023fdbc9b02cd1e/JavaScriptSolidServer/plugins/issues/4 |
| og:image:alt | The pluginDir JSON writes are now atomic (temp + rename, commit ca52373). But two concurrent request handlers can still interleave read → modify → write and lose one update: e.g. two capability rev... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | melvincarvalho |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/JavaScriptSolidServer/plugins git https://github.com/JavaScriptSolidServer/plugins.git |
| octolytics-dimension-user_id | 205442424 |
| octolytics-dimension-user_login | JavaScriptSolidServer |
| octolytics-dimension-repository_id | 1297159948 |
| octolytics-dimension-repository_nwo | JavaScriptSolidServer/plugins |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1297159948 |
| octolytics-dimension-repository_network_root_nwo | JavaScriptSolidServer/plugins |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width