Skip to content

Commit 68a5af9

Browse files
committed
also support getting S3 SSE C Key from KEY_FILE
1 parent cffa34c commit 68a5af9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.config/s3.config.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
)
2424
);
2525

26-
if (getenv('OBJECTSTORE_S3_SSE_C_KEY')) {
26+
if (getenv('OBJECTSTORE_S3_SSE_C_KEY_FILE') && file_exists(getenv('OBJECTSTORE_S3_SSE_C_KEY_FILE'))) {
27+
$CONFIG['objectstore']['arguments']['sse_c_key'] = trim(file_get_contents(getenv('OBJECTSTORE_S3_SSE_C_KEY_FILE'));
28+
} elseif (getenv('OBJECTSTORE_S3_SSE_C_KEY')) {
2729
$CONFIG['objectstore']['arguments']['sse_c_key'] = getenv('OBJECTSTORE_S3_SSE_C_KEY');
2830
}
2931

0 commit comments

Comments
 (0)