Skip to content

S3: implement support for session token - #156

Merged
ahouene merged 11 commits into
PowerDNS:mainfrom
ahouene:s3-session-token
Oct 28, 2026
Merged

ahouene merged 11 commits into
PowerDNS:mainfrom
ahouene:s3-session-token

Conversation

@ahouene

@ahouene ahouene commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

This PR adds support for session tokens to be used along the access key id and the secret access key in the S3 backend, directly or through a file.
It also adds support for trailing newlines in those files.

The tests have been updated to take these additions into account. The test against the full test suite in case credential files are used is being removed because it doesn't bring much and just makes the tests longer. Instead, we test that the S3 Backend is correctly created and can (or cannot) perform a write operation with various file contents.

@ahouene
ahouene requested a review from neilcook August 11, 2026 15:40
@ahouene ahouene self-assigned this Aug 11, 2026
@ahouene
ahouene requested a review from Luit August 11, 2026 15:46
Comment thread backends/s3/s3.go Resolved
Comment thread backends/s3/credentials.go Resolved
Comment thread backends/s3/credentials.go Resolved
@ahouene ahouene changed the title S3: implements support for session token S3: implement support for session token Oct 27, 2026
@ahouene
ahouene requested a review from neilcook October 27, 2026 14:04

@neilcook neilcook left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ahouene
ahouene merged commit dbb90f3 into PowerDNS:main Oct 28, 2026
2 checks passed
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.

2 participants