Merge ~tshinn/snap-store-proxy-charm:compare_hostname_instead_of_full_url into snap-store-proxy-charm:main
Proposed by
Tong Shinn
Status: | Merged |
---|---|
Approved by: | Tong Shinn |
Approved revision: | be20e8b3b93b91fe8f867e4421dabb0dc9bf73d8 |
Merge reported by: | Otto Co-Pilot |
Merged at revision: | not available |
Proposed branch: | ~tshinn/snap-store-proxy-charm:compare_hostname_instead_of_full_url |
Merge into: | snap-store-proxy-charm:main |
Diff against target: |
38 lines (+3/-2) 3 files modified
setup.cfg (+1/-0) src/charm.py (+1/-1) tests/test_charm.py (+1/-1) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Wouter van Bommel (community) | Approve | ||
Review via email: mp+436217@code.launchpad.net |
Commit message
self._stored.domain contains the full URL (including http:// or https://) and thus directly comparing it to the CN or SAN of certificates does not work. Extract the hostname from the URL so that we can make the comparison.
Description of the change
With this change, we can now set the "certificate" and "private_key" configurations of snap-store-proxy via juju and the certificates will correctly match the configured domain of the proxy.
To post a comment you must log in.
lgtm