Repository navigation
osy 0.19.13
This is a security release. It closes ways a signed-in person could run parts of an app they were never meant to reach, including one
way to get another account's sign-in ticket. Every app on Osyrin Cloud has already been moved to 0.19.13. If you run the platform
yourself, upgrade now. To upgrade, run osy upgrade, then osy update in a project.
⚠ Read first
- ⚠ A request can now run only the functions your app's pages call. Before this release, anyone signed in to an app could run any of
its top-level functions by naming it, with arguments of their choosing. Now a page's request may run only a function your pages call
(an action, a component member, its render, or a helper those run, also one the browser runs itself), a function marked
[AllowAnonymous], or a sign-in method ([AuthMethod]). Anything else is refused with "is not exposed to a request". REST endpoints,
MCP tools, offered actions andosy runare not affected by this rule: each runs the function it declares. Your app is rebuilt on this
release when it moves, and that rebuild records which functions your pages call. If a client of yours other than your pages named a
function directly, give it a REST endpoint or an MCP tool. - ⚠ A function that returns a sign-in ticket or a signed token can no longer be called by a request. This covers a function that
returnsSecurity.IssueJwt(…), or a token signed withCrypto.SignRs256orCrypto.SignEs256(for example a GitHub App's JWT), either
directly or in a field of what it returns. It is refused on every request path, including REST endpoints and MCP tools, unless it is an
[AuthMethod]. Sign people in through an[AuthMethod], and call such a helper from your own server code.
Security
- Osysharp.UserAccounts 1.5.0. Only the sign-in flow can sign an account in.
AdmitandContinueSignInnow refuse every caller
except the sign-in flow (an[AuthMethod], or code insiderunas (AuthBootstrap)). Before, a signed-in account could get another
account's ticket through them. Your own sign-in steps that end inContinueSignInfrom an[AuthMethod]work as before. Apps still on
1.4.0 are protected by the two rules above once they run on 0.19.13. Move to 1.5.0 when you next deploy (osy update).
Admin
- Admin 22.3.1 carries the Osysharp.UserAccounts fix above.