Commit graph

53 commits

Author SHA1 Message Date
46eb5918c0
remove: Remove user registration body
All checks were successful
DCO checker / DCO checker (pull_request) Successful in 9s
Rust CI / Rust CI (pull_request) Successful in 5m33s
Signed-off-by: Awiteb <a@4rs.nl>
2024-07-21 14:24:06 +03:00
forgejo-actions
bf77af3cfc chore(changelog): Update changelog 2024-07-21 11:23:31 +00:00
7006be2685
change: Add serde & openapi features to the core
Some checks failed
Write changelog / write-changelog (push) Successful in 4s
Update Contributors / Update Contributors (push) Successful in 3s
Rust CI / Rust CI (push) Has been cancelled
Signed-off-by: Awiteb <a@4rs.nl>
2024-07-21 13:44:37 +03:00
b42e7f2bfe
chore: Update README.md
All checks were successful
Write changelog / write-changelog (push) Successful in 4s
Update Contributors / Update Contributors (push) Successful in 5s
Rust CI / Rust CI (push) Successful in 4m25s
Signed-off-by: Awiteb <a@4rs.nl>
2024-07-20 22:56:05 +03:00
d6ac2d1599
chore: Add Code of Conduct
All checks were successful
Write changelog / write-changelog (push) Successful in 4s
Update Contributors / Update Contributors (push) Successful in 5s
Rust CI / Rust CI (push) Successful in 4m25s
Signed-off-by: Awiteb <a@4rs.nl>
2024-07-20 22:32:35 +03:00
forgejo-actions
cb2f540a2a chore(changelog): Update changelog 2024-07-20 18:50:34 +00:00
4964ba085f
change: Change the default port
All checks were successful
Write changelog / write-changelog (push) Successful in 4s
Update Contributors / Update Contributors (push) Successful in 5s
Rust CI / Rust CI (push) Successful in 4m23s
Signed-off-by: Awiteb <a@4rs.nl>
2024-07-20 21:50:13 +03:00
forgejo-actions
c4734d2698 Update CONTRIBUTORS.md 2024-07-20 14:43:45 +00:00
forgejo-actions
454fd2c6e8 chore(changelog): Update changelog 2024-07-20 14:43:27 +00:00
6a729e49d4
fix: Change the CLI settings
All checks were successful
Write changelog / write-changelog (push) Successful in 7s
Update Contributors / Update Contributors (push) Successful in 5s
Rust CI / Rust CI (push) Successful in 4m34s
Fixes: #10
Reported-by: Awiteb <a@4rs.nl>
Signed-off-by: Awiteb <a@4rs.nl>
2024-07-20 17:42:39 +03:00
forgejo-actions
86728bac46 chore(changelog): Update changelog 2024-07-20 14:37:48 +00:00
2da2e62b3b
fix: Change the way checking if the file changed
Some checks failed
Write changelog / write-changelog (push) Successful in 9s
Update Contributors / Update Contributors (push) Successful in 10s
Rust CI / Rust CI (push) Has been cancelled
Signed-off-by: Awiteb <a@4rs.nl>
2024-07-20 17:37:31 +03:00
c214535218
chore: Update CONTRIBUTING.md
Some checks failed
Write changelog / write-changelog (push) Successful in 3s
Update Contributors / Update Contributors (push) Failing after 4s
Rust CI / Rust CI (push) Successful in 4m22s
Signed-off-by: Awiteb <a@4rs.nl>
2024-07-20 17:22:19 +03:00
8ad066a5ff
chore: Update the copyright
Some checks failed
Write changelog / write-changelog (push) Successful in 10s
Update Contributors / Update Contributors (push) Failing after 10s
Rust CI / Rust CI (push) Successful in 5m12s
Signed-off-by: Awiteb <a@4rs.nl>
2024-07-20 16:37:40 +03:00
forgejo-actions
9c2db0cbe8 Update CONTRIBUTORS.md 2024-07-20 13:13:15 +00:00
forgejo-actions
77a23e9423 chore(changelog): Update changelog 2024-07-20 13:12:54 +00:00
cb60ee84bb
feat: CI to create CONTRIBUTORS.md file
All checks were successful
Write changelog / write-changelog (push) Successful in 4s
Update Contributors / Update Contributors (push) Successful in 5s
Rust CI / Rust CI (push) Successful in 4m28s
Signed-off-by: Awiteb <a@4rs.nl>
2024-07-20 16:06:17 +03:00
forgejo-actions
063a3d3263 chore(changelog): Update changelog 2024-07-18 12:21:21 +00:00
82132fc446
feat: Chat request implementation
All checks were successful
Write changelog / write-changelog (push) Successful in 4s
Rust CI / Rust CI (push) Successful in 4m13s
In this patch, I have implemented the chat request and response from OTMP
protocol. The changes include:
- New `in_chat_request` and `out_chat_request` database tables
- New `users_status` table to store user status (whitelisted or blacklisted)
- New server events:
    - `ChatRequest` To send chat request comes from some user
    - `ChatRequestResponse` To send chat request response to some user
- New client events:
    - `ChatRequest` To send chat request to some user
    - `ChatRequestResponse` To send chat request response to some user
- `ws_errors` macro to create websocket errors
- `/user/whitelist` and `/user/blacklist` API to list whitelisted and
blacklisted users

Fixes: #2
Reviewed-on: #14
Reviewed-by: Amjad Alsharafi <me@amjad.alsharafi.dev>
Helped-by: Amjad Alsharafi <me@amjad.alsharafi.dev>
Signed-off-by: Awiteb <a@4rs.nl>
2024-07-18 15:21:05 +03:00
forgejo-actions
590e7ea93b chore(changelog): Update changelog 2024-07-18 09:46:51 +00:00
2e0342e820
change: Use Scalar as default openapi UI
All checks were successful
Write changelog / write-changelog (push) Successful in 4s
Rust CI / Rust CI (push) Successful in 4m2s
Fixes: #19
Signed-off-by: Awiteb <a@4rs.nl>
2024-07-18 12:46:31 +03:00
8021b15f41
chore: Update CONTRIBUTING.md
All checks were successful
Write changelog / write-changelog (push) Successful in 3s
Rust CI / Rust CI (push) Successful in 3m49s
Reviewed-on: #18
Signed-off-by: Awiteb <a@4rs.nl>
2024-07-14 04:54:44 +03:00
forgejo-actions
c623d66cc9 chore(changelog): Update changelog 2024-07-14 01:01:09 +00:00
019706747a
feat: Developer Certificate of Origin
All checks were successful
Write changelog / write-changelog (push) Successful in 4s
Rust CI / Rust CI (push) Successful in 3m57s
Reviewed-on: #17
Fixes: #16
Signed-off-by: Awiteb <a@4rs.nl>
2024-07-14 04:00:23 +03:00
forgejo-actions
7c891751e2 chore(changelog): Update changelog 2024-07-08 15:49:03 +00:00
0f146a5df8
fix: Use old alert blocks style
All checks were successful
Rust CI / Rust CI (pull_request) Successful in 4m24s
Write changelog / write-changelog (push) Successful in 4s
Rust CI / Rust CI (push) Successful in 4m17s
Because rustdoc lint us with `broken_intra_doc_links`

Signed-off-by: Awiteb <a@4rs.nl>
2024-07-08 17:49:59 +03:00
forgejo-actions
51bdf9781a chore(changelog): Update changelog 2024-07-07 18:00:37 +00:00
4590d8b2af
feat: Make the executable little small
All checks were successful
Write changelog / write-changelog (push) Successful in 10s
Rust CI / Rust CI (pull_request) Successful in 6m52s
Rust CI / Rust CI (push) Successful in 7m5s
Signed-off-by: Awiteb <a@4rs.nl>
Reviewed-by: Amjad Alsharafi <me@amjad.alsharafi.dev>
2024-07-07 20:59:05 +03:00
f5ffa3733e
chore: Update README.md
Add ci/cd badges and repo mirrors

