WIP: HTTP-01 solver that stores challenge tokens in FrostFS #4

Draft
potyarkin wants to merge 9 commits from potyarkin/lego:feature/http-01-frostfs-solver into tcl/http-01-frostfs-solver

9 commits

Author SHA1 Message Date
10ccc57587 frostfs: Add object ID to error messages
Signed-off-by: Vitaliy Potyarkin <v.potyarkin@yadro.com>
2024-10-17 11:21:50 +03:00
597d147c7d frostfs: Reject tokens with slash character
Current reverse proxy configs assume that token is a valid filename
with no nesting levels. It's better to reject unsupported tokens early

Signed-off-by: Vitaliy Potyarkin <v.potyarkin@yadro.com>
2024-10-16 17:16:35 +03:00
61ce76f648 frostfs: Expire saved tokens automatically
Signed-off-by: Vitaliy Potyarkin <v.potyarkin@yadro.com>
2024-10-16 16:18:20 +03:00
9ff9d5be25 frostfs: Fix invalid signatures issued by key from json
Ephemeral keys worked fine while keys loaded from filesystem would
generate invalid signatures. This was caused by destroying private key
material during calls to Wallet.Close() and Account.Close(). Since these
calls do nothing except wiping the private key, we omit them now.
Responsibility for private key security is delegated to caller of getKey()

Signed-off-by: Vitaliy Potyarkin <v.potyarkin@yadro.com>
2024-10-16 12:05:26 +03:00
254983fbe2 Fix linter errors
Signed-off-by: Vitaliy Potyarkin <v.potyarkin@yadro.com>
2024-10-15 16:52:53 +03:00
d8c8aba312 Add HTTP-01 solver with FrostFS backend
Signed-off-by: Vitaliy Potyarkin <v.potyarkin@yadro.com>
2024-10-15 16:52:34 +03:00
30563a0fb1 Open NEO wallet from file system
Signed-off-by: Vitaliy Potyarkin <v.potyarkin@yadro.com>
2024-10-15 15:45:50 +03:00
23e60f1e98 Read test connection credentials from env vars
Signed-off-by: Vitaliy Potyarkin <v.potyarkin@yadro.com>
2024-10-15 13:53:08 +03:00
bb87c097ba feat: FrostFS client for future HTTP-01 solver
Signed-off-by: Vitaliy Potyarkin <v.potyarkin@yadro.com>
2024-10-15 12:36:23 +03:00