Skip to content

Secrets support #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 27 commits into from
Oct 25, 2023
Merged

Secrets support #7

merged 27 commits into from
Oct 25, 2023

Conversation

arturo-seijas
Copy link
Collaborator

@arturo-seijas arturo-seijas commented Oct 20, 2023

Applicable spec: https://docs.google.com/document/d/13K6TlXI2b_Hg0-0_b0LeMhPJ3WVdfJtFPsImVRgiFNc

Overview

Support sharing secrets via relation, as per the spec above. Note that support for Juju 2 will land in a separate PR

Rationale

N/A

Juju Events Changes

  • Config changed: secret is stored now here
  • New relation created event for the new relation

Module Changes

charm.py and charm_state.py

Library Changes

Added new relation to the library

Checklist

@arturo-seijas arturo-seijas requested a review from a team as a code owner October 20, 2023 12:23
Copy link

@mthaddon mthaddon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have just done a pass on the docs. Looking very good mostly in terms of docs, just some minor comments, thanks.

Copy link

@cbartz cbartz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mostly found typos

@github-actions
Copy link
Contributor

Test coverage for c79c582

Name                                    Stmts   Miss Branch BrPart  Cover   Missing
-----------------------------------------------------------------------------------
lib/charms/smtp_integrator/v0/smtp.py     110      2     16      2    97%   283, 285
src/charm.py                               55      2     14      2    94%   87, 89
src/charm_state.py                         48      0      8      0   100%
-----------------------------------------------------------------------------------
TOTAL                                     213      4     38      4    97%

Static code analysis report

Run started:2023-10-25 07:43:19.616001

Test results:
  No issues identified.

Code scanned:
  Total lines of code: 789
  Total lines skipped (#nosec): 4
  Total potential issues skipped due to specifically being disabled (e.g., #nosec BXXX): 0

Run metrics:
  Total issues (by severity):
  	Undefined: 0
  	Low: 0
  	Medium: 0
  	High: 0
  Total issues (by confidence):
  	Undefined: 0
  	Low: 0
  	Medium: 0
  	High: 0
Files skipped (0):

Copy link

@cbartz cbartz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, just a few minor things.
Could you add the spec (or name as I believe its private) in the PR description? Thanks very much.

@arturo-seijas arturo-seijas requested a review from cbartz October 25, 2023 09:49
Copy link

@gregory-schiano gregory-schiano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@arturo-seijas arturo-seijas merged commit 9f0fac0 into main Oct 25, 2023
@arturo-seijas arturo-seijas deleted the secrets-support branch October 25, 2023 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants