icipe-official / icipe-official/vectoratlas-software-code

Update system to use db user with lower permissions

Open
#96 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

technical
Dominant language
TypeScript
Stars
2
Forks
8
Avg merge
5d 4h
Merged PRs (30d)
11

Description

The API currently uses a full database admin to access the database - we should set up a specific user for the API that only has read and write permissions on the data.

Acceptance criteria:

  • A new user exists for the database with only read and write permissions on the database.
  • The API uses this lower permission database user.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files or tests. Start by locating the API's database connection configuration and the database or deployment setup, then identify where the current administrator credentials and permissions are defined. Done means a separate read-write database user is configured and the API uses it, with access verified without administrative permissions.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, backend, database, security
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.