Skip to content

feat: strip image metadata on upload with a per-bucket stripMetadata … - #14351

Merged
Meldiron merged 20 commits into
appwrite:mainfrom
jaysomani:feat/storage-strip-metadata
Oct 20, 2026
Merged

Meldiron merged 20 commits into
appwrite:mainfrom
jaysomani:feat/storage-strip-metadata

Conversation

@jaysomani

Copy link
Copy Markdown
Contributor

…setting

What does this PR do?

(Provide a description of what this PR does and why it's needed.)

Test Plan

(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work. Screenshots may also be helpful.)

Related PRs and Issues

  • (Related PR or issue)

Checklist

  • Have you read the Contributing Guidelines on issues?
  • If the PR includes a change to an API's metadata (desc, label, params, etc.), does it also include updated API specs and example docs?

@ghost

ghost commented Oct 12, 2026 •

Copy link
Copy Markdown

🟢 Tier S · Ready to merge

The incremental baseline cleanup introduces no issue in the reviewed change.

Adds opt-in per-bucket image metadata stripping for uploads, backed by ExifTool, a bucket schema migration, API support, and safeguards for S3 uploads. Adds Console controls, documentation and translations, Compose configuration, SDK type updates, and regression coverage. The newest changes also refresh the Console TypeScript error baseline to remove diagnostics resolved by the updated SDK types.

Latest changes: The latest commits remove resolved TypeScript diagnostics from the Console error baseline.

Verdict New comments Fixed Still open
💬 Commented 0 0 0

Note

@jaysomani does not have write access to this repository, so Hansi does not approve automatically. A maintainer can review and approve.

📂 Walkthrough · 35
File Change
.env, app/config/variables.php, docker-compose.yml Adds and forwards the ExifTool worker-pool configuration.
app/config/collections/common.php, src/Appwrite/Migration/Version/V25.php Persists the per-bucket stripMetadata setting and migrates existing buckets.
app/init/resources.php, src/Appwrite/Exiftool/Client.php, src/Appwrite/Exiftool/Exception.php Registers and implements the ExifTool client.
src/Appwrite/Platform/Modules/Storage/Http/Buckets/Create.php, src/Appwrite/Platform/Modules/Storage/Http/Buckets/Update.php, src/Appwrite/Platform/Modules/Storage/Http/Buckets/Files/Create.php Exposes bucket configuration and strips image metadata from eligible uploads.
src/Appwrite/Platform/Modules/S3/Http/S3/Base.php Prevents S3 operations that would rewrite uploaded images and opts S3-created buckets out.
src/Appwrite/Utopia/Database/Validator/Queries/Buckets.php, src/Appwrite/Utopia/Response/Model/Bucket.php, app/config/sdks/parameters.lock.json Adds query and response support and locks SDK parameter metadata for the bucket setting.
apps/console/package.json, apps/console/bun.lock, apps/console/src/components/pages/projects/$projectId/storage/_components/BucketSettings.tsx Pins the Console SDK preview package and adds the bucket setting control.
apps/console/src/content/docs/products/storage/buckets/index.markdoc, apps/console/src/lib/i18n/dictionaries/he/auth-storage.ts, apps/console/src/lib/i18n/dictionaries/ja/auth-storage.ts Documents the feature and adds Hebrew and Japanese translations.
apps/console/types-baseline.json Removes type-error baseline entries no longer reported with the updated SDK types.
tests/e2e/Services/Storage/StorageCustomServerTest.php, tests/resources/disk-a/tagged.jpg Covers bucket setting persistence, metadata stripping, and uploads that should remain unchanged.
tests/unit/Docker/Compose/GeneratorTest.php, tests/unit/Exiftool/ClientTest.php Adds Compose-generator and ExifTool client regression coverage.
.env Adds the default ExifTool pool-size setting.
app/config/collections/common.php Adds the bucket stripMetadata attribute and its default.
app/config/sdks/parameters.lock.json Locks SDK parameter metadata for the new bucket setting.
app/config/variables.php Documents the ExifTool pool-size environment variable.
app/init/resources.php Registers the ExifTool client resource.
apps/console/bun.lock Locks the Console SDK preview package for this pull request.
apps/console/package.json Pins the Console SDK to the preview package containing the updated API contract.
apps/console/src/components/pages/projects/$projectId/storage/_components/BucketSettings.tsx Adds the per-bucket metadata-stripping control.
apps/console/src/content/docs/products/storage/buckets/index.markdoc Documents metadata stripping, its supported formats, and limitations.
apps/console/src/lib/i18n/dictionaries/he/auth-storage.ts Adds Hebrew strings for the new Console setting.
apps/console/src/lib/i18n/dictionaries/ja/auth-storage.ts Adds Japanese strings for the new Console setting.
docker-compose.yml Forwards the ExifTool pool-size environment variable.
src/Appwrite/Exiftool/Client.php Implements the ExifTool service client.
src/Appwrite/Exiftool/Exception.php Defines ExifTool client exception handling.
src/Appwrite/Migration/Version/V25.php Migrates existing bucket collections to include stripMetadata.
src/Appwrite/Platform/Modules/Storage/Http/Buckets/Create.php Accepts the setting during bucket creation and defaults it to disabled.
src/Appwrite/Platform/Modules/Storage/Http/Buckets/Files/Create.php Strips metadata from eligible uploaded images and records rewritten file sizes.
src/Appwrite/Platform/Modules/Storage/Http/Buckets/Update.php Accepts updates to stripMetadata while preserving the value when omitted.
src/Appwrite/Utopia/Database/Validator/Queries/Buckets.php Allows filtering bucket queries by stripMetadata.
src/Appwrite/Utopia/Response/Model/Bucket.php Includes stripMetadata in bucket responses.
tests/e2e/Services/Storage/StorageCustomServerTest.php Covers bucket configuration, metadata removal, unchanged uploads, and update persistence.
tests/resources/disk-a/tagged.jpg Adds a tagged image fixture for metadata-stripping coverage.
tests/unit/Docker/Compose/GeneratorTest.php Covers generated Compose configuration for ExifTool.
tests/unit/Exiftool/ClientTest.php Covers ExifTool client behavior.

Reviewed the commits since 31794a6 · Details · Comment @hansi-codes review to re-run, or mention @hansi-codes with a question.

@ghost ghost left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔵 Tier A · See the inline comments. Summary

Comment thread tests/unit/Storage/ExifToolTest.php Resolved
@jaysomani
jaysomani marked this pull request as draft October 12, 2026 05:29
@jaysomani
jaysomani marked this pull request as ready for review October 15, 2026 08:30

@ghost ghost left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔵 Tier A · See the inline comments. Summary

Comment thread tests/unit/Storage/ExifToolTest.php Resolved

@ghost ghost left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Tier S · Looks good to merge. Summary

Comment thread app/config/collections/common.php Resolved
@appwrite

appwrite Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

New Console

Project ID: new-console

Sites (1)
Site Status Logs Preview QR
 New Console
new-console
Queued Queued Authorize Preview URL QR Code

Tip

Appwrite has crossed the 50K GitHub stars milestone with hundreds of active contributors

ghost
ghost previously requested changes Oct 19, 2026

@ghost ghost left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Tier B · 1 blocking finding to address. Summary

@pkg-pr-new

pkg-pr-new Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/appwrite/appwrite/@appwrite.io/console@14351

commit: 9bed6ad

@ghost ghost left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Tier S · Looks good to merge. Summary

@ghost
ghost dismissed their stale review October 19, 2026 16:55

The findings that requested changes are resolved. See the summary comment for what is still open.

Meldiron and others added 2 commits October 20, 2026 09:47
The sites create views now link to the combined create page, and the
pinned preview SDK accepts null where the databases hooks pass nullable
model fields, so 26 baselined errors no longer occur.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Meldiron
Meldiron merged commit d822760 into appwrite:main Oct 20, 2026
69 of 70 checks passed
@ChiragAgg5k ChiragAgg5k mentioned this pull request Oct 21, 2026
6 tasks
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