Repository navigation
feat: data deletion workflow, enterprise admin guide, role compatibility tests, org IP allowlist - #754
Merged
Conversation
…ab#615) Add explicit request/confirm/cancel/complete state machine, owner-only API, rate limiting, structured errors, audit on every transition, and a documented deleted/anonymized/retained contract. Audit rows and the account row are retained; profile fields are anonymized and content is removed in deletion mode.
…tus (AyinkxLab#640) Document organization setup, members, roles, SSO, audit, retention, and user data requests using the routes that exist. Mark SCIM as not implemented. Link the guide from README and the admin UI, and validate documented routes and CLI commands against the URL map and Click tree.
… routes (AyinkxLab#637) Prove representative API and HTML routes keep their pre-capability-migration behavior, including catalog-coded denials and fail-closed behavior for removed members and outsiders.
Validate and canonicalize CIDR input with the standard library, store one configuration per workspace, and enforce it in a fail-closed request guard for workspace- and project-scoped routes. Owner-only configuration is audited. Health, static assets, metrics, and favicon are documented exemptions.
|
@Kameelsulyman is attempting to deploy a commit to the Ayinkx Team on Vercel. A member of the Team first needs to authorize it. |
|
@Kameelsulyman 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.
Summary
Phase 11 governance and security work: a user data deletion/anonymization workflow, an enterprise admin guide, role backward-compatibility tests, and a per-organization IP allowlist.
Closes #615
Closes #640
Closes #637
Closes #620
#615 — user data deletion and anonymization
user_deletion_requestsmodel withrequested -> confirmed -> completedpluscancelled, and two modes:deletionandanonymization.app/services/data_deletion.pymirrors the existing export workflow: per-user rate limit (3 per 24 h), owner-only lookups, explicit confirmation phrasedelete my datachecked before any state change, audit entry on request/confirm/cancel/complete.deletionremoves personal content (conversations and messages, prompts and versions, provider API keys, GitHub connections, stale export rows) then anonymizes the profile.anonymizationkeeps content and only clears the profile.Userrow or anyaudit_logsrow: the account row is retained because audit entries reference it and deleting it would cascade-delete owned workspaces. Profile fields are cleared, the account is disabled, and memberships are soft-removed./auth/api/data-deletionwith structured catalog errors.docs/user-data-deletion.mddocuments the field-by-field contract of what is cleared versus retained.#640 — enterprise admin guide
docs/enterprise-admin-guide.md: organization model, setup, members/invitations, role matrix, SSO, audit, retention, user-data requests, operational checklist.base.html, and the organization dashboard.tests/test_enterprise_admin_guide.pyverifies every documented route againstapp.url_map, every documented CLI command/option against the Click tree, and the doc/README/template links.#637 — role backward compatibility
tests/test_role_backward_compatibility.pycovers owner, contributor, viewer and outsider on member list/add, settings, audit, pricing, activity, heartbeat, the members page, the audit page and workspace detail, including fail-closed behavior for removed members.#620 — per-organization IP allowlist
workspace_ip_allowlistsmodel (one row per workspace, canonical CIDR list, capped at 100).app/services/ip_allowlist.pyvalidates and canonicalizes with stdlibipaddress, masks host bits, dedupes, and rejects malformed input.workspace_iddirectly or throughproject_id, and fails closed: enabled with no usable entries, unparseable client address, or no matching range all deny. Exemptions are/static/,/health,/healthz,/metrics,/favicon.ico.GET/PUT /workspaces/api/workspaces/<id>/ip-allowlist; changes are audited asip_allowlist_updated.docs/ip-allowlist.mdcovers configuration, exemptions, the lockout warning,remote_addr/proxy behavior, and limitations.Verification
Limitations
main(tests/test_openapi_generation.py,tests/test_admin_usage_report.py::...test_admin_navigation_link_is_visible_only_to_admins).request.remote_addr; forwarded headers are deliberately not trusted, and proxy configuration is documented./workspaces/is not workspace-scoped, so workspace names stay visible to signed-in users.