com.gu.play.secretrotation

Members list

Type members

Classlikes

Attributes

Supertypes
class Object
trait Matchable
class Any

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
trait Phase[T]

A 'phase' holds the particular set of secrets that are active/accepted for a given period of time

A 'phase' holds the particular set of secrets that are active/accepted for a given period of time

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait PhaseAges
class PhaseAge
object Completed
object InProgress
object Upcoming
case class PhaseSchedule[T](initialPhase: Phase[T], phaseStarts: (Instant, Phase[T])*)

From hitting a datastore, we can determine a sequence of Phases, with their start and stop times.

From hitting a datastore, we can determine a sequence of Phases, with their start and stop times.

So for any given state, there is a phase schedule.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Supertypes
class Object
trait Matchable
class Any

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
case class TransitionTiming(overlapDuration: Duration, usageDelay: Duration)

Value parameters

overlapDuration

how long old secrets will be accepted after the new secret is actively used

usageDelay

don't use a new secret too quickly, other boxes need time to notice

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all