Skip to content
This repository has been archived by the owner on Feb 26, 2021. It is now read-only.

Commit

Permalink
Added a new configuration parameter to enable/disable the kibana dash…
Browse files Browse the repository at this point in the history
…board installation on startup
  • Loading branch information
rseedorff committed Apr 18, 2020
1 parent 350648a commit 058de94
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
3 changes: 3 additions & 0 deletions scb-engine/src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ securecodebox.persistence.elasticsearch.auth.basic.password: ""
securecodebox.persistence.elasticsearch.auth.apikey.id: ""
securecodebox.persistence.elasticsearch.auth.apikey.secret: ""

# Initialize Kibana with some basic Security Dashboards and Visualisations if no .kibana index will be found on startup
securecodebox.persistence.elasticsearch.kibana.initialize: true


securecodebox.default.target.name: BodgeIT Public Host
securecodebox.default.target.location: bodgeit
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ public class ElasticSearchPersistenceProvider implements PersistenceProvider {
@Value("${securecodebox.persistence.elasticsearch.auth.apikey.secret}")
private String elasticsearchAuthApiKeySecret;

// Initialize Kibana with some basic Security Dashboards and Visualisations if no .kibana index will be found on startup
@Value("${securecodebox.persistence.elasticsearch.kibana.initialize:true}")
private boolean initializeKibana;

/**
* For developing convenience
* If this is true then the index where findings
Expand Down Expand Up @@ -155,7 +159,10 @@ private void init() {
// Checking once more, in case anything went wrong during index creation
if (indexExists(indexName)) {
initialized = true;
initializeKibana();
// Check if Kibana should be initialized with some default default security dashboards
if(initializeKibana) {
initializeKibana();
}
}
} else {
LOG.error("ElasticSearch Host doesn't respond. Please check if it is up and running");
Expand Down

0 comments on commit 058de94

Please sign in to comment.