Merge ~tshinn/snap-store-proxy-charm:fix_https_cert_config into snap-store-proxy-charm:main
Proposed by
Tong Shinn
Status: | Merged |
---|---|
Approved by: | Tong Shinn |
Approved revision: | 5ee7c4a10ae3c00a82d98b6a5875d1cab6bb09e7 |
Merge reported by: | Otto Co-Pilot |
Merged at revision: | not available |
Proposed branch: | ~tshinn/snap-store-proxy-charm:fix_https_cert_config |
Merge into: | snap-store-proxy-charm:main |
Diff against target: |
96 lines (+29/-11) 4 files modified
src/charm.py (+2/-7) src/helpers.py (+6/-0) tests/test_charm.py (+2/-4) tests/test_helpers.py (+19/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Wouter van Bommel (community) | Approve | ||
Odysseus Kaziolas | Approve | ||
Review via email: mp+436362@code.launchpad.net |
Commit message
snap-store-proxy CLI has the import-certificate option. Update the charm to use it instead of setting proxy.tls.cert and proxy.tls.key directly, which doesn't fully work.
Description of the change
After deploying the charm, the following commands can be used to configure snap-store-proxy to support HTTPS:
juju config snap-store-proxy certificate="$(cat my.cert)"
juju config snap-store-proxy private_key="$(cat my.key)"
where my.cert and my.key are PEM formatted key/cert pair.
To post a comment you must log in.
Haven't used snap-store-proxy but changes LGTM plus tests pass. Maybe @suligap should take a look here as well as he's more experienced with snap store proxy.
Do we also need to have an entry in our docs with the commands above?