Skip to content

v0.3.15

Choose a tag to compare

@github-actions github-actions released this 02 Dec 01:13
· 91 commits to main since this release
8c6bd17

Vectrune 0.3.15 — API Studio, REST & GraphQL auth, and Model Studio

REST & GraphQL authentication, RBAC, and rate limiting

Try Rune API Studio · REST & GraphQL auth guide

  • Configure 7 native @Authentication schemes: jwt (HS256/RS256/JWKS with optional built-in token_endpoint), oauth2 (RFC 7662 introspection, JWKS, or static tokens), api_key (header or query), basic (including sha256: password hashes), bearer, hmac (HMAC-SHA256 webhook signature verification), and cookie (HMAC-signed session cookies).
  • Set @App default_auth for app-wide protection, override per route with auth = none or multi-scheme auth = [SchemeA, SchemeB], and enforce roles and scopes (403 Forbidden) with auth.* (auth.sub, auth.scheme, auth.roles, auth.scopes, auth.claims) injected into every handler.
  • Apply app-wide or per-route rate_limit (ip, auth, global, or header:... buckets emitting X-RateLimit-* and Retry-After headers), declarative @App cors, native @Route/PATCH routes, and automatic OpenAPI 3.0 components.securitySchemes generation.
  • @App with type = GraphQL shares the same @Authentication, default_auth, cors, rate_limit, JWT token_endpoint, and auth.* context injection, plus per-resolver roles and scopes on @GraphQL/Query and @GraphQL/Mutation.

Rune API Studio and browser emulator parity

  • Build, test, import, and export REST and GraphQL APIs visually in Rune API Studio (examples/rune-web/api_studio/api_studio.rune, hosted at /api-studio/), written 100% in pure .rune.
  • Switch between REST and GraphQL modes, edit endpoints or resolvers, manage auth schemes and @Schema models, inspect live .rune, OpenAPI 3.0, GraphQL SDL, and @Test output, and save projects in browser storage.
  • Run live requests in Try It (REST with editable {param} path parameters, and GraphQL Console with live argument inputs, variables JSON, and 1-click 401/200/403/429 demos) powered directly by @vectrune/rune-emulator via rune.emulate(...) and rune.emulate_reset().

Pixel-3D Model Studio and language upgrades

Try Pixel-3D Model Studio

  • Design voxel and primitive 3D models visually in Pixel-3D Model Studio with an interactive 3D orbit viewport, @Model import/export, per-part render_order, and declarative multi-clip @Animation timelines.
  • Expanded Rune-Web and shared expression capabilities with rune.parse, rune.format, history undo/redo checkpoints, clipboard.copy, download, fullscreen.toggle, json.try_parse, regex_replace, and wider embedded tool layouts on the teaching site.

Compatibility

@Route/PATCH is now a supported REST method (updating vectrune check method diagnostics accordingly). Browser emulation in Rune API Studio models auth, RBAC, @Memory, and rate limiting locally with example credentials; verify real identity providers, external databases, and production secrets with the native vectrune runtime. Declarative TLS/mTLS transport remains a design proposal (docs/proposals/tls-and-mtls.md).

What's Changed

Full Changelog: v0.3.14...v0.3.15