153 Commits

Author SHA1 Message Date
google-labs-jules[bot]
9da28a6416 feat(spire-ffi): implement native Argon2id derivation
- Added `argon2` v0.5 dependency to `spire_ffi/Cargo.toml`
- Implemented `argon2id_derive` FFI function in `spire_ffi/src/lib.rs` with C-ABI.
- Added Deno FFI binding `deriveArgon2idKey` in `server/spire_ffi.ts` with `nonblocking: true` to prevent stalling the event loop.
- Pre-allocates output buffer on the Deno side as the standard FFI pattern.
- Included fallback mock behavior when `libspire_ffi.so` is not loaded, returning a 32-byte 0xaa filled array.
- Updated unit tests in `server/spire_ffi.test.ts` to test mock usage and successful generation.

Co-authored-by: mrteye <1945243+mrteye@users.noreply.github.com>
2026-08-24 04:19:48 +00:00
google-labs-jules[bot]
3d66535889 feat: implement zero-dependency real-time event bus in AuthSdk
Added a lightweight, zero-dependency event bus to the `AuthSdk` to listen for Valkey RESP3 push invalidation events and emit them to registered listeners.
The implementation properly captures errors from synchronous and asynchronous listeners, ensuring they do not crash the primary SDK listener loop. Extracted the Valkey event processor to improve hermetic testability.

Co-authored-by: mrteye <1945243+mrteye@users.noreply.github.com>
2026-08-24 04:19:40 +00:00
a938b8c305 docs(tasks): add Task Critique & Plan Review Template to tasks/META_PROMPT.md 2026-08-23 20:59:48 -07:00
11786de7e4
Merge pull request #6 from mrteye/feat-spire-ffi-native-argon2-task-4427490188496264791
feat(spire-ffi): task plan for native Argon2id derivation
2026-08-23 20:57:41 -07:00
4b72d491bf
Merge pull request #4 from mrteye/feat-sdk-realtime-invalidation-bus-task-2670591133327528715
docs(tasks): draft realtime invalidation bus task for SDK
2026-08-23 20:57:34 -07:00
a3e157608e
Merge pull request #5 from mrteye/feat-ingress-grant-injection-task-592912514149159076
docs: draft task file for Ingress Grant Injection
2026-08-23 20:57:28 -07:00
google-labs-jules[bot]
2b3b6f9636 feat(spire-ffi): create planning task for native Argon2id FFI
- Generated Kanban markdown file adhering to tasks/GUIDELINES.md.
- Documented requirements for SIMD, Deno FFI non-blocking bindings, and `hash-wasm` alternatives.
- Specified development/production fallback strategies.

Co-authored-by: mrteye <1945243+mrteye@users.noreply.github.com>
2026-08-24 03:57:17 +00:00
google-labs-jules[bot]
38310f4ead docs: draft task file for Ingress Grant Injection in forward-auth
Creates a new task markdown file in `tasks/new` detailing the
architecture and implementation steps required to inject
flattened RBAC grants via Valkey caching for `/api/forward-auth`.

Co-authored-by: mrteye <1945243+mrteye@users.noreply.github.com>
2026-08-24 03:56:04 +00:00
google-labs-jules[bot]
1f94f27b57 docs(tasks): draft realtime invalidation bus task for SDK
Creates a Kanban task file outlining the architectural plan and
implementation steps for adding a zero-dependency real-time event
bus to `@auth-yes/sdk`. This bus will listen for Valkey RESP3 push
invalidation events and emit raw token strings to registered
listeners, ensuring safe and isolated execution to prevent downstream
crashes.

Co-authored-by: mrteye <1945243+mrteye@users.noreply.github.com>
2026-08-24 03:55:00 +00:00
google-labs-jules[bot]
2753b6b757 docs(tasks): draft realtime invalidation bus task for SDK
Creates a Kanban task file outlining the architectural plan and
implementation steps for adding a zero-dependency real-time event
bus to `@auth-yes/sdk`. This bus will listen for Valkey RESP3 push
invalidation events and emit raw token strings to registered
listeners, ensuring safe and isolated execution to prevent downstream
crashes.

