Skip to content
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

cc_ca_certs.py: fix blank line problem when removing CAs and adding n… #483

Merged
merged 7 commits into from
Jul 15, 2020

Commits on Jul 8, 2020

  1. cc_ca_certs.py: fix blank line problem when removing CAs and adding n…

    …ew one.
    
    Problem: When cc_ca_certs configuration has both "remove-defaults: true"
    and also specifies one, or more, new trusted CAs to add then the resultant
    /etc/ca-certificates.conf file's 1st line is blank. As noted in comments
    in the existing cc_ca_certs.py code blank lines in this file cause problems.
    
    Fix: Before adding the cloud-init CA filename to this file first check the
    size of the file - if is is empty (as all existing CAs have been deleted)
    then write only the cloud-init CA filename to the file rather than appending
    it to the file.
    dermotbradley committed Jul 8, 2020
    Configuration menu
    Copy the full SHA
    bdad941 View commit details
    Browse the repository at this point in the history

Commits on Jul 9, 2020

  1. test_handler_ca_certs.py: Testcase for deleting existing CAs and addi…

    …ng new one
    
    Existing testcases do not handle the situation where all the existing CA
    certs are deleted (so resulting in an empty /etc/ca-certificates.conf file
    and when one, or more, new CAs are added). This testcase verifies that the
    resultant ca-certificates.conf file does not contain any blank lines which
    are known to cause problems for the update-ca-certificates utility.
    dermotbradley committed Jul 9, 2020
    Configuration menu
    Copy the full SHA
    ca01d20 View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2020

  1. Configuration menu
    Copy the full SHA
    dcb0de8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    974db95 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f33ca79 View commit details
    Browse the repository at this point in the history

Commits on Jul 15, 2020

  1. Configuration menu
    Copy the full SHA
    44dfc89 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6e3f9c8 View commit details
    Browse the repository at this point in the history