Open eznix86 opened 8 months ago
Fixed with:
echo -n "admin:admin" | base64
# outputs YWRtaW46YWRtaW4=
services:
turso:
image: ghcr.io/tursodatabase/libsql-server:v0.23.0@sha256:2e5fca03933b72de748cc0370cdbf494b82e010c7df98904f6ab2ff06b571fce
ports:
- "8080:8080"
volumes:
- ./turso:/var/lib/sqld
environment:
- RUST_BACKTRACE=full
- SQLD_HTTP_AUTH=basic:YWRtaW46YWRtaW4=
If auth is not specified generate one and echo one:
if [ -z "${SQLD_HTTP_AUTH}" ]; then
# Generate a random password
PASSWORD=$(openssl rand -base64 10)
# Encode the username:password pair in Base64
ENCODED=$(echo -n "turso:${PASSWORD}" | base64)
# Display the encoded value
echo "${ENCODED}"
# Display the password in the specified format
echo "Basic HTTP_AUTH is \"turso:${PASSWORD}\""
else
echo "SQLD_HTTP_AUTH is already set."
fi
This should be fixed on main with the latest docker container and with https://github.com/tursodatabase/libsql/pull/1098
There is NO documentation specifying other method of authentication. Can you please redirect or write a quick doc to how to authentication without basic auth ?
Does this mean when the docker run there is no authentication ?
My config:
results: