| e573007a | 30-Jul-2024 |
Jose Luis Duran <[email protected]> |
nuageinit: tests: Cleanup
- Export NUAGE_FAKE_ROOTDIR only once - Use the header section of the test to require the root user - Use the PWD environment variable - Set the root/sys shell as /bin/sh -
nuageinit: tests: Cleanup
- Export NUAGE_FAKE_ROOTDIR only once - Use the header section of the test to require the root user - Use the PWD environment variable - Set the root/sys shell as /bin/sh - Use RFC 5737 reserved IP addresses
Signed-off-by: Jose Luis Duran <[email protected]> (cherry picked from commit e72457c4f5166eef2a27249e02f3c1e9a1cf852d)
show more ...
|
| 9881d68b | 30-Jul-2024 |
Jose Luis Duran <[email protected]> |
nuageinit: Fix passwords
The hashed password usually contains a "$" sign, which, when used on a shell, must be escaped. Also, the plain text password may contain special characters that require esc
nuageinit: Fix passwords
The hashed password usually contains a "$" sign, which, when used on a shell, must be escaped. Also, the plain text password may contain special characters that require escaping.
Add a quick fix by enclosing it in single quotes. Note that if the plain text password contains a "'", it will still fail. This will be properly fixed in later commits.
Some here documents require the document to be a string literal, especially when passing invalid characters. Enclose it in single quotes.
Signed-off-by: Jose Luis Duran <[email protected]> (cherry picked from commit b9ce743c5447e90c2c97f4d49e048c301f708527)
show more ...
|
| 182ff41e | 30-Jul-2024 |
Jose Luis Duran <[email protected]> |
nuageinit: Standardize warning/error messages
Standardize the utilities from nuage.lua, to return nil on failure, plus an error message as a second result, and some value different from nil on succe
nuageinit: Standardize warning/error messages
Standardize the utilities from nuage.lua, to return nil on failure, plus an error message as a second result, and some value different from nil on success.
Make warnmsg() and errmsg() append "nuageinit: " by default. Pass an optional second parameter as false to avoid printing this tag.
Signed-off-by: Jose Luis Duran <[email protected]> (cherry picked from commit 945632ca76117029e7bd1f46d17ccb378973daf7)
show more ...
|
| 1eaf3331 | 30-Jul-2024 |
Jose Luis Duran <[email protected]> |
nuageinit: Replace os.execute with Lua libraries
Prefer posix.sys.stat's chmod() to os.execute(). While here, change the name of the locals to be more descriptive.
Signed-off-by: Jose Luis Duran <
nuageinit: Replace os.execute with Lua libraries
Prefer posix.sys.stat's chmod() to os.execute(). While here, change the name of the locals to be more descriptive.
Signed-off-by: Jose Luis Duran <[email protected]> (cherry picked from commit 9b2d92addc31ba6f5696c85d184a45d43e9073dc)
show more ...
|
| 3a73c77f | 20-Aug-2024 |
Baptiste Daroussin <[email protected]> |
nuageinit: readd ssh key parsing when key is in meta_data.json
in openstack when no user is specified but a sshkey is provided the information is stored in meta_data.json under "public_keys"
PR: 28
nuageinit: readd ssh key parsing when key is in meta_data.json
in openstack when no user is specified but a sshkey is provided the information is stored in meta_data.json under "public_keys"
PR: 280461 Reported by: tdb
(cherry picked from commit 19fb9ad746517c7af9d79a982334b2550f285355)
show more ...
|
| 5f725657 | 23-Jul-2024 |
Jose Luis Duran <[email protected]> |
nuageinit: Fix tests
Commit 07d17ca189fcf3cc44b7706040b05ca8135c3b85 set the recommended permissions for the SSH authorized keys file and directory. The tests, however, were failing on CI.
Use sta
nuageinit: Fix tests
Commit 07d17ca189fcf3cc44b7706040b05ca8135c3b85 set the recommended permissions for the SSH authorized keys file and directory. The tests, however, were failing on CI.
Use stat to check for the proper permissions.
Fixes: 07d17ca189f nuageinit: Set recommended SSH permissions Reported by: Jenkins
(cherry picked from commit 8edd6c07c8dafcc5828bceb5fea0684c7d0d0775)
show more ...
|
| 61717917 | 23-Jul-2024 |
Jose Luis Duran <[email protected]> |
nuageinit: Set recommended SSH permissions
As stated in sshd(8), the recommended permissions for ~/.ssh are read/write/execute for the user, and not accessible by others; and the recommended permiss
nuageinit: Set recommended SSH permissions
As stated in sshd(8), the recommended permissions for ~/.ssh are read/write/execute for the user, and not accessible by others; and the recommended permissions for ~/.ssh/authorized_keys are read/write for the user, and not accessible by others.
(cherry picked from commit 07d17ca189fcf3cc44b7706040b05ca8135c3b85)
show more ...
|
| c7887c8e | 23-Jul-2024 |
Jose Luis Duran <[email protected]> |
nuageinit: Accept plain text passwords
Per pw(8), when -H is set, the password should be supplied already encrypted in a form suitable for writing directly to the password database (passwd in cloud-
nuageinit: Accept plain text passwords
Per pw(8), when -H is set, the password should be supplied already encrypted in a form suitable for writing directly to the password database (passwd in cloud-init tems); -h provides a special interface by which interactive scripts can set an account password using pw(8) in plain text (plain_text_passwd in cloud-init terms).
The default user (freebsd) is defined with a plain_text_passwd (freebsd), not with an encrypted one.
(cherry picked from commit 7b73ecfe648487c7706ac2b854dcf1435e60e4ca)
show more ...
|
| 30346359 | 05-Jun-2024 |
Baptiste Daroussin <[email protected]> |
nuageinit: fix authorized_key test
After miss reading the cloudinit spec I ended up writting a wrong test for basic ssh key setup, nuageinit has been fixed, but not the test, here is the actual fix.
nuageinit: fix authorized_key test
After miss reading the cloudinit spec I ended up writting a wrong test for basic ssh key setup, nuageinit has been fixed, but not the test, here is the actual fix.
Reported by: markj
(cherry picked from commit 8d7331e62a5aa75760ac54e3cb1594b0001645c6)
show more ...
|