Summary of release changes.
- Deprecate Makefile target
logs-delayed; replaced withlogsdef. - Updates
opensshpackage to 7.4p1-21.el7. - Updates
opensslpackage to 1.0.2k-19.el7. - Updates
sudopackage to 1.8.23-4.el7. - Updates
yum-plugin-versionlockpackage to 1.1.31-52.el7. - Updates supervisord to 4.0.4.
- Updates
test/health_statushelper script with for consistency. - Updates Makefile target
logsto accept[OPTIONS](e.gmake -- logs -ft). - Updates
healthcheckscript; state file existence confirms bootstrap completion. - Updates
system-timezone-wrapperto improve timer accuracy. - Updates scripts to explicitly check for a file when handling lock/state files.
- Updates method used for returning current script.
- Updates info/error output for consistency.
- Updates healthcheck failure messages to remove EOL character that is rendered in status response.
- Updates wrapper script; only emit "waiting on" info message if bootstrap hasn't completed.
- Updates CHANGELOG.md to simplify maintenance.
- Updates README.md to simplify contents and improve readability.
- Updates README-short.txt to apply to all image variants.
- Updates Dockerfile
org.deathe.descriptionmetadata LABEL for consistency. - Updates ordering of Tags and respective Dockerfile links in README.md for readability.
- Adds improved test workflow; added
test-setuptarget to Makefile. - Adds Makefile target
logsdefto handle deferred logs output within a target chain. - Adds exec proxy function to
sshd-wrapperused to pass through nice. - Adds double quotes around value containing spaces.
- Adds
/docsdirectory for supplementary documentation and simplify README. - Fixes validation failure of 0 second --timeout value in
test/health_status. - Removes
ENABLE_SSHD_BOOTSTRAPfrom docker-compose example configuration. - Removes
ENABLE_SSHD_WRAPPERfrom docker-compose example configuration.
- Deprecates
SSH_AUTOSTART_SSHD, replaced withENABLE_SSHD_WRAPPER. - Deprecates
SSH_AUTOSTART_SSHD_BOOTSTRAP, replaced withENABLE_SSHD_BOOTSTRAP. - Deprecates
SSH_AUTOSTART_SUPERVISOR_STDOUT, replaced withENABLE_SUPERVISOR_STDOUT. - Deprecates
SSH_TIMEZONE, replaced withSYSTEM_TIMEZONE. - Updates source tag to CentOS 7.6.1810.
- Updates supervisord to 4.0.3.
- Updates default value of
ENABLE_SUPERVISOR_STDOUTto false. - Updates
sshd-bootstrapandsshd-wrapperconfiguration to send error log output to stderr. - Updates order of values in SSH/SFTP Details log output.
- Updates bootstrap timer to use UTC date timestamps.
- Updates bootstrap supervisord configuration file/priority to
20-sshd-bootstrap.conf/20. - Updates wrapper supervisord configuration file/priority to
50-sshd-wrapper.conf/50. - Adds reference to
python-setuptoolsin README; removed in error. - Adds
inspect,reloadandtopMakefile targets. - Adds improved lock/state file implementation in bootstrap and wrapper scripts.
- Adds improved
cleanMakefile target; includes exited containers and dangling images. - Adds improved wait on bootstrap completion in wrapper script.
- Adds
system-timezoneandsystem-timezone-wrapperto handle system time zone setup. - Adds system time zone validation to healthcheck.
- Fixes port incrementation failures when installing systemd units via
scmi. - Fixes etcd port registration failures when installing systemd units via
scmiwith the--registeroption. - Fixes binary paths in systemd unit files for compatibility with both EL and Ubuntu hosts.
- Fixes use of printf binary instead of builtin in systemd unit files.
- Fixes docker host connection status check in Makefile.
- Fixes make clean error thrown when removing exited containers.
- Removes support for long image tags (i.e. centos-7-2.x.x).
- Removes system time zone setup from
sshd-bootstrap. - Removes redundant directory test from
sshd-bootstrap; state file ensures it's a one-shot process.
- Deprecates use of
supervisor_stdout- the default value ofSSH_AUTOSTART_SUPERVISOR_STDOUTwill be switched to "false" in a future release. - Updates Dockerfile with combined ADD to reduce layer count in final image.
- Fixes
scmiinstallation error when using the--manager=systemdoption on Ubuntu hosts. - Fixes issues with failure to install/uninstall systemd units installed with scmi.
- Adds improvement to pull logic in systemd unit install template.
- Adds
docker-compose.ymlto.dockerignoreto reduce size of build context. - Adds docker-compose configuration example.
- Adds
SSH_AUTOSTART_SUPERVISOR_STDOUTto control startup ofsupervisor_stdout. - Adds drop-in configuration for
supervisor_stdoutin/etc/supervisord.d/00-supervisor_stdout.conf. - Adds improved
healtchcheck,sshd-bootstrapandsshd-wrapperscripts. - Adds validation of
SSH_INHERIT_ENVIRONMENTvalues. - Removes reference to
python-setuptoolsfrom README as it's no longer installed. - Removes requirement of
supervisor_stdoutfor output of supervisord logs to stdout. - Removes unnecessary configuration file
/etc/sshd-bootstrap.conf. - Removes unnecessary environment file
/etc/sshd-bootstrap.env.
- Updates
opensslpackage to 1.0.2k-16.el7. - Updates
sudopackage to 1.8.23-3.el7. - Updates
yum-plugin-versionlockpackage to 1.1.31-50.el7. - Updates supervisor to 3.3.5.
- Updates validation for
SSH_USER_IDto allow values in the system ID range. - Updates and restructures Dockerfile to reduce number of layers in image.
- Updates container naming conventions for
scmimaking the node element optional. - Updates container naming conventions and readability of
Makefile. - Updates
docker logsoutput example in README document. - Updates README instructions following review.
- Updates default HEALTHCHECK interval to 1 second from 0.5.
- Replaces awk with native bash regex when testing sudo user's have
NOPASSWD:ALL. - Fixes bootstrap errors regarding readonly
PASSWORD_LENGTH. - Fixes issue with redacted password when using
SSH_PASSWORD_AUTHENTICATIONin combination withSSH_USER_FORCE_SFTP. - Fixes issue with unexpected published port in run templates when
DOCKER_PORT_MAP_TCP_22is set to an empty string or 0. - Fixes missing
SSH_TIMEZONEfrom Makefile's install run template. - Fixes validation of
SSH_TIMEZONEvalues - set to defaults with warning and abort on error. - Adds
SSH_USER_PRIVATE_KEYto allow configuration of an RSA private key forSSH_USER. - Adds placeholder replacement of
RELEASE_VERSIONdocker argument to systemd service unit template. - Adds error messages to healthcheck script and includes supervisord check.
- Adds a short sleep after bootstrap Details to work-around missing output on CI service's host.
- Adds port incrementation to Makefile's run template for container names with an instance suffix.
- Adds consideration for event lag into test cases for unhealthy health_status events.
- Adds feature to allow configuration of "root"
SSH_USER. - Adds validation of
SSH_SUDOvalues. - Removes use of
/etc/services-configpaths. - Removes fleet
--manageroption in thescmiinstaller. - Removes X-Fleet section from etcd register template unit-file.
- Removes the unused group element from the default container name.
- Removes the node element from the default container name.
- Removes undocumented
SSH_ROOT_PASSWORDfrom bootstrap process.
- Adds feature to set system time zone via
SSH_TIMEZONE. - Adds feature to enable password authentication.
- Adds default of removing insecure public key when enabling password authentication.
- Updates source tag to CentOS 7.5.1804.
- Adds explicit user (root) for running
supervisord.
- Updates supervisor to 3.3.4.
- Adds feature to set
SSH_USER_PASSWORDvia a file path. e.g. Docker Swarm secrets. - Adds feature to set
SSH_AUTHORIZED_KEYSvia a file path. e.g. Docker Swarm config.
- Updates
opensshpackage to openssh-7.4p1-13.el7_4. - Adds a
.dockerignorefile. - Deprecates use of the fleet
--manageroption in thescmiinstaller.
- Updates source tag to CentOS 7.4.1708.
- Updates supervisor to version 3.3.3.
- Updates
sudopackage to sudo-1.8.6p7-23.el7_3. - Adds permissions to restrict access to the healthcheck script.
- Fixes declaration of local readonly and array bash variables in SCMI scripts.
- Fixes missing trailing newline in source vagrant insecure public key.
- Fixes missing trailing newline for keys added to
~/.ssh/authorized_keys.
- Adds clearer, improved shpec test case output.
- Updates supervisor to version 3.3.2.
- Adds use of
/var/lock/subsys/(subsystem lock directory) for bootstrap lock files. - Adds a Docker healthcheck.
- Updates
opensshpackage 6.6.1p1-35.el7_3. - Replaces deprecated Dockerfile
MAINTAINERwith aLABEL. - Adds a
srcdirectory for the image root files. - Adds wrapper functions to functional test cases.
- Adds
STARTUP_TIMEvariable for thelogs-delayedMakefile target.
- Updates
vimandopensshpackages and theepel-release. - Fixes
shpectest definition to allowmake testto be interruptible. - Adds the
opensslpackage (and it's dependency,make). - Adds
README.mdinstruction to usedocker pullbeforedocker inspecton an image.
- Adds CentOS 7.3.1611 source tag.
-
Adds updated
sudo,openssh,yum-plugin-versionlockandxzpackages. -
Adds functional tests using shpec. To run all tests, install
shpecand run withmake test. -
Adds support for running tests on Ubuntu. Note: May require some additional setup prevent warnings about locale.
sudo locale-gen en_US.UTF-8; sudo dpkg-reconfigure locales export LANG=en_US.UTF-8; unset LANGUAGE LC_ALL LC_CTYPE -
Adds correction to examples and test usage of the
sftpcommand. -
Adds a "better practices" example of password hash generation in the
README.md. -
Adds minor code style changes to the
Makefile.
- Adds correct Makefile usage instructions for 'build' target.
- Adds info regarding NULL port values in Makefile help.
- Removes requirement for
gawkin the port handling functions for SCMI and the systemd template unit-file. - Adds reduced number of build steps to image which helps reduce final image size.
- Adds
-uparameter tosshdoptions to help reduce time spent doing DNS lookups during authentication. - Adds a change log (
CHANGELOG.md). - Adds support for semantic version numbered tags.
- Adds Makefile help target with usage instructions.
- Splits up the Makefile targets into internal and public types.
- Adds correct
scmipath in usage instructions. - Changes
PACKAGE_PATHtoDIST_PATHin line with the Makefile environment include. Not currently used byscmibut changing for consistency. - Changes
DOCKER_CONTAINER_PARAMETERS_APPENDtoDOCKER_CONTAINER_OPTSfor usability. This is a potentially breaking change that could affect systemd service configurations if using the Environment variable in a drop-in customisation. However, if using the systemd template unit-files it should be pinned to a specific version tag. The Makefile should only be used for development/testing and usage inscmiis internal only as the--setoptparameter is used to build up the optional container parameters. - Removes X-Fleet section from template unit-file.
- Adds support for Base64 encoded
SSH_AUTHORIZED_KEYSvalues. This resolves issues with setting multiple keys for the systemd installations.
- Fixed issue with sshd process not running on container startup.
- Fixes issue running
make distbefore creating package path. - Removes
Default requirettyfrom sudoers configuration. This allows for sudo commands to be run via without the requirement to use the-toption of thesshcommand. - Adds correct path to scmi on image for install/uninstall.
- Improves readability of Dockerfile.
- Adds consistent method of handling publishing of exposed ports. It's now possible to prevent publishing of the default exposed port when using scmi/make for installation.
- Adds minor improvement to the systemd register template unit-file.
- Adds
/usr/sbin/sshd-wrapperand moves lock file handling out of supervisord configuration. - Adds bootstrap script syntax changes for consistency and readability.
- Adds correction to scmi usage instructions; using centos-7-2.1.0 release tag would have resulted in error if attempting an
atomic install. - Changes Makefile environment variable from
PACKAGE_PATHtoDIST_PATHas the name conflicts with the Dockerfile ARG value used in some downstream builds. This is only used when building the, distributable, image package that gets attached to each release.
- Added
scmi(Services Container Manager Interface) to the image to simplify deployment and management of container instances using simply docker itself, using systemd for single docker hosts or fleet for clustered docker hosts. - Added metadata labels to the Dockerfile which defines the docker commands to run for operation (install/uninstall). This combined with
scmienables the use of Atomic Host'satomic install|uninistallcommands. - The
xzarchive package has ben added to the image to allowscmito load an image package from disk instead of requiring registry access to pull release images. - Updated Supervisor to
3.3.1. - Warn operator if any supplied environment variable values failed validation and have been set to a safe default.
- Added
DOCKER_CONTAINER_PARAMETERS_APPENDwhich allows the docker operator to append parameters to the default docker create template. - Removed handling of Configuration Data Volumes from the helper scripts and from the Systemd unit-file definitions. Volumes can be added using the environment variable
DOCKER_CONTAINER_PARAMETERS_APPENDor with the--setoptoption withscmi. - Removed the
build.shandrun.shhelper scripts that were deprecated and have been replaced with the Makefile targets. Withmakeinstalled the process of building and running a container from the Dockerfile ismake build install startor to replicate the previous build helpermake build images install start ps. - Systemd template unit-files have been renamed to
centos-ssh@.serviceandcentos-ssh.register@.service. The (optional) register sidekick now contains placeholder{{SERVICE_UNIT_NAME}}that is needs gets replaced with the service unit when installing usingscmi. - The default value for
DOCKER_IMAGE_PACKAGE_PATHin the systemd template unit-file has been changed from/var/services-packagesto/var/opt/scmi/packages.
- Fixed broken pipe error returned from get_password function in the sshd_bootstrap script.
- Replaced hard-coded volume configuration volume name with Systemd template with the Environment variable
VOLUME_CONFIG_NAME. - Fixed issue with setting an empty string for the
DOCKER_PORT_MAP_TCP_22value - allowing docker to auto-assign a port number. - Split out build specific configuration from the Makefile into a default.mk file and renamed make.conf to environment.mk - Makefile should now be more portable between Docker projects.
-
Updated container packages
sudoandopenssh. -
Updated container's supervisord to 3.2.3.
-
Added
SSH_AUTOSTART_SSHD&&SSH_AUTOSTART_SSHD_BOOTSTRAPto allow the operator or downstream developer to prevent the sshd service and/or sshd-bootstrap from startup. -
Added Makefile to replace
build.shandrun.shhelper scripts. See #162 for notes on usage instructions. -
Set Dockerfile environment variable values in a single build step which helps reduce build time.
-
Fixed issue with setting SSH USER UID:GID values in systemd installation.
-
Fixed issue with setting of
SSH_SUDOin Systemd installation. -
Replaced custom awk type filters with docker native commands where possible.
-
Fixed issue preventing sshd restarts being possible due to bootstrap lock file dependancy.
-
Use
execto run the sshd daemon within the container. -
Use
execto run the docker daemon process from the systemd unit file template. -
Reduced startup time by ~1 second by not requiring supervisord to wait for the sshd service to stay up for the default 1 second.
-
Revised systemd installation process, installer script and service template.
ssh.pool-1.1.1@2020.servicehas been replaced byssh.pool-1@.serviceand local instances are created of the formssh.pool-1@1.1,ssh.pool-1@2.1,ssh.pool-1@3.1etc. which correspond to docker containers namedssh.pool-1.1.1,ssh.pool-1.2.1,ssh.pool-1.3.1etc. To start 3 systemd managed containers you can simply run:$ for i in {1..3}; do sudo env SERVICE_UNIT_LOCAL_ID=$i ./systemd-install.sh; done -
The systemd service registration feature is now enabled via an optional service unit template file
ssh.pool-1.register@.service.
- Fixed '/dev/stdin: Stale file handle' issue seen when using Ubuntu 14.04.4 LTS or Kitematic 0.10.0 as the docker host.
- Fixed default value for
SSH_USER_FORCE_SFTP. - Removed the delay for output to docker logs.
- Improved bootstrap startup time and included bootstrap time in the SSHD Details log.
- Added a more robust method of triggering the SSHD process; the sshd-boostrap needs to complete with a non-zero exit code to trigger the SSHD process instead of simply waiting for 2 seconds and starting regardless.
- Systemd definition to use specific tag.
- Initial release