Skip to content

Commit

Permalink
chore(run): add default configuration for both configuration files
Browse files Browse the repository at this point in the history
related to CAM-11298
  • Loading branch information
tmetzke authored Mar 5, 2020
1 parent 93e9c49 commit bc4a693
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 3 deletions.
11 changes: 10 additions & 1 deletion distro/run/assembly/resources/default.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
# Find more available configuration properties on the following pages of the documentaion.
# https://docs.camunda.org/manual/latest/user-guide/camunda-bpm-run/#configure-camunda-bpm-run
# https://docs.camunda.org/manual/latest/user-guide/spring-boot-integration/configuration/#camunda-engine-properties

camunda.bpm:
admin-user:
id: demo
password: demo
run:
# https://docs.camunda.org/manual/latest/user-guide/camunda-bpm-run/#cross-origin-resource-sharing
cors:
enabled: true
allowed-origins: "*"

# datasource configuration is required
spring.datasource:
url: jdbc:h2:./camunda-h2-dbs/process-engine;TRACE_LEVEL_FILE=0;DB_CLOSE_ON_EXIT=FALSE
url: jdbc:h2:./camunda-h2-default/process-engine;TRACE_LEVEL_FILE=0;DB_CLOSE_ON_EXIT=FALSE
driver-class-name: org.h2.Driver
username: sa
password: sa
57 changes: 56 additions & 1 deletion distro/run/assembly/resources/production.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,61 @@
# This configuration is intended for production use and was created with respect to the security guide.
# The provided links to documentation guides for each property will give more information about the purpose of each property.
# security guide: https://docs.camunda.org/manual/latest/user-guide/security/

camunda.bpm:
# https://docs.camunda.org/manual/latest/user-guide/security/#http-header-security-in-webapps
# https://docs.camunda.org/manual/latest/webapps/shared-options/header-security/
webapp.csrf:
enable-same-site-cookie: true
same-site-cookie-option: STRICT

# https://docs.camunda.org/manual/latest/user-guide/security/#authorization
# https://docs.camunda.org/manual/latest/user-guide/process-engine/authorization-service/
authorization.enabled: true

generic-properties.properties:
# https://docs.camunda.org/manual/latest/user-guide/security/#variable-values-from-untrusted-sources
deserializationTypeValidationEnabled: true
deserializationAllowedPackages:
deserializationAllowedClasses:
# https://docs.camunda.org/manual/latest/user-guide/security/#password-policy
# https://docs.camunda.org/manual/latest/user-guide/process-engine/password-policy/
enablePasswordPolicy: true

run:
# https://docs.camunda.org/manual/latest/user-guide/security/#authentication
# https://docs.camunda.org/manual/latest/user-guide/camunda-bpm-run/#authentication
auth.enabled: true

server:
# https://docs.camunda.org/manual/latest/user-guide/camunda-bpm-run/#https
# do not use the provided certificate in production
ssl:
key-store: classpath:keystore.p12
key-store-password: camunda
key-store-type: pkcs12
key-alias: camunda
key-password: camunda
port: 8443

# https://docs.camunda.org/manual/latest/user-guide/security/#http-header-security-in-webapps
# https://docs.camunda.org/manual/latest/webapps/shared-options/header-security/
servlet.session.cookie:
secure: true
http-only: true

# https://docs.camunda.org/manual/latest/user-guide/camunda-bpm-run/#logging
# https://docs.camunda.org/manual/latest/user-guide/logging/#process-engine
logging:
level.root: INFO
file: logs/camunda-bpm-run.log

# datasource configuration is required
# do not use the H2 databse in production
# https://docs.camunda.org/manual/latest/user-guide/camunda-bpm-run/#connect-to-a-database
# https://docs.camunda.org/manual/latest/user-guide/camunda-bpm-run/#database
spring.datasource:
url: jdbc:h2:./camunda-h2-dbs/process-engine;TRACE_LEVEL_FILE=0;DB_CLOSE_ON_EXIT=FALSE
url: jdbc:h2:./camunda-h2-test-production/process-engine;TRACE_LEVEL_FILE=0;DB_CLOSE_ON_EXIT=FALSE
driver-class-name: org.h2.Driver
username: sa
password: sa
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class CamundaBpmRunAuthenticationProperties {
public static final String DEFAULT_AUTH = "basic";
public static final List<String> AUTH_METHODS = Arrays.asList(DEFAULT_AUTH);

boolean enabled = true;
boolean enabled;
String authentication = DEFAULT_AUTH;

public boolean isEnabled() {
Expand Down

0 comments on commit bc4a693

Please sign in to comment.