Co-authored-by: mrteye <1945243+mrteye@users.noreply.github.com>
2026-08-24 03:54:55 +00:00
cf64161a8b docs: preserve cryptographic verification dossier in docs/VERIFY.md and expand Jules prompt library 2026-08-23 20:41:48 -07:00
31e4bd51c4 docs: add phased implementation plan and pre-configured Jules orchestrator meta-prompts 2026-08-23 20:35:14 -07:00
2684e30a23 docs: add comprehensive deep research and architecture brief for cross-ecosystem investigation 2026-08-23 20:06:55 -07:00
e81969d5a4 feat(sdk): inject scopes into context, add requireScope guard, add timeoutMs support, and document Traefik dual-router pattern 2026-08-23 19:33:35 -07:00
a85223f149 docs: generalize ONBOARDING.md into a universal, technology-agnostic integration guide 2026-08-23 19:04:57 -07:00
f2f671a386 docs: add comprehensive client application onboarding and integration guide 2026-08-23 19:01:08 -07:00
f36e237c84 fix(infra): adopt stack.env naming convention and align PostgreSQL 18 volume mount path 2026-08-23 18:50:55 -07:00
37f86f2ba7 fix(spire): maintain bootstrap token continuously until agent enrollment completes 2026-08-23 11:29:15 -07:00
1151431e5f fix(spire): fix camelCase -joinToken CLI flag in entrypoint.agent.sh 2026-08-23 11:26:40 -07:00
d1f728f834 feat(spire): add insecure_bootstrap and automatic join token generation for zero-friction agent enrollment 2026-08-23 11:12:50 -07:00
f967ba3480 feat(infra): separate Auth-Yes and SPIRE environment configurations 2026-08-23 11:05:53 -07:00
e7f01940b3 fix(spire_ffi): silence noisy cert parse error on invalid certs and add SPIFFE cert unit test 2026-08-23 10:58:40 -07:00
3e0eb7d9d7 chore: clean up deno.json tasks and unify subcommands under setup CLI 2026-08-23 10:47:36 -07:00
434ac32336 feat(infra): integrate release pipeline natively into setup.ts with rolling restart and new install guides 2026-08-23 10:45:46 -07:00
26739f4b63 feat(infra): add release script, secrets verification, and dump subcommands to setup CLI 2026-08-23 10:41:03 -07:00
8a6cd6f72e docs(tasks): groom backlog and move completed extraction task to complete/ 2026-08-23 10:31:11 -07:00
6d0b811637 chore(infra): ignore generated compose and env files 2026-08-23 10:28:46 -07:00
c8c3f26bbe feat(infra): track reference compose.yml and compose.spire.yml 2026-08-23 10:26:22 -07:00
29bc8e1a58 docs: clarify custom project images vs upstream open-source infrastructure in COMPOSE_CONVENTIONS.md 2026-08-23 10:23:46 -07:00
036a735ee0
Merge pull request #3 from mrteye/feat-spire-smart-image-packaging-6613301778153046391
feat: Implement SPIRE Smart Image Packaging & Single Volume Bootstrap
Added spire/Dockerfile.server and spire/Dockerfile.agent wrapping upstream ghcr.io/spiffe images.
Added self-seeding entrypoint scripts handling template provisioning and stale socket cleanup.
Added generic, commented HCL templates for server.conf and agent.conf.
Simplified infra/setup.ts to output a cleaner compose.spire.yml with one spire-data host bind and one spire-socket named volume, eliminating spire-init.
Updated CLI build commands to include SPIRE images.
Task marked as complete.
2026-08-23 10:20:50 -07:00
ccf3c9a101 docs: clarify registry tier classification, mirrors, and Dockerfile portability in COMPOSE_CONVENTIONS.md 2026-08-23 10:20:47 -07:00
google-labs-jules[bot]
4360d67064 feat: Package generic SPIRE images and simplify compose volume
This implements custom Alpine-based Smart SPIRE Server and Agent Docker
images with self-seeding configuration entrypoints. It also updates
the docker-compose configuration to utilize a single host storage volume
and a dedicated named socket volume. Setup build pipelines are expanded to
compile and push these custom SPIRE images.

