Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

Project: Lease Manager #4

Open
fmitchell-r7 opened this issue Mar 31, 2016 · 0 comments
Open

Project: Lease Manager #4

fmitchell-r7 opened this issue Mar 31, 2016 · 0 comments
Labels
Milestone

Comments

@fmitchell-r7
Copy link
Contributor

The Lease Manager maintains state about a token or secret. It leverages Secret Providers (see #1) to handle interaction with Vault for getting and renewing tokens and secrets. Each Lease Manager is responsible for a single token or secret.

An instance of the LeaseManager class has the following methods:

constructor(provider)
Creates a new instance of the LeaseManager.

The provider argument is an instance that conforms to the Secret Provider interface (see #1).

initialize()
Starts the process of getting a token or secret from Vault. The status property changes to READY once the token/secret has been successfully retrieved.

status
A property with two possible states: PENDING or READY. The default state is PENDING. When the status property changes to READY the LeaseManager emits a "ready" event.

data
The token on secret returned by the Secret Provider. When the status is PENDING, data is null. When status is READY, data is the token or secret from the provider defined in the constructor.

Issues related to this project are filed under the "lease-manager" milestone.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant