Skip to content

Commit

Permalink
docs: draft user authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
jiegec committed Mar 8, 2024
1 parent f28f860 commit 5050d7e
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion DESIGN.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ The database should have the following tables:
1. pipelines: pipeline is a series of jobs
2. jobs: job is a specific task for worker to do
3. packages: track the status of packages in stable branch
4. users: track github and telegram user association

The terms `pipelines` and `jobs` are taken from GitLab CI.

Expand All @@ -47,4 +48,18 @@ Each job contains the following arguments:
Job result:

1. List of successful builds
2. Failed package and link to build log (on buildit.aosc.io)
2. Failed package and link to build log (on buildit.aosc.io)

## Authentication

Authentication:

1. Web: login via GitHub App
2. Telegram: jump to GitHub App and authenticate, associate with Telegram user
3. GitHub: username provided by GitHub

User roles:

1. Anonymous: not logged-in
2. Guest: logged-in, but not in AOSC-Dev GitHub organization
3. Developer: loggined and in AOSC-Dev GitHub organization

0 comments on commit 5050d7e

Please sign in to comment.