You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "oscerd (via GitHub)" <gi...@apache.org> on 2026/04/29 11:23:44 UTC
[PR] CAMEL-23339: camel-azure-storage-blob - Add support for immutability policy and legal hold operations [camel]
oscerd opened a new pull request, #22826:
URL: https://github.com/apache/camel/pull/22826
## Summary
Adds support for Azure Blob Storage immutability policies and legal holds to the
`camel-azure-storage-blob` component (CAMEL-23339). Both features are required for
compliance and quarantine workflows where blobs must remain unmodified during
processing (e.g. malware scanning).
Two new producer operations:
- **`setBlobLegalHold`** — sets/clears a legal hold on a blob. The boolean flag is read
from the new `CamelAzureStorageBlobLegalHold` header or the message body. While a
legal hold is set, the blob cannot be modified or deleted until the hold is cleared.
- **`setBlobImmutabilityPolicy`** — applies a time-based retention policy. The expiry
time (`OffsetDateTime`) and policy mode (`BlobImmutabilityPolicyMode`, default
`UNLOCKED`) are read from the new
`CamelAzureStorageBlobImmutabilityPolicyExpiryTime` /
`CamelAzureStorageBlobImmutabilityPolicyMode` headers. A pre-built
`BlobImmutabilityPolicy` can also be supplied via the message body or the
`CamelAzureStorageBlobImmutabilityPolicy` header.
## Changes
- `BlobOperationsDefinition` — new `setBlobLegalHold` and `setBlobImmutabilityPolicy`
enum values
- `BlobConstants` — four new headers (`BLOB_LEGAL_HOLD`, `BLOB_IMMUTABILITY_POLICY`,
`BLOB_IMMUTABILITY_POLICY_EXPIRY_TIME`, `BLOB_IMMUTABILITY_POLICY_MODE`)
- `BlobExchangeHeaders` — readers and writers for the new headers
- `BlobConfigurationOptionsProxy` — resolves the new options from headers
- `BlobClientWrapper` — `setLegalHold` and `setImmutabilityPolicy` delegating to the
Azure SDK `BlobClientBase.setLegalHoldWithResponse` /
`setImmutabilityPolicyWithResponse`
- `BlobOperations` — `setBlobLegalHold` and `setBlobImmutabilityPolicy` methods, with
validation of required inputs and sensible defaulting of policy mode to `UNLOCKED`
- `BlobProducer` — dispatches the two new operations
- Unit tests covering header- and body-driven inputs, mode defaulting and
missing-input validation
- Documentation update with operation table entries and usage examples
- Catalog / endpoint DSL regenerated
## Test plan
- [x] `mvn install` in `components/camel-azure/camel-azure-storage-blob` (50 tests
passing)
- [x] Full root build `mvn clean install -DskipTests -Dquickly` succeeds
- [x] Endpoint DSL regenerated and committed
- [x] Catalog metadata regenerated and committed
- [ ] Reviewer to validate API usage if possible against a real storage account with
immutable storage / versioning enabled
_Claude Code on behalf of Andrea Cosentino_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] CAMEL-23339: camel-azure-storage-blob - Add support for immutability policy and legal hold operations [camel]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #22826:
URL: https://github.com/apache/camel/pull/22826#issuecomment-4343228953
:star2: Thank you for your contribution to the Apache Camel project! :star2:
:robot: CI automation will test this PR automatically.
:camel: Apache Camel Committers, please review the following items:
* First-time contributors **require MANUAL approval** for the GitHub Actions to run
* You can use the command `/component-test (camel-)component-name1 (camel-)component-name2..` to request a test from the test bot although they are normally detected and executed by CI.
* You can label PRs using `skip-tests` and `test-dependents` to fine-tune the checks executed by this PR.
* Build and test logs are available in the summary page. **Only** [Apache Camel committers](https://camel.apache.org/community/team/#committers) have access to the summary.
:warning: Be careful when sharing logs. Review their contents before sharing them publicly.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] CAMEL-23339: camel-azure-storage-blob - Add support for immutability policy and legal hold operations [camel]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #22826:
URL: https://github.com/apache/camel/pull/22826#issuecomment-4343378889
<!-- ci-tested-modules -->
:test_tube: **CI tested the following changed modules:**
- `catalog/camel-catalog`
- `components/camel-azure/camel-azure-storage-blob`
- `dsl/camel-endpointdsl`
<details><summary>All tested modules (10 modules)</summary>
- Camel :: Azure :: Storage Blob
- Camel :: Catalog :: Camel Catalog
- Camel :: Endpoint DSL
- Camel :: JBang :: MCP
- Camel :: JBang :: Plugin :: Route Parser
- Camel :: JBang :: Plugin :: TUI
- Camel :: JBang :: Plugin :: Validate
- Camel :: Launcher :: Container
- Camel :: YAML DSL :: Validator
- Camel :: YAML DSL :: Validator Maven Plugin
</details>
---
:gear: [View full build and test results](https://github.com/apache/camel/actions/runs/25106045953)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] CAMEL-23339: camel-azure-storage-blob - Add support for immutability policy and legal hold operations [camel]
Posted by "oscerd (via GitHub)" <gi...@apache.org>.
oscerd merged PR #22826:
URL: https://github.com/apache/camel/pull/22826
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org