Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add config param SessionToken #575

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

zhaoyii
Copy link

@zhaoyii zhaoyii commented Mar 22, 2024

I use Litestream as my desktop software synchronization tool to synchronize sqlite to S3.

For security reasons, clients usually use Security Token Service(STS) to upload directly to S3. STS must include the access-key-id, secret-access-key, and session-token, so I added the session-token to the yaml configuration file and environment variables. and source code.

Note that when using session-token, you must set force-path-style: false, otherwise you will encounter an error:

SecondLevelDomainForbidden: Please use virtual hosted style to access.
status code: 403

It appears to be a permissions error caused by virtual hosted style.

I have tested the replicate and restore commands using the Alibaba Cloud Object Storage S3 API, and it works well. I do not have access to AWS S3, please help test with AWS. Thank you.

Other similar requirements: #407

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant