cloud-init
The standard tool that sets up a cloud server on its first boot, creating users, installing SSH keys and packages, and writing configuration.
In more detail
Cloud images such as Ubuntu run cloud-init at first start, reading settings supplied by the cloud provider and the person launching the server. It can write configuration files, including an sshd drop-in named 50-cloud-init.conf that turns password logins on. Because it changes settings outside your hardening procedure, audits must check what the system actually enforces.
Example
fail passwordauthentication yes from sshd_config.d/50-cloud-init.confRelated terms
- drop-in file — A small extra configuration file placed in a directory that a main configuration file includes, used to add or change settings without editing the main file.
- sshd_config — The main configuration file of the OpenSSH server, normally at /etc/ssh/sshd_config, which controls who can log in and how.
- Ubuntu — A popular Linux distribution based on Debian, published by Canonical, that installs software with apt.
- configuration drift — The slow, unrecorded way machines end up with different versions and settings from each other.
Taught in
- Two Domain Controllers, One Host: Virtualisation — CompTIA Cloud+ (CV0-004) Exam Prep
- Security Governance vs Security Management — Cybersecurity Fundamentals, GRC & Cryptography
- Security Baselines, Policies & Hardening Standards — Cybersecurity Fundamentals, GRC & Cryptography