Skip to content

Disables password expiration and inactivity policies#1106

Merged
jovial merged 2 commits into
stackhpc/yogafrom
bugfix/yoga/cis
Jul 12, 2024
Merged

Disables password expiration and inactivity policies#1106
jovial merged 2 commits into
stackhpc/yogafrom
bugfix/yoga/cis

Conversation

@jovial
Copy link
Copy Markdown
Contributor

@jovial jovial commented Jun 21, 2024

This was causing the kayobe and kolla service accounts to be locked out of the system.

@jovial
Copy link
Copy Markdown
Contributor Author

jovial commented Jun 21, 2024

I've not tested this yet. It seems common to use 99999 but we may be able to use -1 instead. See: https://linux.die.net/man/1/chage

@MoteHue
Copy link
Copy Markdown
Contributor

MoteHue commented Jun 24, 2024

I've not tested this yet. It seems common to use 99999 but we may be able to use -1 instead. See: https://linux.die.net/man/1/chage

FWIW I found running the chage command with -1 didn't make any change, I figured that was why it's common to use 99999

Comment thread etc/kayobe/inventory/group_vars/overcloud/cis Outdated
@jovial
Copy link
Copy Markdown
Contributor Author

jovial commented Jul 8, 2024

At least on Ubuntu, you'd would of had to run the hardening before host configure, as by default, it doesn't change existing users without ubtu22cis_disruption_high:

ubuntu@will-controller-01:~$ sudo chage -l stack
Last password change                                    : Jul 08, 2024
Password expires                                        : never
Password inactive                                       : never
Account expires                                         : never
Minimum number of days between password change          : 0
Maximum number of days between password change          : 99999
Number of days of warning before password expires       : 7
ubuntu@will-controller-01:~$ sudo chage -l kolla
Last password change                                    : Jul 08, 2024
Password expires                                        : never
Password inactive                                       : never
Account expires                                         : never
Minimum number of days between password change          : 0
Maximum number of days between password change          : 99999
Number of days of warning before password expires       : 7

I've also found the logic in the shell command checking which entries to update will never increase the expiry:
"Ensure password expiration is 365 days or less". So may need some tasks to do this.

@jovial jovial force-pushed the bugfix/yoga/cis branch from 164a471 to 3e51181 Compare July 8, 2024 16:35
This was causing the kayobe and kolla service accounts to be locked
out of the system.
@jovial jovial force-pushed the bugfix/yoga/cis branch from 3e51181 to be8fccb Compare July 8, 2024 16:38
@jovial jovial marked this pull request as ready for review July 10, 2024 11:01
@jovial jovial requested a review from a team as a code owner July 10, 2024 11:01
markgoddard
markgoddard previously approved these changes Jul 11, 2024
Comment thread etc/kayobe/inventory/group_vars/overcloud/cis Outdated
@jovial jovial merged commit 6a5920c into stackhpc/yoga Jul 12, 2024
@jovial jovial deleted the bugfix/yoga/cis branch July 12, 2024 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants