user-management#37
Conversation
️✅ There are no secrets present in this pull request anymore.If these secrets were true positive and are still valid, we highly recommend you to revoke them. 🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request. |
5034937 to
e0c4251
Compare
|
@smalex-z waiting on approval for this |
will review in ~15 minutes when i get back. is there initial user setup? |
- API: Postgres-backed user store (list/create/change password), GET/POST /api/users, PUT /api/users/:id/password - Frontend: Users nav and page (list, add user, change password) - Deploy: Install sets up Postgres and env when Docker present; update/uninstall handle Postgres; no hardcoded secrets - Tests: db package tests; Go workflow uses TEST_POSTGRES_PASSWORD secret for CI - Docs: README and docker-compose comments updated Made-with: Cursor
e0c4251 to
67b086b
Compare
|
Unit tests run: 76 |
Description
Adds a basic user management system: create users and change passwords, with users stored in Postgres. User management is optional and only enabled when
DATABASE_URLis set.Resolves Issue #16
Changes Made
api/db/db.go): list users, create user (bcrypt), change password. Endpoints:GET/POST /api/users,PUT /api/users/:id/password. Enabled only whenDATABASE_URLis set./opt/altsuite/envwhen Docker is present so user management works out of the box. Update script ensures Postgres is running if present; uninstall stops the user-management Postgres container.api/db/db_test.gofor user DB operations; Go workflow updated with Postgres service andDATABASE_URLso these tests run in CI.Testing
Screenshots