History log of /freebsd/libexec/nuageinit/ (Results 1 – 25 of 110)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
13fb6dbc09-Jun-2026 Baptiste Daroussin <bapt@FreeBSD.org>

nuageinit: validate set-name to prevent shell injection in variable names

Shell variable names cannot be safely quoted with shell_escape() —
only alphanumeric characters are valid. Add validation th

nuageinit: validate set-name to prevent shell injection in variable names

Shell variable names cannot be safely quoted with shell_escape() —
only alphanumeric characters are valid. Add validation that set-name
only matches [a-zA-Z0-9]+; invalid values are rejected with a
warning and the rename is skipped entirely.

show more ...

09d068e509-Jun-2026 Baptiste Daroussin <bapt@FreeBSD.org>

nuageinit: fix shell injection in power_state_change delay and add test

0211c87209-Jun-2026 Baptiste Daroussin <bapt@FreeBSD.org>

nuageinit: fix shell command injection in multiple rc.conf.d writes

da3890fd09-Jun-2026 Baptiste Daroussin <bapt@FreeBSD.org>

nuageinit: use single-quote shell escaping for hostname in rc.conf.d

The hostname value was written inside double quotes in
/etc/rc.conf.d/hostname. POSIX shell performs command substitution
inside

nuageinit: use single-quote shell escaping for hostname in rc.conf.d

The hostname value was written inside double quotes in
/etc/rc.conf.d/hostname. POSIX shell performs command substitution
inside double quotes, so a hostname containing $() or backticks would
be executed when the file is sourced (e.g., by rc(8)).

Switch to using the existing shell_escape() helper, which wraps values
in single quotes. In POSIX shell, single-quoted strings are completely
literal — no expansion or substitution of any kind is performed.

While the hostname is already validated to contain only
[a-zA-Z0-9.-], this change provides defense-in-depth so the output
format is safe regardless of future validation changes.

Reported by: Yazdan Soltani <yazdan.soltani@gmail.com>

show more ...

ea3426bc08-Jun-2026 Jesús Daniel Colmenares Oviedo <dtxdf@FreeBSD.org>

nuageinit: Create parent directories in write_files

Currently, 'write_files' does not create parent directories, and
'runcmd' cannot be used here, since those scripts run after the files
have been w

nuageinit: Create parent directories in write_files

Currently, 'write_files' does not create parent directories, and
'runcmd' cannot be used here, since those scripts run after the files
have been written. The only workaround is to create the files in an
existing directory, such as '/root' or '/tmp', and then move those
files using 'runcmd', but this is cumbersome when there are many files,
even if they are small.

With this change, nuageinit now creates the parent directories for each
file using the path field, which mimics the same behavior as in
cloud-init.

Permissions and ownership can also be configured using 'runcmd'.

Reviewed by: bapt@
Approved by: bapt@
Differential Revision: https://reviews.freebsd.org/D57395

show more ...


/freebsd/cddl/lib/libzpool/Makefile
/freebsd/crypto/krb5/src/lib/gssapi/krb5/import_name.c
/freebsd/crypto/krb5/src/lib/gssapi/spnego/spnego_mech.c
/freebsd/include/stdlib.h
/freebsd/lib/libc/riscv/string/Makefile.inc
/freebsd/lib/libc/stdlib/malloc/Makefile.inc
/freebsd/lib/libc/stdlib/malloc/Symbol.map
/freebsd/lib/libc/stdlib/malloc/free_aligned_sized.c
/freebsd/lib/libc/stdlib/malloc/free_sized.3
/freebsd/lib/libc/stdlib/malloc/free_sized.c
/freebsd/lib/libc/stdlib/memory.3
/freebsd/lib/libc/stdlib/merge.c
/freebsd/lib/libc/stdlib/qsort.3
/freebsd/lib/msun/src/s_rsqrt.c
/freebsd/lib/msun/src/s_rsqrtf.c
/freebsd/lib/msun/src/s_rsqrtl.c
nuage.lua
nuageinit.7
/freebsd/share/examples/netgraph/ngctl
/freebsd/sys/compat/linux/linux_fork.c
/freebsd/sys/compat/linux/linux_misc.c
/freebsd/sys/conf/files
/freebsd/sys/contrib/openzfs/.github/workflows/README.md
/freebsd/sys/contrib/openzfs/.github/workflows/checkstyle.yaml
/freebsd/sys/contrib/openzfs/.github/workflows/codeql.yml
/freebsd/sys/contrib/openzfs/.github/workflows/scripts/generate-ci-type.py
/freebsd/sys/contrib/openzfs/.github/workflows/scripts/qemu-1-setup.sh
/freebsd/sys/contrib/openzfs/.github/workflows/scripts/qemu-2-start.sh
/freebsd/sys/contrib/openzfs/.github/workflows/scripts/qemu-3-deps-vm.sh
/freebsd/sys/contrib/openzfs/.github/workflows/scripts/qemu-3-deps.sh
/freebsd/sys/contrib/openzfs/.github/workflows/scripts/qemu-4-build-vm.sh
/freebsd/sys/contrib/openzfs/.github/workflows/scripts/qemu-6-lustre-tests-vm.sh
/freebsd/sys/contrib/openzfs/.github/workflows/scripts/qemu-6-tests.sh
/freebsd/sys/contrib/openzfs/.github/workflows/smatch.yml
/freebsd/sys/contrib/openzfs/.github/workflows/zfs-arm.yml
/freebsd/sys/contrib/openzfs/.github/workflows/zfs-qemu-packages.yml
/freebsd/sys/contrib/openzfs/.github/workflows/zfs-qemu.yml
/freebsd/sys/contrib/openzfs/.github/workflows/zloop.yml
/freebsd/sys/contrib/openzfs/Makefile.am
/freebsd/sys/contrib/openzfs/README.md
/freebsd/sys/contrib/openzfs/cmd/Makefile.am
/freebsd/sys/contrib/openzfs/cmd/zarcstat.in
/freebsd/sys/contrib/openzfs/cmd/zarcsummary
/freebsd/sys/contrib/openzfs/cmd/zdb/zdb.c
/freebsd/sys/contrib/openzfs/cmd/zed/Makefile.am
/freebsd/sys/contrib/openzfs/cmd/zed/agents/zfs_retire.c
/freebsd/sys/contrib/openzfs/cmd/zfs/zfs_main.c
/freebsd/sys/contrib/openzfs/cmd/zpool/zpool_main.c
/freebsd/sys/contrib/openzfs/cmd/zstream/zstream.c
/freebsd/sys/contrib/openzfs/cmd/zstream/zstream_dump.c
/freebsd/sys/contrib/openzfs/cmd/zstream/zstream_recompress.c
/freebsd/sys/contrib/openzfs/config/Rules.am
/freebsd/sys/contrib/openzfs/config/ax_pthread.m4
/freebsd/sys/contrib/openzfs/config/kernel-fs-parse.m4
/freebsd/sys/contrib/openzfs/config/kernel.m4
/freebsd/sys/contrib/openzfs/config/zfs-build.m4
/freebsd/sys/contrib/openzfs/configure.ac
/freebsd/sys/contrib/openzfs/contrib/debian/not-installed
/freebsd/sys/contrib/openzfs/contrib/pam_zfs_key/pam_zfs_key.c
/freebsd/sys/contrib/openzfs/copy-builtin
/freebsd/sys/contrib/openzfs/etc/Makefile.am
/freebsd/sys/contrib/openzfs/include/os/freebsd/zfs/sys/arc_os.h
/freebsd/sys/contrib/openzfs/include/os/linux/spl/sys/rwlock.h
/freebsd/sys/contrib/openzfs/include/sys/arc.h
/freebsd/sys/contrib/openzfs/include/sys/arc_impl.h
/freebsd/sys/contrib/openzfs/include/sys/fs/zfs.h
/freebsd/sys/contrib/openzfs/include/sys/metaslab_impl.h
/freebsd/sys/contrib/openzfs/include/sys/vdev_impl.h
/freebsd/sys/contrib/openzfs/include/sys/zap.h
/freebsd/sys/contrib/openzfs/include/sys/zap_impl.h
/freebsd/sys/contrib/openzfs/include/sys/zio_impl.h
/freebsd/sys/contrib/openzfs/lib/libspl/Makefile.am
/freebsd/sys/contrib/openzfs/lib/libzfs/Makefile.am
/freebsd/sys/contrib/openzfs/lib/libzfs/libzfs.abi
/freebsd/sys/contrib/openzfs/lib/libzfs/libzfs_changelist.c
/freebsd/sys/contrib/openzfs/lib/libzfs/libzfs_pool.c
/freebsd/sys/contrib/openzfs/lib/libzfs/libzfs_share.c
/freebsd/sys/contrib/openzfs/lib/libzfs_core/Makefile.am
/freebsd/sys/contrib/openzfs/lib/libzpool/Makefile.am
/freebsd/sys/contrib/openzfs/man/man4/zfs.4
/freebsd/sys/contrib/openzfs/man/man7/vdevprops.7
/freebsd/sys/contrib/openzfs/man/man8/zdb.8
/freebsd/sys/contrib/openzfs/man/man8/zpool-attach.8
/freebsd/sys/contrib/openzfs/man/man8/zpool-events.8
/freebsd/sys/contrib/openzfs/man/man8/zpool-iostat.8
/freebsd/sys/contrib/openzfs/man/man8/zpool.8
/freebsd/sys/contrib/openzfs/module/Kbuild.in
/freebsd/sys/contrib/openzfs/module/Makefile.bsd
/freebsd/sys/contrib/openzfs/module/nvpair/nvpair.c
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/arc_os.c
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/sysctl_os.c
/freebsd/sys/contrib/openzfs/module/os/linux/spl/spl-kmem.c
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/arc_os.c
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/vdev_disk.c
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/zfs_vfsops.c
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/zfs_vnops_os.c
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/zpl_super.c
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/zpl_xattr.c
/freebsd/sys/contrib/openzfs/module/zcommon/zfs_valstr.c
/freebsd/sys/contrib/openzfs/module/zcommon/zpool_prop.c
/freebsd/sys/contrib/openzfs/module/zfs/arc.c
/freebsd/sys/contrib/openzfs/module/zfs/ddt_log.c
/freebsd/sys/contrib/openzfs/module/zfs/dmu_objset.c
/freebsd/sys/contrib/openzfs/module/zfs/dmu_recv.c
/freebsd/sys/contrib/openzfs/module/zfs/dmu_send.c
/freebsd/sys/contrib/openzfs/module/zfs/dsl_bookmark.c
/freebsd/sys/contrib/openzfs/module/zfs/dsl_dir.c
/freebsd/sys/contrib/openzfs/module/zfs/dsl_scan.c
/freebsd/sys/contrib/openzfs/module/zfs/gzip.c
/freebsd/sys/contrib/openzfs/module/zfs/lz4_zfs.c
/freebsd/sys/contrib/openzfs/module/zfs/metaslab.c
/freebsd/sys/contrib/openzfs/module/zfs/sa.c
/freebsd/sys/contrib/openzfs/module/zfs/spa.c
/freebsd/sys/contrib/openzfs/module/zfs/vdev.c
/freebsd/sys/contrib/openzfs/module/zfs/vdev_label.c
/freebsd/sys/contrib/openzfs/module/zfs/vdev_raidz_math_aarch64_neon_common.h
/freebsd/sys/contrib/openzfs/module/zfs/zap.c
/freebsd/sys/contrib/openzfs/module/zfs/zap_fat.c
/freebsd/sys/contrib/openzfs/module/zfs/zap_impl.c
/freebsd/sys/contrib/openzfs/module/zfs/zap_micro.c
/freebsd/sys/contrib/openzfs/module/zfs/zfs_ioctl.c
/freebsd/sys/contrib/openzfs/module/zfs/zfs_quota.c
/freebsd/sys/contrib/openzfs/module/zfs/zil.c
/freebsd/sys/contrib/openzfs/module/zfs/zio.c
/freebsd/sys/contrib/openzfs/module/zstd/zfs_zstd.c
/freebsd/sys/contrib/openzfs/rpm/generic/zfs.spec.in
/freebsd/sys/contrib/openzfs/scripts/Makefile.am
/freebsd/sys/contrib/openzfs/scripts/coverage_report.pl
/freebsd/sys/contrib/openzfs/tests/Makefile.am
/freebsd/sys/contrib/openzfs/tests/runfiles/common.run
/freebsd/sys/contrib/openzfs/tests/runfiles/linux.run
/freebsd/sys/contrib/openzfs/tests/runfiles/sanity.run
/freebsd/sys/contrib/openzfs/tests/test-runner/bin/zts-report.py.in
/freebsd/sys/contrib/openzfs/tests/unit/.gitignore
/freebsd/sys/contrib/openzfs/tests/unit/Makefile.am
/freebsd/sys/contrib/openzfs/tests/unit/README.md
/freebsd/sys/contrib/openzfs/tests/unit/mock_dmu.c
/freebsd/sys/contrib/openzfs/tests/unit/mock_dmu.h
/freebsd/sys/contrib/openzfs/tests/unit/munit.c
/freebsd/sys/contrib/openzfs/tests/unit/munit.h
/freebsd/sys/contrib/openzfs/tests/unit/test_zap.c
/freebsd/sys/contrib/openzfs/tests/unit/unit.c
/freebsd/sys/contrib/openzfs/tests/unit/unit.h
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/Makefile.am
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/libzfs_input_check.c
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/Makefile.am
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/alloc_class/alloc_class.kshlib
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/alloc_class/alloc_class_012_pos.ksh
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/alloc_class/alloc_class_014_pos.ksh
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/alloc_class/alloc_class_015_neg.ksh
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/bclone/bclone_crossfs_corner_cases.ksh
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/bclone/bclone_crossfs_data.ksh
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/bclone/bclone_samefs_corner_cases.ksh
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/bclone/bclone_samefs_data.ksh
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/block_cloning/block_cloning_after_device_removal.ksh
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/block_cloning/block_cloning_lwb_buffer_overflow.ksh
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/block_cloning/block_cloning_replay.ksh
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/block_cloning/block_cloning_replay_encrypted.ksh
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zdb/zdb_file_layout_001.ksh
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zdb/zdb_file_layout_002.ksh
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zdb/zdb_file_layout_003.ksh
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zdb/zdb_file_layout_neg.ksh
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_mount/zfs_mount.kshlib
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_mount/zfs_mount_remount.ksh
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_mount/zfs_mount_ro_rw.ksh
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zhack/zhack_metaslab_leak.ksh
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zinject/zinject_args.ksh
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_expand/zpool_expand_005_pos.ksh
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_get/vdev_get.cfg
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_import/zpool_import_parallel_pos.ksh
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_set/zpool_set_inherit.ksh
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_trim/zpool_trim_partial.ksh
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_user/zpool_iostat/zpool_iostat_002_pos.ksh
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/dedup/dedup_bclone.ksh
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/dedup/dedup_bclone_pruned.ksh
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/dedup/dedup_fdt_create.ksh
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/dedup/dedup_fdt_import.ksh
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/dedup/dedup_fdt_pacing.ksh
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/dedup/dedup_legacy_create.ksh
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/dedup/dedup_legacy_fdt_mixed.ksh
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/dedup/dedup_legacy_fdt_upgrade.ksh
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/dedup/dedup_legacy_import.ksh
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/dedup/dedup_prune.ksh
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/dedup/dedup_zap_shrink.ksh
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/devices/devices_common.kshlib
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/fault/auto_spare_multiple.ksh
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/fault/auto_spare_rotational.ksh
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/redundancy/redundancy.kshlib
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/removal/removal_with_export.ksh
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/send_xdr_encoding/cleanup.ksh
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/send_xdr_encoding/send_xdr_encoding.cfg
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/send_xdr_encoding/send_xdr_encoding.kshlib
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/send_xdr_encoding/setup.ksh
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/send_xdr_encoding/xdr_bookmark_raw.ksh
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/send_xdr_encoding/xdr_bookmark_raw_with_write.ksh
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/send_xdr_encoding/xdr_incr_from_bookmark.ksh
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/send_xdr_encoding/xdr_incr_from_redacted.ksh
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/send_xdr_encoding/xdr_raw.ksh
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/send_xdr_encoding/xdr_redacted_full.ksh
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/send_xdr_encoding/xdr_redacted_received.ksh
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/send_xdr_encoding/xdr_redacted_received_raw.ksh
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/send_xdr_encoding/xdr_replication.ksh
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/send_xdr_encoding/xdr_resume.ksh
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/send_xdr_encoding/xdr_resume_bookmark_raw.ksh
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/send_xdr_encoding/xdr_resume_bookmark_raw_with_write.ksh
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/send_xdr_encoding/xdr_resume_raw.ksh
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/send_xdr_encoding/xdr_resume_redacted.ksh
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/snapshot/snapshot_002_pos.ksh
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/snapshot/snapshot_006_pos.ksh
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/stat/statx_dioalign.ksh
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/vdev_zaps/vdev_zaps_008_pos.ksh
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/zvol/zvol_stress/zvol_stress.ksh
/freebsd/sys/dev/firewire/firewire.c
/freebsd/sys/dev/firewire/firewirereg.h
/freebsd/sys/dev/firewire/if_fwe.c
/freebsd/sys/kern/imgact_elf.c
/freebsd/sys/kern/kern_exec.c
/freebsd/sys/kern/kern_exit.c
/freebsd/sys/kern/kern_fork.c
/freebsd/sys/kern/kern_procctl.c
/freebsd/sys/kern/kern_ucoredump.c
/freebsd/sys/modules/zfs/Makefile
/freebsd/sys/modules/zfs/zfs_config.h
/freebsd/sys/modules/zfs/zfs_gitrev.h
/freebsd/sys/netgraph/ng_ksocket.c
/freebsd/sys/netlink/netlink_io.c
/freebsd/sys/netpfil/ipfilter/netinet/ip_pptp_pxy.c
/freebsd/sys/netpfil/ipfw/ip_fw_nat.c
/freebsd/sys/netpfil/pf/if_pfsync.c
/freebsd/sys/sys/proc.h
/freebsd/sys/sys/signalvar.h
/freebsd/sys/sys/syscallsubr.h
/freebsd/tools/build/depend-cleanup.sh
/freebsd/usr.bin/procstat/procstat_bin.c
/freebsd/usr.sbin/fwget/pci/pci_video_amd
e5ef12cc06-Jun-2026 Baptiste Daroussin <bapt@FreeBSD.org>

nuageinit: install certs in /usr/share/certs/trusted

Suggested by: kevans

bad3c15d06-Jun-2026 Baptiste Daroussin <bapt@FreeBSD.org>

nuageinit: update documentation for phone_home and final_message

68e60bb806-Jun-2026 Baptiste Daroussin <bapt@FreeBSD.org>

nuageinit: expose decode_base64 to fix tests

58653bf405-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 ...

e01f202e05-Jun-2026 Baptiste Daroussin <bapt@FreeBSD.org>

nuageinit: implement final_message support

71e8122b07-May-2026 Baptiste Daroussin <bapt@FreeBSD.org>

nuage.lua: add encode_base64 helper

328a76d105-Jun-2026 Baptiste Daroussin <bapt@FreeBSD.org>

nuageinit: implement power_state_change and locale support

be711ade05-Jun-2026 Baptiste Daroussin <bapt@FreeBSD.org>

nuageinit: implement MIME multipart user-data support

Add support for MIME multipart/mixed user-data, allowing a single
user-data blob to contain multiple parts with different content types.

b56f029a05-Jun-2026 Baptiste Daroussin <bapt@FreeBSD.org>

nuageinit: implement ca_certs support

Add support for the 'ca_certs' cloud-config key which manages
CA certificates by writing them to /etc/ssl/certs/ and running
certctl rehash.

