~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
..
build 60.12.59 10 years ago Sidnei da Silva - Switch to embedded charm-helpers Diff
data 86.2.1 9 years ago Free Ekanayaka Add support for SSL frontends Diff
files 60.1.1 11 years ago Tom Haddon Add nrpe-external-master checks to haproxy Diff
hooks 20 13 years ago Clint Byrum haproxy formula Diff
templates 60.1.6 11 years ago Matthew Wedgwood WIP: adding nrpe module Diff
tests 74.2.1 10 years ago matthew.bruzek at canonical Added amulet test for haproxy Diff
.bzrignore 92.1.6 9 years ago David Britton - Merge in Bjorn's branch - fix lint - Removed 're 95 bytes Diff Download File
charm-helpers.yaml 109.1.2 7 years ago laurent.sesques at canonical add osplatform to charm-helpers fetched modules 76 bytes Diff Download File
cm.py 60.12.70 10 years ago Sidnei da Silva - Update cm.py 6.7 KB Diff Download File
config-manager.txt 91.1.3 9 years ago Bjorn Tillenius Sync charm-helpers to r373. 179 bytes Diff Download File
config.yaml 108.1.1 7 years ago Alberto Donato Disable non-PCI ciphers. 9.7 KB Diff Download File
copyright 45 12 years ago Clint Byrum Adding copyright files to all formulas 756 bytes Diff Download File
icon.svg 110.2.1 6 years ago Tom Haddon Update charm icon per lp#1686694 29.4 KB Diff Download File
Makefile 106.2.1 7 years ago Konstantinos Tsakalozos Fixing failing tests 1.1 KB Diff Download File
metadata.yaml 114.1.1 5 years ago Xav Paice add extra-bindings 950 bytes Diff Download File
README.md 110.1.2 6 years ago Tom Haddon Some grammar updates 9.2 KB Diff Download File
setup.cfg 60.17.2 11 years ago Diogo Baeder de Paula Pinto Oops, Makefile and setup.cfg were missing 61 bytes Diff Download File
File tarmac_tests.sh 60.17.1 11 years ago Diogo Baeder de Paula Pinto Removing Fabric and virtualenv stuff, back to Make 75 bytes Diff Download File