feat: Rename password by encryption key
All checks were successful
/ pre-commit (push) Successful in 1m9s
All checks were successful
/ pre-commit (push) Successful in 1m9s
Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
parent
634326190c
commit
8e1dd686d3
16 changed files with 118 additions and 117 deletions
|
@ -19,7 +19,7 @@ The file format is **JSON**:
|
|||
* **database_type** (string): Type of the database (default "sqlite", "postgres" also supported)
|
||||
* **database_dsn** (string): Connection string for the database (default "collerd.db")
|
||||
* **node_id** (int): Number between 0 and 1023 to define the node generating identifiers (see [snowflake](https://github.com/bwmarrin/snowflake))
|
||||
* **password_length** (int): Number of characters for generated passwords (default 16)
|
||||
* **encryption_key_length** (int): Number of characters for generated encryption key (default 16)
|
||||
* **expiration_interval** (int): Number of seconds to wait between two expiration runs
|
||||
* **listen_address** (string): Address to listen for the web server (default "0.0.0.0")
|
||||
* **listen_port** (int): Port to listen for the web server (default 8080)
|
||||
|
@ -52,7 +52,7 @@ Create a note.
|
|||
|
||||
Body (JSON):
|
||||
* **content** (string): base64 encoded content (required)
|
||||
* **password** (string): use server-side encryption with this password
|
||||
* **encryption_key** (string): use server-side encryption with this encryption key
|
||||
* **encrypted** (bool): true if the content has been encrypted by the client
|
||||
* **expiration** (int): lifetime of the note in seconds (must be supported by the server)
|
||||
* **delete_after_read** (bool): delete the note after the first read
|
||||
|
@ -62,12 +62,12 @@ Response (JSON):
|
|||
* **id** (string): ID of the note
|
||||
|
||||
|
||||
### GET /\<id\>/\<password\>
|
||||
### GET /\<id\>/\<encryptionKey\>
|
||||
|
||||
> [!WARNING]
|
||||
> Potential password leak
|
||||
> Potential encryption key leak
|
||||
|
||||
Return content of a note encrypted by the given password.
|
||||
Return content of a note encrypted by the given encryption key.
|
||||
|
||||
### GET /\<id\>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue