See also: How to add a secret to your charm
secret-changedis emitted to the observer of a secret to notify it that a new revision is available.
secret-expiredis emitted to the owner of a secret to notify it that the expiration time has been hit and a new revision should be created.
secret-removeis emitted to the owner of a secret to notify it that all observers have updated to a new revision and the old revision can be safely removed.
secret-rotateis emitted to the owner of a secret to notify it that the rotation time has elapsed and a new revision should be created.
Secret events can’t be directly triggered by Juju admin operations. Most other events occur because someone did something on the Juju CLI (created a relation, scaled something down, and so on); secret events are, however, exclusively triggered either by charm code or an internal Juju timeout (similar to
ops, all secret events inherit from
ops.charm.SecretEvent, which has a
secret attribute that provides the
Secret instance this event refers to. The
Secret object has various attributes and methods that can be used to interact with the secret – see the API reference for details.
Last updated 24 days ago.