Skip to content

feat(api): add S3 addressing style configuration - #288

Open
ChandonPierre wants to merge 1 commit into
cloudnative-pg:mainfrom
ChandonPierre:cpierre/s3-addressing-style
Open

feat(api): add S3 addressing style configuration#288
ChandonPierre wants to merge 1 commit into
cloudnative-pg:mainfrom
ChandonPierre:cpierre/s3-addressing-style

Conversation

@ChandonPierre

Copy link
Copy Markdown

Some S3-compatible object stores require virtual-hosted-style requests and reject path-style requests.

Barman supports configuring --addressing-style: EnterpriseDB/barman@e81a459

barman-cloud supports passing this configuration in a round-about way via various additionalCommandArgs:

options = configuration.Wal.AppendArchiveAdditionalCommandArgs(options)

However that requires configuring the same command argument at every command builder that calls barman - additionally, the current interface does not support passing additional args to barman-cloud-backup-list, barman-cloud-backup-show, barman-cloud-backup-delete.

Rather than requiring virtual host consumers to duplicate the argument surface - add a top-level addressingStyle configuration that appends to command builder, so the single configuration parameter passes down to all calling instances of barman.

Some S3-compatible object stores require virtual-hosted-style requests and reject path-style requests.

Barman supports configuring `--addressing-style`: EnterpriseDB/barman@e81a459

`barman-cloud` supports passing this configuration in a round-about way via various `additionalCommandArgs`: https://github.com/cloudnative-pg/barman-cloud/blob/950b0f57e122e9bbfef059193801a34664cfd3ad/pkg/archiver/command.go#L51

However that requires configuring the same command argument at every command builder that calls `barman` - additionally, the current interface does not support passing additional args to `barman-cloud-backup-list`, `barman-cloud-backup-show`, `barman-cloud-backup-delete`.

Rather than requiring virtual host consumers to duplicate the argument surface - add a top-level `addressingStyle` configuration that appends to command builder, so the single configuration parameter passes down to all calling instances of `barman`.

Signed-off-by: Chandon Pierre <cpierre@coreweave.com>
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