feat: terms of service and versioned consent; data rights for every account
ci / lint (push) Skipped
ci / test (push) Skipped
ci / build (push) Skipped
ci / image (push) Skipped
ci / lint (pull_request) Successful in 9m21s
ci / test (pull_request) Successful in 13m53s
ci / build (pull_request) Successful in 11m22s
ci / image (pull_request) Successful in 4m36s
ci / lint (push) Skipped
ci / test (push) Skipped
ci / build (push) Skipped
ci / image (push) Skipped
ci / lint (pull_request) Successful in 9m21s
ci / test (pull_request) Successful in 13m53s
ci / build (pull_request) Successful in 11m22s
ci / image (pull_request) Successful in 4m36s
Terms of service join the legal notice and privacy policy, for the platform only. Every account accepts the platform's privacy policy and terms: on sign-up (also through an invitation) by ticking a box for the versions shown, and after a sign-in through a provider right away. When an admin saves a material change with "everyone has to accept again", the document gets a new version and each account is asked at its next request; corrections ask nobody. Acceptances are kept per version with their time, as proof, and are part of the data export. Until an account accepted, and while it is suspended, it can read the documents, export its data, delete itself and sign out, nothing else: pages lead to /consent or /account/suspended, other API calls answer 403 consent_required or account_suspended. Suspended accounts therefore sign in again, by password or provider; their API tokens stay blocked. Deleting an account deletes the organizations it owns, monitors and all, also when they have other members (each organization has one owner); it no longer refuses. The account settings name those organizations first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
This commit is contained in:
1 parent
61fdfa830a
commit
8d7c1f856c
38 files changed
+2033
-354
No files matched your search
@@ -13,6 +13,8 @@ import (
|
||||
|
||||
type Querier interface {
|
||||
APITokenOrg(ctx context.Context, hash []byte) (uuid.UUID, error)
|
||||
AcceptLegal(ctx context.Context, arg AcceptLegalParams) error
|
||||
AcceptedLegalVersions(ctx context.Context, userID uuid.UUID) ([]AcceptedLegalVersionsRow, error)
|
||||
AddAlertGroupChannel(ctx context.Context, arg AddAlertGroupChannelParams) (int64, error)
|
||||
AddMaintenanceTarget(ctx context.Context, arg AddMaintenanceTargetParams) error
|
||||
AddMembership(ctx context.Context, arg AddMembershipParams) error
|
||||
@@ -179,6 +181,7 @@ type Querier interface {
|
||||
// Newest result per monitor and region in the org.
|
||||
LatestResults(ctx context.Context, orgID uuid.UUID) ([]LatestResultsRow, error)
|
||||
LatestResultsForMonitor(ctx context.Context, arg LatestResultsForMonitorParams) ([]LatestResultsForMonitorRow, error)
|
||||
LegalAcceptances(ctx context.Context, userID uuid.UUID) ([]LegalAcceptancesRow, error)
|
||||
// The organization's documents and the platform's, organization first.
|
||||
LegalDocuments(ctx context.Context, orgID *uuid.UUID) ([]LegalDocument, error)
|
||||
ListAPITokens(ctx context.Context, arg ListAPITokensParams) ([]ListAPITokensRow, error)
|
||||
@@ -293,6 +296,8 @@ type Querier interface {
|
||||
ReparentGroups(ctx context.Context, arg ReparentGroupsParams) error
|
||||
ReparentStatusPageGroupChildren(ctx context.Context, arg ReparentStatusPageGroupChildrenParams) error
|
||||
ReparentStatusPageGroupMonitors(ctx context.Context, arg ReparentStatusPageGroupMonitorsParams) error
|
||||
// The platform documents accounts have to accept, in their current version.
|
||||
RequiredLegalVersions(ctx context.Context) ([]RequiredLegalVersionsRow, error)
|
||||
ResolveIncident(ctx context.Context, arg ResolveIncidentParams) (Incident, error)
|
||||
// Heartbeats of an organization wait afresh after its suspension, during
|
||||
// which pings were refused.
|
||||
@@ -343,6 +348,8 @@ type Querier interface {
|
||||
UpdateStatusPage(ctx context.Context, arg UpdateStatusPageParams) (StatusPage, error)
|
||||
UpdateStatusPageGroup(ctx context.Context, arg UpdateStatusPageGroupParams) (StatusPageGroup, error)
|
||||
UpsertAlertmanagerAlert(ctx context.Context, arg UpsertAlertmanagerAlertParams) error
|
||||
// A new version starts when the document is created or when the edit asks
|
||||
// everyone to accept it again.
|
||||
UpsertLegalDocument(ctx context.Context, arg UpsertLegalDocumentParams) error
|
||||
// Uptime per monitor from the hourly aggregate, including the not yet
|
||||
// materialized most recent hours (real-time aggregation).
|
||||
|
||||
Reference in new issue
Block a user