GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Prove authenticated writes across two UserService replicas · Issue #773 · OpenResilienceInitiative/ORISO-UserService

Prove authenticated writes across two UserService replicas #773

New issue
Copy link
New issue
Copy link
Closed
Task
Closed
Prove authenticated writes across two UserService replicas#773
Task
Copy link
Assignees
BjoernLudwigStorypapst

Description

@Storypapst
Storypapst
opened on Jul 27, 2026
Issue body actions

Why

The existing replica work proved bounded public reads and individual Redis/MariaDB coordination modules, but not a valid JWT-authenticated write routed between replicas. Tutorial progress also implemented upsert as read-then-insert, so concurrent replicas could race on the unique scope key. Concurrent creation of different scopes could separately exceed the per-user row cap.

Parent: #733

Delivered in #830

  • deterministic local JWK/JWT adapter for the real resource-server authentication path
  • two packaged UserService JVMs against shared isolated MariaDB and Redis
  • native MariaDB atomic upsert for one tutorial-progress scope
  • hashed, user-scoped advisory serialization for first writes so the row cap remains atomic across replicas
  • existing-scope lock-free update path
  • portable H2 HTTP/JPA E2E plus separate real-MariaDB concurrency contracts
  • alternating authenticated PUT/GET traffic across both replicas plus one-replica restart

Acceptance

  • A real MariaDB concurrency test covers concurrent first writes and leaves one canonical scope.
  • A real MariaDB concurrency test proves different new scopes cannot exceed the per-user row cap.
  • The rejected-write path releases the advisory lock for the next first write.
  • Two real JVMs accept a valid consultant JWT without sticky sessions or a real Keycloak dependency.
  • Concurrent same-scope writes return no 5xx and leave exactly one canonical progress row.
  • Writes are immediately readable from the other replica.
  • Stopping and restarting one replica does not lose authentication or persisted progress.
  • The report enforces per-operation and per-replica volume, error-rate and p95 thresholds.
  • The runner removes every temporary JVM, listener and container.
  • Exact-head GitHub Unit, Required Integration, MariaDB, Redis and OpenAPI gates are terminal green.

Current evidence

PR: #830, exact local head 73c60742

  • focused tutorial unit suite: 9 tests, 0 failures
  • tutorial controller E2E: 5 tests, 0 failures
  • complete required integration suite: 79 reports / 844 tests, 0 failures, 0 errors, 7 environment-gated skips
  • real tutorial MariaDB contract: 4 tests, 0 failures
  • initial two-JVM phase: 82 authenticated operations, 0 failures, 41.76 ms p95
  • restart phase after isolated-scope initialization: 14 measured operations, 0 failures, 19.22 ms p95
  • one canonical measured-scope MariaDB row and no duplicate-key warning
  • per-operation and per-replica 1,000 ms p95 threshold remained enforced

This is bounded local branch evidence for the tutorial-progress state transition. It is not a claim that #830 is merged, deployed to PreDev, proven through deployed SigNoz, or sufficient to raise the whole-service replica limit.

Reacted by coderabbitai

