| 58653bf4 | 05-Jun-2026 |
Baptiste Daroussin <bapt@FreeBSD.org> |
nuageinit: implement phone_home support
Posts instance data (hostname, instance_id, public keys) to a URL using fetch(1). Supports: - url: target URL - post: list of data items to send, or 'all' - t
nuageinit: implement phone_home support
Posts instance data (hostname, instance_id, public keys) to a URL using fetch(1). Supports: - url: target URL - post: list of data items to send, or 'all' - tries: number of retry attempts (default 1)
show more ...
|
| 0ba9b7b7 | 04-Jun-2026 |
Baptiste Daroussin <bapt@FreeBSD.org> |
nuageinit: fix update_sshd_config crash when file does not exist
Previously update_sshd_config() would assert-fail if sshd_config did not exist. Now it creates a new file with the given key/value.
nuageinit: fix update_sshd_config crash when file does not exist
Previously update_sshd_config() would assert-fail if sshd_config did not exist. Now it creates a new file with the given key/value.
Also replace the fragile simultaneous r+ + temp file approach with a cleaner read-then-write pattern: read all lines into memory, modify as needed, then write to a temp file and rename. All assert() calls replaced with proper error handling via warnmsg().
Add test case for missing file creation.
show more ...
|
| 46d1758a | 04-Jun-2026 |
Baptiste Daroussin <bapt@FreeBSD.org> |
nuageinit: add hostname validation (RFC 952/1123) to sethostname()
Validate hostnames before writing them: - Reject empty hostnames - Reject hostnames longer than 253 characters - Reject hostnames w
nuageinit: add hostname validation (RFC 952/1123) to sethostname()
Validate hostnames before writing them: - Reject empty hostnames - Reject hostnames longer than 253 characters - Reject hostnames with invalid characters - Reject hostnames starting or ending with dot/hyphen - Reject labels longer than 63 characters - Reject labels starting or ending with hyphen
Expand the sethostname test to cover all rejection cases. Update nuage.sh sethostname_body to ignore stderr (warnings).
show more ...
|