juditnovak / juju-secrets-example

Juju secrets demo code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

juju-secrets-example

Demonstration of Juju Secrets usage in Charms.

Description

Juju Secrets usage in charms is demonstrated via Integration Tests, equipped with pipelines executing code that triggers basic functionality.

The code may server well as an example, or to be taken "as it is" and used when embedding Juju Secrets usage to actual Charms.

Use cases

  • Base charm
    • Basic Juju Secrets usage. Single secret across the charm, with the URI saved in the peer databag.
    • Real life use-case: MySQL, Postgres
  • Charm using labels
    • Similar use-case as above, except using labels within the charm. Thus no databag usage is needed, labels are automatically generated
    • Real-life use case: Opensearch
  • Caching secrets for even scope
    • Avoding access to Juju Secrets store on each reference to secrets contents
    • In all our charms we're using this technique
  • Charm Relation secrets Provider, Charm Relation secrets Requirer
    • Both sides of a Charm Relation
    • NOTE: data_platform_libs/data_interaces module outdated

About

Juju secrets demo code


Languages

Language:Python 100.0%