Add temporary testing conf, logging
All checks were successful
/ docker (push) Successful in 3m58s

This commit is contained in:
Melody Becker 2025-04-14 08:01:40 +02:00
parent f4e876a4b1
commit 3233f8c27f
No known key found for this signature in database
2 changed files with 63 additions and 1 deletions

51
temp.toml Normal file
View file

@ -0,0 +1,51 @@
[general]
protocol = "https"
domain = "lhr.life"
subdomain = "9f00dbe9248b25"
private_port = 8080
public_port = 443
[ssl]
handle_ssl = false
[admin]
username = "server-admin"
first_time_setup_otp = "Example otp password"
profiling_password = ""
allow_registration = true
[webauthn]
display_name = "Linstrom"
[storage]
host = "localhost"
username = "linstrom"
password = "linstrom"
db_name = "linstrom"
port = 5432
ssl_mode = "disable"
time_zone = "Europe/Berlin"
max_in_memory_cache_size = 1000000
max_in_memory_cache_ttl = 5
max_reconnect_attempts = 3
[mail]
host = "localhost"
port = 587
username = "linstrom"
password = "linstrom"
[self]
server_actor_display_name = "Server actor"
server_display_name = "Linstrom"
[s3]
key_id = "GK458f9d7315fc6c9686c41045"
secret = "b6d1c8ec97052b8a40ae953de34f336170d85554fbe7875acce0ff51464724ee"
region = "garage"
endpoint = "http://localhost:3900"
use_ssl = false
bucket_name = "linstrom-bucket"
[experimental]
use_ed25519_keys = false

View file

@ -20,8 +20,19 @@ func CreateSignatureRSA(
privateKeyBytes []byte, privateKeyBytes []byte,
) (string, []string, error) { ) (string, []string, error) {
message, usedHeaders := genPreSignatureString(method, target, headers) message, usedHeaders := genPreSignatureString(method, target, headers)
log.Error().Str("message", message)
signed, err := shared.Sign(message, privateKeyBytes, true) signed, err := shared.Sign(message, privateKeyBytes, true)
return base64.StdEncoding.EncodeToString(signed), usedHeaders, err if err != nil {
return "", nil, err
}
encoded := base64.StdEncoding.EncodeToString(signed)
log.Debug().
Str("raw-message", message).
Bytes("signed", signed).
Str("encoded", encoded).
Strs("header-order", usedHeaders).
Msg("Signing complete")
return encoded, usedHeaders, nil
} }
// Generate the signed string of the headers, method and target // Generate the signed string of the headers, method and target