Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

feature #4147 : management of a cipher symmetric key for content encryption #20

Merged
merged 1 commit into from

2 participants

@mmoqui
Owner

A new directory is created (by default in SILVERPEAS_HOME_DATA) to contain some resources to protect. This directory is referred as the hidden silverpeas directory.
The cipher keys will be stored into it as hidden files.

Don't forget to merge also the branch feature-4147 in Silverpeas-Core and in Silverpeas-installer-package.

@mmoqui mmoqui feature #4147 : A new directory is created (by default in SILVERPEAS_…
…HOME_DATA) to contain some resources to protect. This directory is referred as the hidden silverpeas directory.
7d2bee7
@ehsavoie ehsavoie merged commit 7d2bee7 into Silverpeas:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 5, 2013
  1. @mmoqui

    feature #4147 : A new directory is created (by default in SILVERPEAS_…

    mmoqui authored
    …HOME_DATA) to contain some resources to protect. This directory is referred as the hidden silverpeas directory.
This page is out of date. Refresh to see the latest.
View
4 src/main/config/settings/jboss6/linux/SilverpeasSettings.xml
@@ -43,8 +43,11 @@
<var name="JAR_HOME" value="${SILVERPEAS_HOME}/jar"/>
<var name="TEMP_HOME" value="${SILVERPEAS_DATA_HOME}/temp"/>
<var name="LOG_HOME" value="${SILVERPEAS_HOME}/log"/>
+
+ <var name="HIDDEN_SILVERPEAS_DIR" value="${SILVERPEAS_DATA_HOME}/.silverpeas"/>
</global-vars>
+ <script name="setupSilverpeas.groovy"/>
<script name="updateJCRWorkspaceConfig.groovy"/>
<!-- PROPERTIES CONFIGURATION -->
@@ -73,6 +76,7 @@
<parameter key="uploadsIndexPath">${SILVERPEAS_DATA_HOME}/index</parameter>
<parameter key="tempPath">${TEMP_HOME}</parameter>
<parameter key="exportTemplatePath">${SILVERPEAS_DATA_HOME}/template-export</parameter>
+ <parameter key="securityPath">${HIDDEN_SILVERPEAS_DIR}</parameter>
</configfile>
<configfile name="beans/admin/admin.properties">
View
4 src/main/config/settings/jboss6/windows/SilverpeasSettings.xml
@@ -43,8 +43,11 @@
<var name="JAR_HOME" value="${SILVERPEAS_HOME}/jar"/>
<var name="TEMP_HOME" value="${SILVERPEAS_DATA_HOME}/temp"/>
<var name="LOG_HOME" value="${SILVERPEAS_HOME}/log"/>
+
+ <var name="HIDDEN_SILVERPEAS_DIR" value="${SILVERPEAS_DATA_HOME}/.silverpeas"/>
</global-vars>
+ <script name="setupSilverpeas.groovy"/>
<script name="updateJCRWorkspaceConfig.groovy"/>
<!-- PROPERTIES CONFIGURATION -->
@@ -73,6 +76,7 @@
<parameter key="uploadsIndexPath">${SILVERPEAS_DATA_HOME}/index</parameter>
<parameter key="tempPath">${TEMP_HOME}</parameter>
<parameter key="exportTemplatePath">${SILVERPEAS_DATA_HOME}/template-export</parameter>
+ <parameter key="securityPath">${HIDDEN_SILVERPEAS_DIR}</parameter>
</configfile>
<configfile name="beans/admin/admin.properties">
View
5 src/main/scripts/groovy/computeInstallationContext.groovy
@@ -24,7 +24,7 @@
import groovy.xml.StreamingMarkupBuilder ;
/**
- * Determine if JBoss has already been patched by Silverpeas or not.
+ * Determine if JBoss has already been configured for Silverpeas or not.
*/
def String jbossConfigFile = JBOSS_CONF + '/bootstrap/profile.xml';
@@ -43,4 +43,5 @@ if(children.size() == 1) {
// System.out.println('UPDATE');
gestionVariables.addVariable('INSTALL_CONTEXT', 'update');
gestionVariables.addVariable('KEY_APPURIS', '');
-}
+}
+
View
19 src/main/scripts/groovy/setupSilverpeas.groovy
@@ -0,0 +1,19 @@
+/**
+ * This script is for preparing the setting of the Silverpeas installation.
+ */
+
+import org.apache.commons.io.FileUtils
+
+/**
+ * create the hidden silverpeas directory.
+ */
+File silverpeasDir = new File(HIDDEN_SILVERPEAS_DIR)
+if (!silverpeasDir.exists()) {
+ FileUtils.forceMkdir(silverpeasDir)
+ silverpeasDir.setWritable(true)
+ silverpeasDir.setReadable(true)
+ silverpeasDir.setExecutable(true)
+
+ if (System.properties['os.name'].toLowerCase().contains('windows'))
+ Runtime.getRuntime().exec("attrib +H ${HIDDEN_SILVERPEAS_DIR}")
+}
Something went wrong with that request. Please try again.