Co-authored-by: mrteye <1945243+mrteye@users.noreply.github.com>
2026-08-23 17:20:11 +00:00
c07f2d1135 docs: add root COMPOSE_CONVENTIONS.md documenting compose, storage, and smart image standards 2026-08-23 09:53:38 -07:00
1f03cfc85f docs(tasks): add smart SPIRE image packaging and single-volume bootstrap task 2026-08-23 09:41:35 -07:00
3210eb2528 feat(spire): auto-provision commented server.conf and agent.conf on boot via spire-init 2026-08-23 09:12:45 -07:00
edf66037ca fix(infra): use /data convention and separate /volume1/docker/spire project root 2026-08-23 09:07:01 -07:00
daaa4389c1 fix(infra): use SPIRE_DATA_PATH bind mounts and clean GHCR_REG without defaults 2026-08-23 09:02:55 -07:00
ccf9f3a6b9 fix(spire): replace bind mounts with named volumes and provide default server and agent configs 2026-08-22 11:21:05 -07:00
e179ecd419 feat(setup): configure GHCR_REG defaulting to ghcr.atyg.org for SPIRE compose 2026-08-22 11:10:22 -07:00
40da6ecbe0 fix(infra): update Dockerfile, setup.ts, and bootstrap admin invite for standalone repo 2026-08-22 10:18:47 -07:00
623e78a7b1 fix(tests): guard valkey.disconnect and format files 2026-08-21 17:31:36 -07:00
ace1d2596b
Merge pull request #2 from mrteye/jules-verify-3tier-auth-and-rbac-11441419966783139758
Verify 3Tier Auth and RBAC
2026-08-21 17:29:31 -07:00
google-labs-jules[bot]
9988df3218 audit: verify 3-tier auth, rbac, and decouple server side effects
- Add `app` export and wrap startup logic behind `if (import.meta.main)`
- Extract `hono` middleware into `sdk/hono.ts` for clean separation
- Refactor module imports slightly to support in-memory native mocking (`db`, `valkey`, `spire_ffi`, `ratelimit`, `audit`)
- Implement comprehensive native Deno mock tests in `server/main.test.ts`
- Fix type checking across project files

Co-authored-by: mrteye <1945243+mrteye@users.noreply.github.com>
2026-08-22 00:29:19 +00:00
f3bcbddfc8 docs: preserve complete architectural analysis, audit reports, and dependency layer 2026-08-21 16:51:07 -07:00
3ae77473a9 docs(tasks): refine layered-security test harness with modular sdk and entrypoint decoupling 2026-08-21 16:47:20 -07:00
a57e95714e docs(agents): document dual-remote mirroring for SDK distribution 2026-08-21 16:40:31 -07:00
a3abe942da
Merge pull request #1 from mrteye/audit-test-harness-plan-7600793403055236123
Draft comprehensive test harness architecture plan
2026-08-21 16:37:36 -07:00
google-labs-jules[bot]
80b9d3bbe6 audit(tests): Draft comprehensive test harness architecture plan
Creates a task file outlining the automated testing strategy for the
Auth-Yes platform. The plan covers testing strategies for Tier 1 & 2
(Traefik ForwardAuth), Tier 3 (ConnectRPC with SPIFFE/mTLS), RBAC
Default-Deny, and the @auth-yes/sdk Hono middleware using Deno native
mocking capabilities, strictly avoiding external Docker dependencies.

Co-authored-by: mrteye <1945243+mrteye@users.noreply.github.com>
2026-08-21 23:37:21 +00:00
a0defe4d5a Add passive Jules VM setup script. 2026-08-21 15:46:54 -07:00
474cc177ce chore: adopt dual licensing and import task history & scaffolding
- Add LICENSE-MIT and LICENSE-APACHE for dual MIT / Apache-2.0 distribution
- Update root LICENSE pointer, README.md, Deno workspace manifests, and Cargo.toml
- Add deno.lock dependency lockfile
- Format AGENTS.md system guidelines
- Import task lifecycle scaffolding and historical story specifications (extract-auth-yes, setup-ts architecture, modular workspace)
2026-08-21 15:20:36 -07:00