Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ jobs:
DATABASE_URL: "sqlite::memory:"
JWT_SECRET: ci-test-secret
FRONTEND_URL: http://localhost:4173
IDENTITY_HASH_PEPPER: ci-test-pepper

- name: Upload blob report
uses: actions/upload-artifact@v6
Expand Down
2 changes: 2 additions & 0 deletions src/backend/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/backend/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,5 @@ utoipa = { version = "5.4.0", features = ["axum_extras", "uuid", "chrono"] }
utoipa-scalar = { version = "0.3.0", features = ["axum"] }
utoipa-swagger-ui = { version = "9.0.2", features = ["axum"] }
bcrypt = "0.18.0"
sha2 = "0.10.8"
hex = "0.4.3"
8 changes: 8 additions & 0 deletions src/backend/migrations/06_add_identity_hashes.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
-- Table to store hashed identifiers of deleted accounts to prevent circumvention
CREATE TABLE IF NOT EXISTS identity_hashes (
hash TEXT PRIMARY KEY,
type TEXT NOT NULL, -- 'DISCORD' or 'WALLET'
created_at DATETIME DEFAULT CURRENT_TIMESTAMP
);

CREATE INDEX IF NOT EXISTS idx_identity_hashes_type ON identity_hashes(type);
2 changes: 2 additions & 0 deletions src/backend/src/audit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ pub enum AuditAction {
SuperAdminCreateTribe,
SuperAdminUpdateTribe,
SuperAdminDeleteWallet,
DeleteUser,
}

impl AuditAction {
Expand All @@ -45,6 +46,7 @@ impl AuditAction {
AuditAction::SuperAdminCreateTribe => "SUPER_ADMIN_CREATE_TRIBE",
AuditAction::SuperAdminUpdateTribe => "SUPER_ADMIN_UPDATE_TRIBE",
AuditAction::SuperAdminDeleteWallet => "SUPER_ADMIN_DELETE_WALLET",
AuditAction::DeleteUser => "DELETE_USER",
}
}
}
Expand Down
Loading
Loading