Skip to content

Commit

Permalink
#195 Add datastore password in status
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Jun 4, 2019
1 parent 593377e commit f8bd8e7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/org/thp/cortex/controllers/StatusCtrl.scala
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
package org.thp.cortex.controllers

import javax.inject.{Inject, Singleton}
import scala.concurrent.ExecutionContext

import play.api.Configuration
import play.api.http.Status
import play.api.libs.json.{JsBoolean, JsString, Json}
import play.api.libs.json.Json.toJsFieldJsValueWrapper
import play.api.libs.json.{JsBoolean, JsString, Json}
import play.api.mvc.{AbstractController, Action, AnyContent, ControllerComponents}

import com.sksamuel.elastic4s.http.ElasticDsl
import javax.inject.{Inject, Singleton}
import org.elasticsearch.client.Node
import org.thp.cortex.models.Worker

Expand Down Expand Up @@ -40,6 +40,7 @@ class StatusCtrl @Inject()(
"ElasticSearch client" getVersion(classOf[Node])
),
"config" Json.obj(
"protectDownloadsWith" configuration.get[String]("datastore.attachment.password"),
"authType" (authSrv match {
case multiAuthSrv: MultiAuthSrv
multiAuthSrv.authProviders.map { a
Expand Down

0 comments on commit f8bd8e7

Please sign in to comment.