6d27d52c05-Jun-2026 Baptiste Daroussin <bapt@FreeBSD.org>

nuageinit: implement ntp support

Add support for the 'ntp' cloud-config key which configures NTP
by writing /etc/ntp.conf with server and pool entries.


/freebsd/contrib/ncurses/include/ncurses_defs
/freebsd/contrib/telnet/libtelnet/getent.c
/freebsd/include/stdlib.h
/freebsd/lib/libc/gen/disklabel.c
/freebsd/lib/libc/gen/fts.3
/freebsd/lib/libc/gen/getcap.3
/freebsd/lib/libc/gen/getcap.c
/freebsd/lib/libc/net/protocols
/freebsd/lib/libc/tests/gen/Makefile
/freebsd/lib/libc/tests/gen/fts_children_test.c
/freebsd/lib/libc/tests/gen/fts_misc_test.c
/freebsd/lib/libc/tests/gen/fts_regress_test.c
/freebsd/lib/libc/tests/gen/fts_set_test.c
/freebsd/lib/libutil/login_cap.c
/freebsd/libexec/getty/subr.c
nuageinit
nuageinit.7
tests/nuageinit.sh
/freebsd/libexec/rc/rc
/freebsd/sbin/dhclient/dhclient.conf.5
/freebsd/share/man/man7/arch.7
/freebsd/share/man/man8/rc.8
/freebsd/stand/efi/loader/arch/amd64/elf64_freebsd.c
/freebsd/stand/efi/loader/arch/i386/elf64_freebsd.c
/freebsd/stand/efi/loader/bootinfo.c
/freebsd/sys/arm64/arm64/exec_machdep.c
/freebsd/sys/arm64/arm64/trap.c
/freebsd/sys/arm64/include/ucontext.h
/freebsd/sys/compat/linuxkpi/common/include/net/mac80211.h
/freebsd/sys/compat/linuxkpi/common/src/linux_80211.c
/freebsd/sys/compat/linuxkpi/common/src/linux_80211.h
/freebsd/sys/compat/linuxkpi/common/src/linux_80211_macops.c
/freebsd/sys/dev/acpica/acpi_apei.c
/freebsd/sys/dev/vt/vt_buf.c
/freebsd/sys/dev/vt/vt_core.c
/freebsd/sys/fs/nfs/nfsrvstate.h
/freebsd/sys/fs/nfsserver/nfs_nfsdport.c
/freebsd/sys/fs/nfsserver/nfs_nfsdstate.c
/freebsd/sys/i386/linux/linux_ptrace_machdep.c
/freebsd/sys/kern/vfs_lookup.c
/freebsd/sys/kern/vfs_syscalls.c
/freebsd/sys/netinet6/udp6_usrreq.c
/freebsd/sys/security/audit/audit_trigger.c
/freebsd/sys/sys/signalvar.h
/freebsd/sys/sys/vnode.h
/freebsd/usr.bin/cap_mkdb/cap_mkdb.c
/freebsd/usr.bin/tip/tip/remote.c
/freebsd/usr.sbin/bhyve/aarch64/bhyverun_machdep.c
/freebsd/usr.sbin/bhyve/amd64/bhyverun_machdep.c
/freebsd/usr.sbin/bhyve/bhyverun.c
/freebsd/usr.sbin/bhyve/riscv/bhyverun_machdep.c
/freebsd/usr.sbin/etcupdate/etcupdate.8
/freebsd/usr.sbin/etcupdate/etcupdate.sh
/freebsd/usr.sbin/lpr/common_source/printcap.c
d798491205-Jun-2026 Baptiste Daroussin <bapt@FreeBSD.org>

nuageinit: implement ssh_authkey_fingerprints support

Add support for the 'ssh_authkey_fingerprints' cloud-config key
which logs SSH host key fingerprints to the console via ssh-keygen.

58184a3005-Jun-2026 Baptiste Daroussin <bapt@FreeBSD.org>

nuageinit: implement keyboard support

4662263c05-Jun-2026 Baptiste Daroussin <bapt@FreeBSD.org>

nuageinit: implement resolv_conf support

Add support for the 'resolv_conf' cloud-config key which writes
directly to /etc/resolv.conf.

797dad9105-Jun-2026 Baptiste Daroussin <bapt@FreeBSD.org>

nuageinit: implement mounts support

Add support for the 'mounts' cloud-config key which configures
mount points by appending entries to /etc/fstab and creating
the corresponding directories.

6e54d00805-Jun-2026 Baptiste Daroussin <bapt@FreeBSD.org>

nuageinit: add tests for bootcmd, ssh_deletekeys, disable_root, manage_etc_hosts

ba58e8ad05-Jun-2026 Baptiste Daroussin <bapt@FreeBSD.org>

nuageinit: implement manage_etc_hosts support

Add support for adding the instance hostname to /etc/hosts on the
127.0.0.1 and ::1 localhost lines, matching cloud-init's default
behaviour (manage_etc

nuageinit: implement manage_etc_hosts support

Add support for adding the instance hostname to /etc/hosts on the
127.0.0.1 and ::1 localhost lines, matching cloud-init's default
behaviour (manage_etc_hosts: true).

create a revolve_hostname helper to avoid code duplucation.

show more ...

b9be760805-Jun-2026 Baptiste Daroussin <bapt@FreeBSD.org>

nuageinit: implement bootcmd support

Add support for the 'bootcmd' cloud-config directive, which allows
running commands very early in the boot process, before the hostname
is set and before the net

nuageinit: implement bootcmd support

Add support for the 'bootcmd' cloud-config directive, which allows
running commands very early in the boot process, before the hostname
is set and before the network is configured.

- nuageinit: bootcmd() function follows the same pattern as runcmd(),
writing commands to /var/cache/nuageinit/bootcmds instead of runcmds.
It is the first entry in the pre_network_calls table.

- rc.d/nuageinit: execute /var/cache/nuageinit/bootcmds immediately
after /usr/libexec/nuageinit completes, before unmounting the config
drive. This ensures bootcmd runs before NETWORKING per cloud-init spec.

show more ...

22c1f5d004-Jun-2026 Baptiste Daroussin <bapt@FreeBSD.org>

nuageinit: complete SSH support with ssh_deletekeys and disable_root

Add missing SSH cloud-config options from cloud-init spec:

- ssh_deletekeys: remove existing SSH host keys on first boot so
ne

nuageinit: complete SSH support with ssh_deletekeys and disable_root

Add missing SSH cloud-config options from cloud-init spec:

- ssh_deletekeys: remove existing SSH host keys on first boot so
new ones are generated automatically by sshd(8).
Implemented as delete_ssh_host_keys() in nuage.lua using lfs.dir()
with a directory existence guard via lfs.attributes().

- disable_root: set PermitRootLogin to 'no' (or a custom value via
disable_root_opts) in /etc/ssh/sshd_config.

- disable_root_opts: optional string or array to override the
PermitRootLogin value used when disable_root is true. Only the
first array element is used.

show more ...

ea0932d704-Jun-2026 Baptiste Daroussin <bapt@FreeBSD.org>

nuageinit: refactor goto abuse in chpasswd()

Replace goto next/list pattern with proper elseif/else control
structure. The goto-based flow was fragile and hard to follow;
the elseif chain makes the

nuageinit: refactor goto abuse in chpasswd()

Replace goto next/list pattern with proper elseif/else control
structure. The goto-based flow was fragile and hard to follow;
the elseif chain makes the validation logic explicit and linear.

show more ...

0ba9b7b704-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 ...

12345