Repository navigation
feat: domain verification and SSO enforcement, public API docs, public API v1 - #749
Merged
Merged
Conversation
|
@Engr-Able is attempting to deploy a commit to the Ayinkx Team on Vercel. A member of the Team first needs to authorize it. |
|
@Engr-Able Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phase 11/12: domain verification and SSO enforcement, public API docs, public API v1
Closes #590
Closes #655
Closes #646
Summary
Three commits, one per issue.
#590 Domain verification and SSO enforcement
app/models/workspace_domain.py: newworkspace_domainstable (unique domain, verification token, expiring challenge, verified timestamp,enforce_sso).app/services/domain_verification.py: domain normalization, 24-hour challenge TTL, DNS TXT lookup with a 5-second lifetime, conflict/expiry/failure handling,manage_settingspermission checks, and the enforcement lookup used by login.app/auth/routes.py: JSON endpoints for challenge, verify, list, and enforcement; password login is blocked for accounts on a verified, enforcing domain with a clear message, and the blocked attempt is audited (sso_enforced).590a1b2c3d4eplus a merge revisionc9d1e2f3a4b5for the two heads that existed on main.flask db headsnow reports exactly one head.#655 Public API documentation site
scripts/render_api_docs.py: dependency-free generator that builds an OpenAPI 3.1 document from the Flask URL map and renders a single self-contained HTML reference.docs/openapi.jsonanddocs/api/index.htmlare generated artifacts; the page covers authentication, pagination, errors, webhook verification, endpoints, and an explicit coverage/stability note./api/docs, linked from the README and the app footer.#646 Public API v1 resources
app/api/v1.py:GET /api/v1/projects,/projects/<id>,/reviews,/reviews/<id>,/usage.404, never a403existence oracle. Usage is always caller-scoped.Verification
The migration tests (head is latest, workspace_domains upgrade/downgrade) also pass.
Limitations
dns.resolver, currently present transitively viaemail-validatorbut not pinned directly. If it disappears, verification fails closed with a clear error./api/v1; other discovered paths are listed with their existing web-UI contracts, and the page says so.