One-time keys #50

Open
opened 2024-03-09 11:33:10 +01:00 by Jef Roosens · 0 comments

Sometimes it would be useful to let someone else publish an entry (probably a
file) to your server. However, you don't want to simply give them your API key
as this would be a rather big leak.

As an alternative, I'd like to introduce one-time tokens. When generating a
one-time token, a new entry would be generated on a random or chosen key (e.g.
/abcd). The server would generate a random token that is then stored in the
LSM store, and returned to the caller. This token could then be used as a
one-time password for uploading a file to only that generated key. The uploaded
entry would then replace the existing entry in the LSM store, automatically
expiring the key.

Sometimes it would be useful to let someone else publish an entry (probably a file) to your server. However, you don't want to simply give them your API key as this would be a rather big leak. As an alternative, I'd like to introduce one-time tokens. When generating a one-time token, a new entry would be generated on a random or chosen key (e.g. `/abcd`). The server would generate a random token that is then stored in the LSM store, and returned to the caller. This token could then be used as a one-time password for uploading a file to only that generated key. The uploaded entry would then replace the existing entry in the LSM store, automatically expiring the key.
Jef Roosens added the
Kind/Enhancement
label 2024-03-09 11:33:10 +01:00
Jef Roosens added
Kind/Feature
and removed
Kind/Enhancement
labels 2024-03-09 14:31:01 +01:00
Jef Roosens added this to the 0.3.0 project 2024-08-26 10:00:44 +02:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
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: Chewing_Bever/lander#50
There is no content yet.