Signed-off-by: Awiteb <a@4rs.nl>
Reviewed-by: Amjad Alsharafi <me@amjad.alsharafi.dev>
2024-07-07 20:59:05 +03:00
fcaf7db674
feat: Create CI/CD
Signed-off-by: Awiteb <a@4rs.nl>
Reviewed-by: Amjad Alsharafi <me@amjad.alsharafi.dev>
2024-07-07 20:59:04 +03:00
d442e73ed7
change: Remove the nonce cache limit
Don't pass the nonce cache limit everywhere, we allocate the hashmap capacity
with it, so we can use the hashmap capacity directly.

Also refactor the `NonceCache` type, make it better without extension trait.

Suggested-by: Amjad Alsharafi <me@amjad.alsharafi.dev>
Reviewed-by: Amjad Alsharafi <me@amjad.alsharafi.dev>
Signed-off-by: Awiteb <a@4rs.nl>
2024-07-06 14:07:48 +03:00
c0d5efe0c3
feat: Initialize server websocket
Related-to: #2
Reviewed-by: Amjad Alsharafi <me@amjad.alsharafi.dev>
Signed-off-by: Awiteb <a@4rs.nl>
2024-07-06 14:07:30 +03:00
cd2a9ea03e
feat: New extension trait for websocket online users
Signed-off-by: Awiteb <a@4rs.nl>
2024-07-05 02:17:10 +03:00
6f43e44745
chore: Add new dependencies for websocket
Signed-off-by: Awiteb <a@4rs.nl>
2024-07-05 02:16:10 +03:00
2471cff83e
chore: Remove sign and verify function logs`
Signed-off-by: Awiteb <a@4rs.nl>
2024-07-04 17:38:42 +03:00
f69fa7f370
docs: Fix typos
Signed-off-by: Awiteb <a@4rs.nl>
2024-07-04 16:42:09 +03:00
062e441d8a
feat: Create signature data if there is no request body
The signature data is `Method+uri path` if there is no request body

Signed-off-by: Awiteb <a@4rs.nl>
2024-07-04 16:11:23 +03:00
77858ac8f4
feat: Create verify instance function for the Signature
Signed-off-by: Awiteb <a@4rs.nl>
2024-07-04 16:08:11 +03:00
f4b2514e75
feat: Derive Hash in PublicKey and Signature
Signed-off-by: Awiteb <a@4rs.nl>
2024-07-03 13:12:20 +03:00
e15c693421
chore: Returns nonce cache as Arc
Signed-off-by: Awiteb <a@4rs.nl>
2024-07-03 13:11:16 +03:00
f47bc82b19
feat: Derive Eq and PartialEq to Signature
Signed-off-by: Awiteb <a@4rs.nl>
2024-07-02 18:18:41 +03:00
39337f8d90
feat: Add sign_with_shared_secret function to K256Secret
Signed-off-by: Awiteb <a@4rs.nl>
2024-07-02 18:17:44 +03:00
aeac22250e
chore: Add TwoDifferentKeys error message
Signed-off-by: Awiteb <a@4rs.nl>
2024-07-02 18:15:00 +03:00
b8e00c244a
chore: Use rustls instead of native-tls
Signed-off-by: Awiteb <a@4rs.nl>
2024-07-01 11:30:57 +03:00
d7f149f436
chore: Remove whitespace
Signed-off-by: Awiteb <a@4rs.nl>
2024-07-01 11:29:29 +03:00
8d3faaf70c
chore: Create changelog
Signed-off-by: Awiteb <a@4rs.nl>
2024-06-26 23:22:47 +03:00
7e3558d776
chore: Initialize the project
Signed-off-by: Awiteb <a@4rs.nl>
2024-06-26 23:05:17 +03:00
a9ba2c4f31
chore: Add README.md
Signed-off-by: Awiteb <a@4rs.nl>
2024-06-26 23:05:06 +03:00
887e0847cd
chore: Add contribution guide file
Signed-off-by: Awiteb <a@4rs.nl>
2024-06-26 23:04:48 +03:00
42aa6837ed
chore: Add licenses
Signed-off-by: Awiteb <a@4rs.nl>
2024-06-26 23:03:01 +03:00