~haproxy-team/charm-haproxy/trunk

  • Committer: mergebot at canonical
  • Author(s): "Billy Olsen"
  • Date: 2019-03-18 17:43:20 UTC
  • mfrom: (118.1.4 charm-haproxy)
  • Revision ID: mergebot@juju-139df4-prod-is-toolbox-0.canonical.com-20190318174320-bnkbvxm3hzv3k44p
Convert the subjectAltName into an IP Address for comparison.

Convert the subjectAltName component to an IP Address and then
cast to a string prior to comparing to adding it to the set of
IP addresses found in the self-signed certificate properies.
Casting it directly to a str doesn't work as it is an OctetString
type and presents the data as the raw bytes of an IP address.

The ipaddress library already has the capability of parsing the
octet string bytes into an IP address and handles both IPv4 and
IPv6 forms.

Closes-Bug: #1818761

Reviewed-on: https://code.launchpad.net/~billy-olsen/charm-haproxy/octet-string/+merge/364017
Reviewed-by: Edward Hope-Morley <edward.hope-morley@canonical.com>
Reviewed-by: Stuart Bishop <stuart.bishop@canonical.com>
Reviewed-by: Chris Johnston <chris.johnston@canonical.com>
Reviewed-by: Felipe Reyes <felipe.reyes@canonical.com>
Filename Latest Rev Last Changed Committer Comment Size
..
charmhelpers 60.12.59 10 years ago Sidnei da Silva - Switch to embedded charm-helpers Diff
tests 60.12.30 11 years ago Sidnei da Silva - Move tests dir to hooks/tests Diff
__init__.py 108.2.1 7 years ago laurent.sesques at canonical [sajoupa] update charmhelpers Empty Diff Download File
Symlink config-changed 51.1.1 11 years ago Tom Haddon Overhaul the haproxy module to allow us to specify .
File hooks.py 118.1.4 5 years ago billy.olsen at canonical Update for code review comments 54.2 KB Diff Download File
File install 81.1.1 9 years ago Charles Butler Adds python-yaml as a dependency before invoking t 465 bytes Diff Download File
Symlink local-monitors-relation-joined 60.12.64 10 years ago Sidnei da Silva - Rename hooks .
File munin-relation-changed 43 13 years ago Clint Byrum adding munin support 666 bytes Diff Download File
Symlink nrpe-external-master-relation-joined 60.12.64 10 years ago Sidnei da Silva - Rename hooks .
Symlink peer-relation-changed 60.14.5 11 years ago Sidnei da Silva - Add peer relation .
Symlink peer-relation-joined 60.14.5 11 years ago Sidnei da Silva - Add peer relation .
Symlink reverseproxy-relation-broken 51.1.1 11 years ago Tom Haddon Overhaul the haproxy module to allow us to specify .
Symlink reverseproxy-relation-changed 51.1.1 11 years ago Tom Haddon Overhaul the haproxy module to allow us to specify .
Symlink reverseproxy-relation-departed 61.1.1 11 years ago Pierre Amadio adding link reverseproxy-relation-departed -> hook .
Symlink reverseproxy-relation-joined 89.1.3 9 years ago Free Ekanayaka Add hook link .
Symlink start 51.1.1 11 years ago Tom Haddon Overhaul the haproxy module to allow us to specify .
Symlink statistics-relation-changed 101.1.1 8 years ago Guillermo Gonzalez add statistics interface and relation support to s .
Symlink statistics-relation-joined 101.1.1 8 years ago Guillermo Gonzalez add statistics interface and relation support to s .
Symlink stop 51.1.1 11 years ago Tom Haddon Overhaul the haproxy module to allow us to specify .
Symlink upgrade-charm 60.12.65 10 years ago Sidnei da Silva - Add upgrade-charm hook .
Symlink website-relation-changed 51.1.1 11 years ago Tom Haddon Overhaul the haproxy module to allow us to specify .
Symlink website-relation-joined 51.1.1 11 years ago Tom Haddon Overhaul the haproxy module to allow us to specify .