Class/Object

com.lookout.borderpatrol.sessionx.SecretStores

ConsulSecretStore

Related Docs: object ConsulSecretStore | package SecretStores

Permalink

case class ConsulSecretStore(key: String, consulUrls: Set[URL], _secrets: Secrets, timer: Timer = HashedWheelTimer()) extends SecretStoreApi with Product with Serializable

A store to access the current and previous com.lookout.borderpatrol.sessionx.Secrets stored in the consul server.

Linear Supertypes
Serializable, Serializable, Product, Equals, SecretStoreApi, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ConsulSecretStore
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. SecretStoreApi
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ConsulSecretStore(key: String, consulUrls: Set[URL], _secrets: Secrets, timer: Timer = HashedWheelTimer())

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. var _secrets: Secrets

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. val consulUrls: Set[URL]

    Permalink
  8. def current: Secret

    Permalink

    Get the current secret from the cache layer

    Get the current secret from the cache layer

    Definition Classes
    ConsulSecretStoreSecretStoreApi
  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def fetchSecretsFromConsul(step: Int, result: Boolean, inputSecrets: Option[Secrets]): Future[(Option[ConsulResponse], Option[Secrets], Boolean)]

    Permalink

    Fetch the Secrets (i.e.

    Fetch the Secrets (i.e. value) from Consul - Skip this step, if result (input) is already successful

  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def find(f: (Secret) ⇒ Boolean): Option[Secret]

    Permalink

    Look for the Secret being checked in the function.

    Look for the Secret being checked in the function.

    Definition Classes
    ConsulSecretStoreSecretStoreApi
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. val key: String

    Permalink
  16. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. def pollSecrets(): Unit

    Permalink

    Poll worker that keep the in sync with the "secrets" in Consul.

    Poll worker that keep the in sync with the "secrets" in Consul. It uses 3 step process to do so: 1. get latest secrets from consul (if valid, set the timer until expiry) 2. update/put the new secrets in consul (if success, then that becomes new secret) 3. get the secrets again (if step2 failed, set the timer until secrets expiry)

    On any failure, the whole process is repeated after 1 minute

  20. def previous: Secret

    Permalink

    Get the previous secret from the cache layer

    Get the previous secret from the cache layer

    Definition Classes
    ConsulSecretStoreSecretStoreApi
  21. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  22. val timer: Timer

    Permalink
  23. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from SecretStoreApi

Inherited from AnyRef

Inherited from Any

Ungrouped