Activity

  1. Storypapst
    self-assigned this
    on Jul 27, 2026
  2. Storypapst
    added a parent issue on Jul 27, 2026
    • Make service replica behavior explicit and safe under failover and scale-out #733
  3. Storypapst
    added the
    Task
    issue type on Jul 27, 2026
  4. Storypapst
    added this to ORISO Roadmapon Jul 27, 2026
  5. coderabbitai commented on Jul 27, 2026

    @coderabbitai
    coderabbitaiBot
    on Jul 27, 2026 – with coderabbitai
    More actions
    🔗 Related PRs

    #389 - fix: finalize persisted consultant agency relation [merged]
    #448 - fix: harden anonymous live-chat redemption and acceptance [merged]
    #489 - fix(db): include orphaned 0067_consultant_public_slug changeset in master changelog [merged]
    #501 - feat(tour): aggregate tutorial statistics for authorized admins (TOUR-06) [merged]
    #508 - Fix own-email rejection during consultant 2FA setup [merged]


    📝 Issue Planner

    Check the box below or use the @coderabbitai plan command to generate an implementation plan and prompts that you can use with your favorite coding assistant.

    • Create Plan

    🧪 Issue enrichment is currently in open beta.

    You can configure auto-planning by selecting labels in the issue_enrichment configuration.

    To disable automatic issue enrichment, add the following to your .coderabbit.yaml:

    issue_enrichment:
      auto_enrich:
        enabled: false

    💬 Have feedback or questions? Drop into our discord!

  6. Storypapst
    moved this to In progress in ORISO Roadmapon Jul 27, 2026
  7. Storypapst
    moved this from In progress to In review in ORISO Roadmapon Jul 27, 2026
  8. Storypapst
    added a commit that references this issue on Jul 27, 2026

    test(load): warm replica proof on an isolated scope (#773)

    85eeff1
  9. Storypapst commented on Jul 27, 2026

    @Storypapst
    Storypapst
    on Jul 27, 2026
    CollaboratorAuthor
    More actions

    Current-baseline replay published as draft PR #830. Local proof is green: focused tutorial 9; full unit 3,370/0 failures/4 pre-existing skips (removed independently by #829); required integration 843/0 failures/0 errors; fresh MariaDB 5/0; Python CI plus OpenAPI 21. The real two-replica run completed 82 initial requests at 38.55 ms p95 and 14 post-restart requests at 373.39 ms p95, with zero failures, one canonical row, no duplicate-key warning, and no Rocket.Chat/Jitsi configuration or dependency.

  10. Storypapst
    added 2 commits that reference this issue on Jul 28, 2026

    fix(replica): serialize tutorial row-cap writes (#773)

    847c270

    test(replica): keep required tutorial proof portable (#773)

    73c6074
  11. Storypapst commented on Jul 28, 2026

    @Storypapst
    Storypapst
    on Jul 28, 2026
    CollaboratorAuthor
    More actions

    PR #830 is now review-ready at exact head 73c607428a9e6dd1cefd81002dc65a209ac09494. All 12 configured checks are terminal green after the Required-E2E H2 compatibility repair and restart warm-up stabilization. Local proof remains 844/0/0 Required Integration tests plus the real MariaDB row-cap race and two-JVM authenticated restart run. No merge or deployment has occurred.

  12. Storypapst commented on Jul 28, 2026

    @Storypapst
    Storypapst
    on Jul 28, 2026
    CollaboratorAuthor
    More actions

    Current-base replay evidence for PR #830:

    • exact head: 391d3ef2ff6cc2f269b60457a8ca728e90396f94
    • current pre-dev: 947cd1baa142cc4ac9360a96f4694be5e932c657 (contained in head)
    • combined MariaDB CI retains the tutorial contract plus the already-merged schema, statistics, Organizer, and group-chat-deactivation contracts
    • focused service tests: 9 passed; controller E2E: 5 passed
    • full unit suite: 3,411 tests, 0 failures/errors, 4 existing pre-dev quarantine skips
    • full integration suite: 849 tests, 0 failures/errors, 9 environment-gated skips
    • real MariaDB tutorial replica contract: 4 passed with no skips
    • complete Python CI guards: 35 passed
    • two real UserService processes against shared disposable MariaDB/Redis: initial 82 operations at 48.80 ms p95; post-restart 14 operations at 22.51 ms p95; zero failures; one canonical row; no duplicate-key warning
    • Spotless, shell/Python syntax and diff checks passed
    • all disposable services were removed; no persistent database was reset

    The branch is published and exact-head GitHub checks are running. The PR remains open, unmerged and undeployed.

    Architecture boundary: Matrix is the sole chat system through the ORISO-owned frontend, with an ORISO-controlled Element Call / MatrixRTC fork and LiveKit. Rocket.Chat and Jitsi are full removal targets and are not fallbacks.

  13. Storypapst commented on Jul 28, 2026

    @Storypapst
    Storypapst
    on Jul 28, 2026
    CollaboratorAuthor
    More actions

    Terminal exact-head CI evidence for PR #830:

    All 12 checks for 391d3ef2ff6cc2f269b60457a8ca728e90396f94 are successful: branch and PR builds, Docker validation, both required-integration jobs, both combined MariaDB schema/statistics/replica contracts, Redis shared-state contracts, both OpenAPI checks, API contract diff, and Required PreDev CI. The successful CodeRabbit status is the configured pre-dev skip, not a human review.

    The PR remains open, unmerged and undeployed. Its two-replica source/test proof does not authorize a production replica-count change; the broader replica-safety ceiling remains governed separately.

  14. shazia-k
    added a commit that references this issue on Jul 28, 2026

    Merge pull request #830 from OpenResilienceInitiative/replay/tutorial…

    9a69ae9
  15. kiodreambau
    moved this from In review to QA internal in ORISO Roadmapon Jul 29, 2026
  16. kiodreambau
    set
    Priority
    to
    Medium
    on Aug 24, 2026
  17. Storypapst commented on Aug 24, 2026

    @Storypapst
    Storypapst
    on Aug 24, 2026
    CollaboratorAuthor
    More actions

    Verified as delivered: PR #830 (merged to pre-dev) replaces the tutorial-progress read-then-insert race with an atomic MariaDB upsert plus a hashed per-user advisory lock for first writes, and proves it with a real two-JVM run (deterministic JWT/JWK, no live Keycloak dependency as scoped by the issue) covering 82 authenticated PUT/GET operations plus a replica restart, zero failures, one canonical row, no duplicate-key warning, and all 12 exact-head CI gates (unit, required integration, MariaDB, Redis, OpenAPI) terminal green.

    Moving to QA external Dev for external review. cc @BjoernLudwig

  18. Storypapst
    assigned
    BjoernLudwig
    on Aug 24, 2026
  19. Storypapst
    moved this from QA internal Dev to QA external Dev in ORISO Roadmapon Aug 24, 2026
  20. Storypapst
    closed this as completedon Aug 28, 2026
  21. Storypapst
    moved this from QA external Dev to Done in ORISO Roadmapon Aug 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @BjoernLudwig
    BjoernLudwig
  • @Storypapst
    Storypapst

Labels

No labels
No labels

Type

Task

Fields

Priority

Medium

Platform release

v2.0.2

Projects

  • ORISO Roadmap
    Status
    Done
    Show more project fields

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.