Skip to content

Enforce ST Deploy Center storage quotas in Drive - #177

Merged
Apoze merged 7 commits into
mainfrom
codex/block-drive-uploads-quota-172
Aug 2, 2026
Merged

Enforce ST Deploy Center storage quotas in Drive#177
Apoze merged 7 commits into
mainfrom
codex/block-drive-uploads-quota-172

Conversation

@Apoze

@Apoze Apoze commented Aug 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • connect the local Drive stack reproducibly to ST Deploy Center quota data
  • expose the demo SIRET through Keycloak 26 using a managed user-profile field
  • accept valid integer-valued decimal usage metrics while rejecting malformed values
  • display the applicable storage state in Drive and preserve trusted public quota reasons
  • block new uploads server-side when user or organization quotas are exceeded
  • isolate backend tests from local OIDC claim settings

Why

Drive needs to consume the quotas administered in ST Deploy Center, show the
applicable state to users, and keep the backend authoritative when an upload is
not allowed.

Tracks #169, #170, #171, #172,
#173, and #174.

Validation

  • deterministic repository gates: pass
  • backend lint: Ruff pass, Pylint 10/10
  • backend suite: 2200 passed, 12 warnings
  • focused authentication suite after the realm correction: 25 passed
  • frontend lint: pass
  • isolated Keycloak 26.3.2 realm import: pass
  • live ST → Drive flow: 5 GB displayed; 1 MB user limit blocked import with
    the personal-quota message; 1 MB organization limit locked storage and
    blocked import with the organization-quota message; both demo quotas restored
  • git diff check, gitlint, changelog policy, and tracked backend debug-print checks: pass
  • one unrelated user-list test failed intermittently on the first full run,
    passed in isolation, and the complete rerun passed

Notes

  • regular Drive storage remains separate from MountProvider capacity
  • no secret, token, cookie, authorization header, signed URL, or file content
    is added or logged
  • this PR targets the Apoze fork only

Apoze added 7 commits August 2, 2026 10:58
Document the idempotent ST bootstrap and wire the demo siret claim.
Normalize integer-valued quota metrics returned by Deploy Center.
Preserve trusted quota denial codes for root uploads and show the
matching reason from the explorer import gate.
Keep organization lock state for zero quotas, preserve trusted retry
codes, and retain trusted entitlement messages in the import guard.
Document the GitHub Issues routing, triage labels, and domain context.

Keep ST Deploy Center changes local and upstream-ticket ready.
Keep tests deterministic when local development stores extra OIDC claims.
Declare the demo SIRET as a managed Keycloak user-profile attribute.

Keycloak 26 can then include it in Drive tokens.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant