~chad.smith/cloud-init:cleanup/no-deepcopy-when-redacting-headers

Last commit made on 2020-02-19
Get this branch:
git clone -b cleanup/no-deepcopy-when-redacting-headers https://git.launchpad.net/~chad.smith/cloud-init
Only Chad Smith can upload to this branch. If you are Chad Smith please log in for upload directions.

Branch merges

Branch information

Name:
cleanup/no-deepcopy-when-redacting-headers
Repository:
lp:~chad.smith/cloud-init

Recent commits

a7745a5... by Chad Smith

url_helper: no need to copy redacted content

87cd040... by Ryan Harper

ec2: Do not log IMDSv2 token values, instead use REDACTED (#219)

Instead of logging the token values used log the headers and replace the actual
values with the string 'REDACTED'. This allows users to examine cloud-init.log
and see that the IMDSv2 token header is being used but avoids leaving the value
used in the log file itself.

LP: #1863943

3e2f735... by Dimitri John Ledkov

utils: use SystemRandom when generating random password. (#204)

As noticed by Seth Arnold, non-deterministic SystemRandom should be
used when creating security sensitive random strings.

c90932f... by Chad Smith

docs: mount_default_files is a list of 6 items, not 7 (#212)

ecffd25... by Ryan Harper

azurecloud: fix issues with instances not starting (#205)

The azurecloud platform did not always start instances
during collect runs. This was a result of two issues. First
the image class _instance method did not invoke the start()
method which then allowed collect stage to attempt to run
scripts without an endpoint. Second, azurecloud used the
image_id as both an instance handle (which is typically
vmName in azure api) as well as an image handle (for image
capture). Resolve this by adding a .vm_name property to
the AzureCloudInstance and reference this property in
AzureCloudImage.

Also in this branch

- Fix error encoding user-data when value is None
- Add additional logging in AzureCloud platform
- Update logging format to print pathname,funcName and line number
  This greatly eases debugging.

LP: #1861921

81c7477... by Ryan Harper

unittest: fix stderr leak in cc_set_password random unittest output. (#208)

890aca4... by Ryan Harper

cc_disk_setup: add swap filesystem force flag (#207)

616d0a6... by =?utf-8?q?Igor_Gali=C4=87?= <email address hidden>

import sysvinit patches from freebsd-ports tree (#161)

bugzilla ref: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=224361
svn rev: https://svnweb.freebsd.org/ports?view=revision&revision=457768

b285efb... by Edwin Kofler <email address hidden>

docs: fix typo (#195)

fixes typo at doc/examples/cloud-config-disk-setup.txt; Cavaut => Caveat

06e324f... by Robert Schweikert

sysconfig: distro-specific config rendering for BOOTPROTO option (#162)

- Introduce the "flavor" configuration option for the sysconfig renderer
  this is necessary to account for differences in the handling of the
  BOOTPROTO setting between distributions (lp#1858808)
  + Thanks to Petr Pavlu for the idea
- Network config clean up for sysconfig renderer
  + The introduction of the "flavor" renderer configuration allows us
    to only write values that are pertinent for the given distro
- Set the DHCPv6 client mode on SUSE (lp#1800854)

Co-authored-by: Chad Smith <email address hidden>

LP: #1800854