Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
trekawek committed Feb 27, 2013
1 parent 1027edc commit 00eb882
Show file tree
Hide file tree
Showing 92 changed files with 11,980 additions and 26 deletions.
27 changes: 1 addition & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,29 +30,4 @@ Otherwise you may enter address and credentials explicitly:

## Configuration

After installation, go to the CQ *Tools* page and choose *Secure CQ* from the list on the left. The application tries to find author, publish and dispatcher URLs automatically, but you may want to confirm that they have been recognized correctly. In order to do that click *Edit* on the Settings bar and optionally correct addresses. That's it. Wait for a moment until the tests are done and check the results.<!--

## Command-line mode

Secure CQ may also be run in the stand-alone mode which doesn't require CQ. In order to build command-line JAR enter:

mvn clean package -Pcli

After that you'll find `secure-cq-VERSION-cli.jar` file in the `target` directory. Usage is simple:

java -jar secure-cq-VERSION-cli.jar [-a AUTHOR_URL] [-p PUBLISH_URL] [-d DISPATCHER_URL]

You may omit `https://` in the URLs. Example:

java -jar secure-cq-VERSION-cli.jar -a localhost:4502 -p localhost:4503 -d localhost:80

# Commercial Support

Technical support can be made available if needed. Please [contact us](https://www.cognifide.com/get-in-touch/) for more details.

We can:

* prioritize your feature request,
* tailor the product to your needs,
* provide a training for your engineers,
* support your development teams.-->
After installation, go to the CQ *Tools* page and choose *Secure CQ* from the list on the left. The application tries to find author, publish and dispatcher URLs automatically, but you may want to confirm that they have been recognized correctly. In order to do that click *Edit* on the Settings bar and optionally correct addresses. That's it. Wait for a moment until the tests are done and check the results.
271 changes: 271 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,271 @@
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns="https://maven.apache.org/POM/4.0.0"
xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://maven.apache.org/POM/4.0.0 https://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.cognifide.cq</groupId>
<artifactId>secure-cq</artifactId>
<version>1.0.1-SNAPSHOT</version>
<packaging>bundle</packaging>
<name>Secure CQ</name>
<description>
This application provides detailed security report for your CQ installation. After installation it's available in the 'Tools' page.
</description>
<inceptionYear>2013</inceptionYear>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.build.timestamp.format>yyyyMMdd-HHmmss</maven.build.timestamp.format>
<instance.url>https://localhost:4502</instance.url>
<instance.username>admin</instance.username>
<instance.password>admin</instance.password>
<assembly.name>secure-cq</assembly.name>
</properties>
<organization>
<name>Cognifide</name>
<url>https://www.cognifide.com</url>
</organization>
<developers>
<developer>
<name>Tomasz Rękawek</name>
<email>[email protected]</email>
<organization>Cognifide</organization>
</developer>
</developers>
<repositories>
<repository>
<id>adobe-public-releases</id>
<url>https://repo.adobe.com/nexus/content/groups/public</url>
</repository>
</repositories>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-scr-plugin</artifactId>
<version>1.7.2</version>
<executions>
<execution>
<id>generate-scr-scrdescriptor</id>
<goals>
<goal>scr</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.6.1</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.3.7</version>
<extensions>true</extensions>
<configuration>
<instructions>
<Bundle-Category>cq5</Bundle-Category>
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
<Bundle-Name>${project.name}</Bundle-Name>
<Bundle-Vendor>${project.organization.name}</Bundle-Vendor>
<Embed-Dependency>*;artifactId=httpclient|httpcore|gson|commons-codec|commons-lang|commons-cli</Embed-Dependency>
</instructions>
</configuration>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.3</version>
<configuration>
<finalName>${assembly.name}-${project.version}</finalName>
<appendAssemblyId>true</appendAssemblyId>
<descriptors>
<descriptor>src/main/assembly/${assembly.descriptor}.xml</descriptor>
</descriptors>
<archive>
<manifest>
<mainClass>com.cognifide.securecq.cli.Main</mainClass>
</manifest>
</archive>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.cognifide.maven.plugins</groupId>
<artifactId>maven-crx-plugin</artifactId>
<version>1.0.3</version>
<configuration>
<packageFileName>${project.build.directory}/${assembly.name}-${project.version}-${assembly.descriptor}.zip</packageFileName>
<packageName>${assembly.name}-${assembly.descriptor}</packageName>
<url>${instance.url}</url>
<user>${instance.username}</user>
<password>${instance.password}</password>
</configuration>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<!--This plugin's configuration is used to store Eclipse m2e settings
only. It has no influence on the Maven build itself. -->
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.apache.felix</groupId>
<artifactId>maven-scr-plugin</artifactId>
<versionRange>[1.7.2,)</versionRange>
<goals>
<goal>scr</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore></ignore>
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
<dependencies>
<!-- sling & jcr -->
<dependency>
<groupId>org.apache.sling</groupId>
<artifactId>org.apache.sling.api</artifactId>
<version>2.2.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.jackrabbit</groupId>
<artifactId>jackrabbit-api</artifactId>
<version>2.2.4</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.scr.annotations</artifactId>
<version>1.6.0</version>
<scope>provided</scope>
</dependency>
<!-- javax -->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jsp-api</artifactId>
<version>2.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.jcr</groupId>
<artifactId>jcr</artifactId>
<version>2.0</version>
<scope>provided</scope>
</dependency>
<!-- adobe -->
<dependency>
<groupId>com.day.cq</groupId>
<artifactId>cq-replication</artifactId>
<version>5.4.2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.day.cq</groupId>
<artifactId>cq-commons</artifactId>
<version>5.4.6</version>
<scope>provided</scope>
</dependency>
<!-- common java libs -->
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.6</version>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.7</version>
</dependency>
<dependency>
<groupId>commons-cli</groupId>
<artifactId>commons-cli</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.2.3</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpcore</artifactId>
<version>4.2.3</version>
</dependency>
<!-- gson -->
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.2.2</version>
</dependency>
</dependencies>
<profiles>
<profile>
<id>cq</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<assembly.descriptor>cq</assembly.descriptor>
</properties>
<dependencies>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.5.8</version>
<scope>provided</scope>
</dependency>
</dependencies>
</profile>
<profile>
<id>cli</id>
<properties>
<assembly.descriptor>cli</assembly.descriptor>
</properties>
<dependencies>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.7.2</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.2</version>
</dependency>
</dependencies>
</profile>
</profiles>
</project>
32 changes: 32 additions & 0 deletions src/main/assembly/cli.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<assembly
xmlns="https://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 https://maven.apache.org/xsd/assembly-1.1.2.xsd">
<id>cli</id>
<formats>
<format>jar</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<fileSets>
<fileSet>
<directory>src/main/cq</directory>
<outputDirectory>/cq</outputDirectory>
</fileSet>
</fileSets>
<dependencySets>
<dependencySet>
<outputDirectory>/</outputDirectory>
<useProjectArtifact>true</useProjectArtifact>
<unpack>true</unpack>
<scope>compile</scope>
<unpackOptions>
<excludes>
<exclude>META-INF/**</exclude>
<exclude>OSGI-INF/**</exclude>
<exclude>CQ-INF/**</exclude>
<exclude>*.jar</exclude>
</excludes>
</unpackOptions>
</dependencySet>
</dependencySets>
</assembly>
38 changes: 38 additions & 0 deletions src/main/assembly/cq.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<assembly
xmlns="https://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 https://maven.apache.org/xsd/assembly-1.1.2.xsd">
<id>cq</id>
<formats>
<format>zip</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<fileSets>
<fileSet>
<directory>src/main/cq/jcr_root</directory>
<outputDirectory>/jcr_root</outputDirectory>
<excludes>
<exclude>**/.vlt</exclude>
<exclude>/libs/**</exclude>
<exclude>/WEB-INF/**</exclude>
</excludes>
</fileSet>
<fileSet>
<directory>src/main/vault/common</directory>
<outputDirectory>/META-INF/vault</outputDirectory>
<filtered>false</filtered>
</fileSet>
<fileSet>
<directory>src/main/vault/full</directory>
<outputDirectory>/META-INF/vault</outputDirectory>
<filtered>true</filtered>
</fileSet>
<fileSet>
<directory>${project.build.directory}</directory>
<outputDirectory>/jcr_root/apps/cognifide/securecq/install</outputDirectory>
<includes>
<include>*.jar</include>
</includes>
</fileSet>
</fileSets>
</assembly>
19 changes: 19 additions & 0 deletions src/main/cq/jcr_root/.content.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="https://sling.apache.org/jcr/sling/1.0" xmlns:jcr="https://www.jcp.org/jcr/1.0" xmlns:rep="internal"
jcr:mixinTypes="[rep:AccessControllable,rep:RepoAccessControllable]"
jcr:primaryType="rep:root"
sling:resourceType="sling:redirect"
sling:target="/index.html">
<bin/>
<rep:repoPolicy/>
<rep:policy/>
<jcr:system/>
<var/>
<libs/>
<etc/>
<apps/>
<home/>
<tmp/>
<content/>
<crx/>
</jcr:root>
Loading

0 comments on commit 00eb882

Please sign in to comment.