You can use still all combinations of push/pull/wrapped modes by providing a configured AppRoleAuthentication bean within the bootstrap context. Spring Cloud Vault cannot derive all possible AppRole combinations from the configuration properties.AppRole authentication is limited to simple pull mode using reactive infrastructure. Full pull mode is not yet supported. Using Spring Cloud Vault with the Spring WebFlux stack enables Vault’s reactive auto-configuration which can be disabled by setting spring.cloud.vault.reactive.enabled=false.bootstrap.yml with all AppRole authentication propertiesspring.cloud.vault:
authentication: APPROLE
app-role:
role-id: bde2076b-cccb-3cf0-d57e-bca7b1e83a52
secret-id: 1696536f-1976-73b1-b241-0b4213908d39
role: my-role
app-role-path: approlerole-id sets the RoleId.secret-id sets the SecretId. SecretId can be omitted if AppRole is configured without requiring SecretId (See bind_secret_id).role: sets the AppRole name for pull mode.app-role-path sets the path of the approle authentication mount to use.See also: Vault Documentation: Using the AppRole auth backendAWS-EC2 authenticationThe aws-ec2
auth backend provides a secure introduction mechanism
for AWS EC2 instances, allowing automated retrieval of a Vault
token. Unlike most Vault authentication backends, this backend
does not require first-deploying, or provisioning security-sensitive
credentials (tokens, username/password, client certificates, etc.).
Instead, it treats AWS as a Trusted Third Party and uses the
cryptographically signed dynamic metadata information that uniquely
represents each EC2 instance.bootstrap.yml using AWS-EC2 Authenticationspring.cloud.vault:
authentication: AWS_EC2AWS-EC2 authentication enables nonce by default to follow
the Trust On First Use (TOFU) principle. Any unintended party that
gains access to the PKCS#7 identity metadata can authenticate
against Vault.During the first login, Spring Cloud Vault generates a nonce
that is stored in the auth backend aside the instance Id.
Re-authentication requires the same nonce to be sent. Any other
party does not have the nonce and can raise an alert in Vault for
further investigation.The nonce is kept in memory and is lost during application restart.
You can configure a static nonce with spring.cloud.vault.aws-ec2.nonce.AWS-EC2 authentication roles are optional and default to the AMI.
You can configure the authentication role by setting the
spring.cloud.vault.aws-ec2.role property.bootstrap.yml with configured rolespring.cloud.vault:
authentication: AWS_EC2
aws-ec2:
role: application-serverbootstrap.yml with all AWS EC2 authentication propertiesspring.cloud.vault:
authentication: AWS_EC2
aws-ec2:
role: application-server
aws-ec2-path: aws-ec2
identity-document: http://...
nonce: my-static-nonceauthentication setting this value to AWS_EC2 selects the AWS EC2
authentication methodrole sets the name of the role against which the login is being attempted.aws-ec2-path sets the path of the AWS EC2 mount to useidentity-document sets URL of the PKCS#7 AWS EC2 identity documentnonce used for AWS-EC2 authentication. An empty nonce defaults to nonce generationSee also: Vault Documentation: Using the aws auth backendAWS-IAM authenticationThe aws backend provides a secure
authentication mechanism for AWS IAM roles, allowing the automatic authentication with
vault based on the current IAM role of the running application.
Unlike most Vault authentication backends, this backend
does not require first-deploying, or provisioning security-sensitive
credentials (tokens, username/password, client certificates, etc.).
Instead, it treats AWS as a Trusted Third Party and uses the
4 pieces of information signed by the caller with their IAM credentials
to verify that the caller is indeed using that IAM role.The current IAM role the application is running in is automatically calculated.
If you are running your application on AWS ECS then the application
will use the IAM role assigned to the ECS task of the running container.
If you are running your application naked on top of an EC2 instance then
the IAM role used will be the one assigned to the EC2 instance.When using the AWS-IAM authentication you must create a role in Vault
and assign it to your IAM role. An empty role defaults to
the friendly name the current IAM role.bootstrap.yml with required AWS-IAM Authentication propertiesspring.cloud.vault:
authentication: AWS_IAMbootstrap.yml with all AWS-IAM Authentication propertiesspring.cloud.vault:
authentication: AWS_IAM
aws-iam:
role: my-dev-role
aws-path: aws
server-id: some.server.namerole sets the name of the role against which the login is being attempted. This should be bound to your IAM role. If one is not supplied then the friendly name of the current IAM user will be used as the vault role.aws-path sets the path of the AWS mount to useserver-id sets the value to use for the X-Vault-AWS-IAM-Server-ID header preventing certain types of replay attacks.AWS-IAM requires the AWS Java SDK dependency (com.amazonaws:aws-java-sdk-core)
as the authentication implementation uses AWS SDK types for credentials and request signing.See also: Vault Documentation: Using the aws auth backendTLS certificate authenticationThe cert auth backend allows authentication using SSL/TLS client
certificates that are either signed by a CA or self-signed.To enable cert authentication you need to:Use SSL, see Configure a Java Keystore that contains the client
certificate and the private keySet the spring.cloud.vault.authentication to CERTbootstrap.ymlspring.cloud.vault:
authentication: CERT
ssl:
key-store: classpath:keystore.jks
key-store-password: changeit
cert-auth-path: certSee also: Vault Documentation: Using the Cert auth backendCubbyhole authenticationCubbyhole authentication uses Vault primitives to provide a secured authentication
workflow. Cubbyhole authentication uses tokens as primary login method.
An ephemeral token is used to obtain a second, login VaultToken from Vault’s
Cubbyhole secret backend. The login token is usually longer-lived and used to
interact with Vault. The login token will be retrieved from a wrapped
response stored at /cubbyhole/response.Creating a wrapped tokenResponse Wrapping for token creation requires Vault 0.6.0 or higher.Creating and storing tokens$ vault token-create -wrap-ttl="10m"
Key Value
--- -----
wrapping_token: 397ccb93-ff6c-b17b-9389-380b01ca2645
wrapping_token_ttl: 0h10m0s
wrapping_token_creation_time: 2016-09-18 20:29:48.652957077 +0200 CEST
wrapped_accessor: 46b6aebb-187f-932a-26d7-4f3d86a68319bootstrap.ymlspring.cloud.vault:
authentication: CUBBYHOLE
token: 397ccb93-ff6c-b17b-9389-380b01ca2645See also:Vault Documentation: TokensVault Documentation: Cubbyhole Secret BackendVault Documentation: Response WrappingKubernetes authenticationKubernetes authentication mechanism (since Vault 0.8.3) allows to authenticate with Vault using a Kubernetes Service Account Token.
The authentication is role based and the role is bound to a service account name and a namespace.A file containing a JWT token for a pod’s service account is automatically mounted at /var/run/secrets/kubernetes.io/serviceaccount/token.bootstrap.yml with all Kubernetes authentication propertiesspring.cloud.vault:
authentication: KUBERNETES
kubernetes:
role: my-dev-role
kubernetes-path: kubernetes
service-account-token-file: /var/run/secrets/kubernetes.io/serviceaccount/tokenrole sets the Role.kubernetes-path sets the path of the Kubernetes mount to use.service-account-token-file sets the location of the file containing the Kubernetes Service Account Token. Defaults to /var/run/secrets/kubernetes.io/serviceaccount/token.See also:Vault Documentation: KubernetesKubernetes Documentation: Configure Service Accounts for PodsSecret BackendsGeneric BackendSpring Cloud Vault supports at the basic level the generic secret
backend. The generic secret backend allows storage of arbitrary
values as key-value store. A single context can store one or many
key-value tuples. Contexts can be organized hierarchically.
Spring Cloud Vault allows using the Application name
and a default context name (application) in combination with active
profiles./secret/{application}/{profile}
/secret/{application}
/secret/{default-context}/{profile}
/secret/{default-context}The application name is determined by the properties:spring.cloud.vault.generic.application-namespring.cloud.vault.application-namespring.application.nameSecrets can be obtained from other contexts within the generic backend by adding their
paths to the application name, separated by commas. For example, given the application
name usefulapp,mysql1,projectx/aws, each of these folders will be used:/secret/usefulapp/secret/mysql1/secret/projectx/awsSpring Cloud Vault adds all active profiles to the list of possible context paths.
No active profiles will skip accessing contexts with a profile name.Properties are exposed like they are stored (i.e. without additional prefixes).spring.cloud.vault:
generic:
enabled: true
backend: secret
profile-separator: '/'
default-context: application
application-name: my-appenabled setting this value to false disables the secret backend
config usagebackend sets the path of the secret mount to usedefault-context sets the context name used by all applicationsapplication-name overrides the application name for use in the generic backendprofile-separator separates the profile name from the context in
property sources with profilesThe key-value secret backend can be operated in versioned (v2) and non-versioned (v1) modes. Depending on the mode of operation, a different API is required to access secrets. Make sure to enable generic secret backend usage for non-versioned key-value backends and kv secret backend usage for versioned key-value backends.See also: Vault Documentation: Using the KV Secrets Engine - Version 1 (generic secret backend)Versioned Key-Value BackendSpring Cloud Vault supports the versioned Key-Value secret
backend. The key-value backend allows storage of arbitrary
values as key-value store. A single context can store one or many
key-value tuples. Contexts can be organized hierarchically.
Spring Cloud Vault allows using the Application name
and a default context name (application) in combination with active
profiles./secret/{application}/{profile}
/secret/{application}
/secret/{default-context}/{profile}
/secret/{default-context}The application name is determined by the properties:spring.cloud.vault.kv.application-namespring.cloud.vault.application-namespring.application.nameSecrets can be obtained from other contexts within the key-value backend by adding their
paths to the application name, separated by commas. For example, given the application
name usefulapp,mysql1,projectx/aws, each of these folders will be used:/secret/usefulapp/secret/mysql1/secret/projectx/awsSpring Cloud Vault adds all active profiles to the list of possible context paths.
No active profiles will skip accessing contexts with a profile name.Properties are exposed like they are stored (i.e. without additional prefixes).Spring Cloud Vault adds the data/ context between the mount path and the actual context path.spring.cloud.vault:
kv:
enabled: true
backend: secret
profile-separator: '/'
default-context: application
application-name: my-appenabled setting this value to false disables the secret backend
config usagebackend sets the path of the secret mount to usedefault-context sets the context name used by all applicationsapplication-name overrides the application name for use in the generic backendprofile-separator separates the profile name from the context in
property sources with profilesThe key-value secret backend can be operated in versioned (v2) and non-versioned (v1) modes. Depending on the mode of operation, a different API is required to access secrets. Make sure to enable generic secret backend usage for non-versioned key-value backends and kv secret backend usage for versioned key-value backends.See also: Vault Documentation: Using the KV Secrets Engine - Version 2 (versioned key-value backend)ConsulSpring Cloud Vault can obtain credentials for HashiCorp Consul.
The Consul integration requires the spring-cloud-vault-config-consul
dependency.pom.xml<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-vault-config-consul</artifactId>
<version>2.0.3.RELEASE</version>
</dependency>
</dependencies>The integration can be enabled by setting
spring.cloud.vault.consul.enabled=true (default false) and
providing the role name with spring.cloud.vault.consul.role=….The obtained token is stored in spring.cloud.consul.token
so using Spring Cloud Consul can pick up the generated
credentials without further configuration. You can configure
the property name by setting spring.cloud.vault.consul.token-property.spring.cloud.vault:
consul:
enabled: true
role: readonly
backend: consul
token-property: spring.cloud.consul.tokenenabled setting this value to true enables the Consul backend config usagerole sets the role name of the Consul role definitionbackend sets the path of the Consul mount to usetoken-property sets the property name in which the Consul ACL token is storedSee also: Vault Documentation: Setting up Consul with VaultRabbitMQSpring Cloud Vault can obtain credentials for RabbitMQ.The RabbitMQ integration requires the spring-cloud-vault-config-rabbitmq
dependency.pom.xml<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-vault-config-rabbitmq</artifactId>
<version>2.0.3.RELEASE</version>
</dependency>
</dependencies>The integration can be enabled by setting
spring.cloud.vault.rabbitmq.enabled=true (default false)
and providing the role name with spring.cloud.vault.rabbitmq.role=….Username and password are stored in spring.rabbitmq.username
and spring.rabbitmq.password so using Spring Boot will pick up the generated
credentials without further configuration. You can configure the property names
by setting spring.cloud.vault.rabbitmq.username-property and
spring.cloud.vault.rabbitmq.password-property.spring.cloud.vault:
rabbitmq:
enabled: true
role: readonly
backend: rabbitmq
username-property: spring.rabbitmq.username
password-property: spring.rabbitmq.passwordenabled setting this value to true enables the RabbitMQ backend config usagerole sets the role name of the RabbitMQ role definitionbackend sets the path of the RabbitMQ mount to useusername-property sets the property name in which the RabbitMQ username is storedpassword-property sets the property name in which the RabbitMQ password is storedSee also: Vault Documentation: Setting up RabbitMQ with VaultAWSSpring Cloud Vault can obtain credentials for AWS.The AWS integration requires the spring-cloud-vault-config-aws
dependency.pom.xml<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-vault-config-aws</artifactId>
<version>2.0.3.RELEASE</version>
</dependency>
</dependencies>The integration can be enabled by setting
spring.cloud.vault.aws=true (default false)
and providing the role name with spring.cloud.vault.aws.role=….The access key and secret key are stored in cloud.aws.credentials.accessKey
and cloud.aws.credentials.secretKey so using Spring Cloud AWS will pick up the generated
credentials without further configuration. You can configure the property names
by setting spring.cloud.vault.aws.access-key-property and
spring.cloud.vault.aws.secret-key-property.spring.cloud.vault:
aws:
enabled: true
role: readonly
backend: aws
access-key-property: cloud.aws.credentials.accessKey
secret-key-property: cloud.aws.credentials.secretKeyenabled setting this value to true enables the AWS backend config usagerole sets the role name of the AWS role definitionbackend sets the path of the AWS mount to useaccess-key-property sets the property name in which the AWS access key is storedsecret-key-property sets the property name in which the AWS secret key is storedSee also: Vault Documentation: Setting up AWS with VaultDatabase backendsVault supports several database secret backends to generate database
credentials dynamically based on configured roles. This means
services that need to access a database no longer need to configure
credentials: they can request them from Vault, and use Vault’s leasing
mechanism to more easily roll keys.Spring Cloud Vault integrates with these backends:Using a database secret backend requires to enable the
backend in the configuration and the spring-cloud-vault-config-databases
dependency.Vault ships since 0.7.1 with a dedicated database secret backend that allows
database integration via plugins. You can use that specific backend by using the
generic database backend. Make sure to specify the appropriate
backend path, e.g. spring.cloud.vault.mysql.role.backend=database.pom.xml<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-vault-config-databases</artifactId>
<version>2.0.3.RELEASE</version>
</dependency>
</dependencies>Enabling multiple JDBC-compliant databases will generate credentials
and store them by default in the same property keys hence property names for
JDBC secrets need to be configured separately.DatabaseSpring Cloud Vault can obtain credentials for any database listed at
https://www.vaultproject.io/api/secret/databases/index.html.
The integration can be enabled by setting
spring.cloud.vault.database.enabled=true (default false) and
providing the role name with spring.cloud.vault.database.role=….While the database backend is a generic one, spring.cloud.vault.database
specifically targets JDBC databases. Username and password are
stored in spring.datasource.username and spring.datasource.password
so using Spring Boot will pick up the generated credentials
for your DataSource without further configuration.
You can configure the property names by setting
spring.cloud.vault.database.username-property and
spring.cloud.vault.database.password-property.spring.cloud.vault:
database:
enabled: true
role: readonly
backend: database
username-property: spring.datasource.username
password-property: spring.datasource.usernameenabled setting this value to true enables the Database backend config usagerole sets the role name of the Database role definitionbackend sets the path of the Database mount to useusername-property sets the property name in which the Database username is storedpassword-property sets the property name in which the Database password is storedSee also: Vault Documentation: Database Secrets backendApache CassandraThe cassandra backend has been deprecated in Vault 0.7.1 and
it is recommended to use the database backend and mount it as cassandra.Spring Cloud Vault can obtain credentials for Apache Cassandra.
The integration can be enabled by setting
spring.cloud.vault.cassandra.enabled=true (default false) and
providing the role name with spring.cloud.vault.cassandra.role=….Username and password are stored in spring.data.cassandra.username
and spring.data.cassandra.password so using Spring Boot will pick
up the generated credentials without further configuration.
You can configure the property names by setting
spring.cloud.vault.cassandra.username-property and
spring.cloud.vault.cassandra.password-property.spring.cloud.vault:
cassandra:
enabled: true
role: readonly
backend: cassandra
username-property: spring.data.cassandra.username
password-property: spring.data.cassandra.usernameenabled setting this value to true enables the Cassandra backend config usagerole sets the role name of the Cassandra role definitionbackend sets the path of the Cassandra mount to useusername-property sets the property name in which the Cassandra username is storedpassword-property sets the property name in which the Cassandra password is storedSee also: Vault Documentation: Setting up Apache Cassandra with VaultMongoDBThe mongodb backend has been deprecated in Vault 0.7.1 and
it is recommended to use the database backend and mount it as mongodb.Spring Cloud Vault can obtain credentials for MongoDB.
The integration can be enabled by setting
spring.cloud.vault.mongodb.enabled=true (default false) and
providing the role name with spring.cloud.vault.mongodb.role=….Username and password are stored in spring.data.mongodb.username
and spring.data.mongodb.password so using Spring Boot will
pick up the generated credentials without further configuration.
You can configure the property names by setting
spring.cloud.vault.mongodb.username-property and
spring.cloud.vault.mongodb.password-property.spring.cloud.vault:
mongodb:
enabled: true
role: readonly
backend: mongodb
username-property: spring.data.mongodb.username
password-property: spring.data.mongodb.passwordenabled setting this value to true enables the MongodB backend config usagerole sets the role name of the MongoDB role definitionbackend sets the path of the MongoDB mount to useusername-property sets the property name in which the MongoDB username is storedpassword-property sets the property name in which the MongoDB password is storedSee also: Vault Documentation: Setting up MongoDB with VaultMySQLThe mysql backend has been deprecated in Vault 0.7.1 and
it is recommended to use the database backend and mount it as mysql.
Configuration for spring.cloud.vault.mysql will be removed in a future version.Spring Cloud Vault can obtain credentials for MySQL.
The integration can be enabled by setting
spring.cloud.vault.mysql.enabled=true (default false) and
providing the role name with spring.cloud.vault.mysql.role=….Username and password are stored in spring.datasource.username
and spring.datasource.password so using Spring Boot will
pick up the generated credentials without further configuration.
You can configure the property names by setting
spring.cloud.vault.mysql.username-property and
spring.cloud.vault.mysql.password-property.spring.cloud.vault:
mysql:
enabled: true
role: readonly
backend: mysql
username-property: spring.datasource.username
password-property: spring.datasource.usernameenabled setting this value to true enables the MySQL backend config usagerole sets the role name of the MySQL role definitionbackend sets the path of the MySQL mount to useusername-property sets the property name in which the MySQL username is storedpassword-property sets the property name in which the MySQL password is storedSee also: Vault Documentation: Setting up MySQL with VaultPostgreSQLThe postgresql backend has been deprecated in Vault 0.7.1 and
it is recommended to use the database backend and mount it as postgresql.
Configuration for spring.cloud.vault.postgresql will be removed in a future version.Spring Cloud Vault can obtain credentials for PostgreSQL.
The integration can be enabled by setting
spring.cloud.vault.postgresql.enabled=true (default false) and
providing the role name with spring.cloud.vault.postgresql.role=….Username and password are stored in spring.datasource.username
and spring.datasource.password so using Spring Boot will
pick up the generated credentials without further configuration.
You can configure the property names by setting
spring.cloud.vault.postgresql.username-property and
spring.cloud.vault.postgresql.password-property.spring.cloud.vault:
postgresql:
enabled: true
role: readonly
backend: postgresql
username-property: spring.datasource.username
password-property: spring.datasource.usernameenabled setting this value to true enables the PostgreSQL backend config usagerole sets the role name of the PostgreSQL role definitionbackend sets the path of the PostgreSQL mount to useusername-property sets the property name in which the PostgreSQL username is storedpassword-property sets the property name in which the PostgreSQL password is storedSee also: Vault Documentation: Setting up PostgreSQL with VaultConfigure PropertySourceLocator behaviorSpring Cloud Vault uses property-based configuration to create PropertySources
for generic and discovered secret backends.Discovered backends provide VaultSecretBackendDescriptor beans to describe the configuration
state to use secret backend as PropertySource. A SecretBackendMetadataFactory is required
to create a SecretBackendMetadata object which contains path, name and property transformation
configuration.SecretBackendMetadata is used to back a particular PropertySource.You can register an arbitrary number of beans implementing VaultConfigurer for customization.
Default generic and discovered backend registration is disabled if Spring Cloud Vault discovers
at least one VaultConfigurer bean. You can however enable default registration with
SecretBackendConfigurer.registerDefaultGenericSecretBackends() and SecretBackendConfigurer.registerDefaultDiscoveredSecretBackends().public class CustomizationBean implements VaultConfigurer {
@Override
public void addSecretBackends(SecretBackendConfigurer configurer) {
configurer.add("secret/my-application");
configurer.registerDefaultGenericSecretBackends(false);
configurer.registerDefaultDiscoveredSecretBackends(true);
}
}All customization is required to happen in the bootstrap context. Add your configuration
classes to META-INF/spring.factories at org.springframework.cloud.bootstrap.BootstrapConfiguration
in your application.Service Registry ConfigurationYou can use a DiscoveryClient (such as from Spring Cloud Consul) to locate
a Vault server by setting spring.cloud.vault.discovery.enabled=true (default false).
The net result of that is that your apps need a bootstrap.yml (or an environment variable)
with the appropriate discovery configuration.
The benefit is that the Vault can change its co-ordinates, as long as the discovery service
is a fixed point. The default service id is vault but you can change that on the client with
spring.cloud.vault.discovery.serviceId.The discovery client implementations all support some kind of metadata map
(e.g. for Eureka we have eureka.instance.metadataMap). Some additional properties of the service
may need to be configured in its service registration metadata so that clients can connect
correctly. Service registries that do not provide details about transport layer security
need to provide a scheme metadata entry to be set either to https or http.
If no scheme is configured and the service is not exposed as secure service, then
configuration defaults to spring.cloud.vault.scheme which is https when it’s not set.spring.cloud.vault.discovery:
enabled: true
service-id: my-vault-serviceVault Client Fail FastIn some cases, it may be desirable to fail startup of a service if
it cannot connect to the Vault Server. If this is the desired
behavior, set the bootstrap configuration property
spring.cloud.vault.fail-fast=true and the client will halt with
an Exception.spring.cloud.vault:
fail-fast: trueVault Client SSL configurationSSL can be configured declaratively by setting various properties.
You can set either javax.net.ssl.trustStore to configure
JVM-wide SSL settings or spring.cloud.vault.ssl.trust-store
to set SSL settings only for Spring Cloud Vault Config.spring.cloud.vault:
ssl:
trust-store: classpath:keystore.jks
trust-store-password: changeittrust-store sets the resource for the trust-store. SSL-secured Vault
communication will validate the Vault SSL certificate with the specified
trust-store.trust-store-password sets the trust-store passwordPlease note that configuring spring.cloud.vault.ssl.* can be only
applied when either Apache Http Components or the OkHttp client
is on your class-path.Lease lifecycle management (renewal and revocation)With every secret, Vault creates a lease:
metadata containing information such as a time duration,
renewability, and more.Vault promises that the data will be valid for the given duration,
or Time To Live (TTL). Once the lease is expired, Vault can
revoke the data, and the consumer of the secret can no longer
be certain that it is valid.Spring Cloud Vault maintains a lease lifecycle beyond
the creation of login tokens and secrets. That said,
login tokens and secrets associated with a lease
are scheduled for renewal just before the lease expires
until terminal expiry.
Application shutdown revokes obtained login tokens and renewable
leases.Secret service and database backends (such as MongoDB or MySQL)
usually generate a renewable lease so generated credentials will
be disabled on application shutdown.Static tokens are not renewed or revoked.Lease renewal and revocation is enabled by default and can
be disabled by setting spring.cloud.vault.config.lifecycle.enabled
to false. This is not recommended as leases can expire and
Spring Cloud Vault cannot longer access Vault or services
using generated credentials and valid credentials remain active
after application shutdown.spring.cloud.vault:
config.lifecycle.enabled: trueSee also: Vault Documentation: Lease, Renew, and Revoke