tag | 1814c7970ef34f4b0aa373edb6d59186d54cadfd | |
---|---|---|
tagger | Oliver Lietz <olli@apache.org> | Sun Sep 01 17:47:22 2019 +0200 |
object | 4bb1a239054339e00ed8246fe5c68e35a5205aff |
[maven-release-plugin] copy for tag org.apache.sling.clam-1.1.0
commit | 4bb1a239054339e00ed8246fe5c68e35a5205aff | [log] [tgz] |
---|---|---|
author | Oliver Lietz <olli@apache.org> | Sun Sep 01 17:47:07 2019 +0200 |
committer | Oliver Lietz <olli@apache.org> | Sun Sep 01 17:47:07 2019 +0200 |
tree | 4218695094317b5005ea5109abaca0e592e1dcca | |
parent | 1c39a6ad2e0a92404c139c37aeeba3fc4a7e9665 [diff] |
[maven-release-plugin] prepare release org.apache.sling.clam-1.1.0
This module is part of the Apache Sling project.
This module provides support for Clam in Sling.
NodeDescendingJcrPropertyDigger
starts descending from a given root path, digs properties based on type, path and length and creates scan jobs.
NodeObservingJcrPropertyDigger
observes Oak's NodeStore, digs properties based on type, path and length and creates scan jobs.
NOTE: Ensure to exclude scan jobs in /var/eventing
and scan results in /var/clam/results
from scanning.
JcrPropertyScanJobConsumer
processes scan jobs by reading property values from JCR, sends data to Clam service for scanning and invokes optional scan result handlers.
The service requires read-only access to all paths to be scanned which can be allowed by adding the service user mapping org.apache.sling.clam=sling-readall
.
EventPublishingScanResultHandler
publishes scan results via OSGi Event Admin Service.
ResourcePersistingScanResultHandler
persists scan results via ResourceResolver in JCR. The result handler requires write access to a configurable root path for subservice result-writer
.
Scanning all binaries and strings in AEM Assets:
curl -v -u username:password -F path=/content/dam -F pattern=^/.*$ -F propertyTypes[]=Binary -F propertyTypes[]=String http://localhost:4502/system/clam-jcr-scan
Observing Sling Clam events:
curl -v -u username:password http://localhost:4502/system/clam-events
^\/(?!.*\/rep:principalName)(.*)$
Integration tests require a running Clam daemon and are not enabled by default.
Enable the it
profile to run integration tests with Docker container:
mvn clean install -Pit
To disable Testcontainers and use an external Clam daemon set clamd.testcontainer
to false
:
mvn clean install -Pit -Dclamd.testcontainer=false
To override default Clam daemon host localhost
and port 3310
set clamd.host
and clamd.port
:
mvn clean install -Pit -Dclamd.testcontainer=false -Dclamd.host=localhost -Dclamd.port=3310