Skip to content

refactor: move instruction_file_suffix from S3EncryptionClientConfig to get_object kwarg#159

Merged
texastony merged 1 commit into
tonyknap/examplesfrom
tonyknap/refactor-custom-instruction-file-suffix
Mar 27, 2026
Merged

refactor: move instruction_file_suffix from S3EncryptionClientConfig to get_object kwarg#159
texastony merged 1 commit into
tonyknap/examplesfrom
tonyknap/refactor-custom-instruction-file-suffix

Conversation

@texastony

Copy link
Copy Markdown

Move instruction_file_suffix from a client-level config attribute to a
per-request keyword argument (InstructionFileSuffix) on get_object().
This allows a single S3EncryptionClient to use different instruction file
suffixes per request, matching the spec requirement that custom suffixes
be supported on GetObject requests.

The suffix is passed through thread-local context to the plugin event
handler, following the same pattern as EncryptionContext.

Resolves #152.

…to get_object kwarg

Move instruction_file_suffix from a client-level config attribute to a
per-request keyword argument (InstructionFileSuffix) on get_object().
This allows a single S3EncryptionClient to use different instruction file
suffixes per request, matching the spec requirement that custom suffixes
be supported on GetObject requests.

The suffix is passed through thread-local context to the plugin event
handler, following the same pattern as EncryptionContext.

Resolves #152.
@texastony texastony merged commit 8a7b73d into tonyknap/examples Mar 27, 2026
5 checks passed
@texastony texastony deleted the tonyknap/refactor-custom-instruction-file-suffix branch March 31, 2026 19:53
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