WIP: Add the bootstrap page and the create users API endpoint. #4

Draft
laurent wants to merge 3 commits from feature/add-bootstrap-page into main
Owner

Context

As part of the first release of Trakk, I want to have the bootstrap page and an API endpoint to create users.
This does not necessarily mean user management.

Changes

This pull request contains the following functional changes:

  • Trakk now has three new configuration parameters:
    • TRAKK_BOOTSTRAP_TOKEN_TTL which allows to set the TTL of the bootstrap authentication token.
    • TRAKK_AUTHENTICATION_JWT_PUBLIC_KEY which allows to set the public key for the JWT signature.
    • TRAKK_AUTHENTICATION_JWT_PRIVATE_KEY which allows to set the private key for the JWT signature.

And the following technical changes:

  • Configuration has been changed from using the config crate to using the figment crate.

Associated issues

#1
#2

## Context As part of the first release of Trakk, I want to have the bootstrap page and an API endpoint to create users. This does not necessarily mean user management. ## Changes This pull request contains the following functional changes: - Trakk now has three new configuration parameters: - `TRAKK_BOOTSTRAP_TOKEN_TTL` which allows to set the TTL of the bootstrap authentication token. - `TRAKK_AUTHENTICATION_JWT_PUBLIC_KEY` which allows to set the public key for the JWT signature. - `TRAKK_AUTHENTICATION_JWT_PRIVATE_KEY` which allows to set the private key for the JWT signature. And the following technical changes: - Configuration has been changed from using the `config` crate to using the `figment` crate. ## Associated issues #1 #2
- Added comments and new keys in `.env.example`.
- Switched from `config` to `figment` for handling configuration.
- Added configuration for the bootstrap token TTL and JWT signing key
  pair.
laurent changed title from Add the bootstrap page and the create users API endpoint. to WIP: Add the bootstrap page and the create users API endpoint. 2026-05-10 21:56:29 +02:00
This pull request is marked as a work in progress.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin feature/add-bootstrap-page:feature/add-bootstrap-page
git switch feature/add-bootstrap-page

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff feature/add-bootstrap-page
git switch feature/add-bootstrap-page
git rebase main
git switch main
git merge --ff-only feature/add-bootstrap-page
git switch feature/add-bootstrap-page
git rebase main
git switch main
git merge --no-ff feature/add-bootstrap-page
git switch main
git merge --squash feature/add-bootstrap-page
git switch main
git merge --ff-only feature/add-bootstrap-page
git switch main
git merge feature/add-bootstrap-page
git push origin main
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
laurent/trakk!4
No description provided.