OCPBUGS-85497: only check password hash in /etc/shadow#6030
OCPBUGS-85497: only check password hash in /etc/shadow#6030cheesesashimi wants to merge 1 commit into
Conversation
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
When usermod -P is used, the last password change field is changed. When the MachineConfig is rolled back, this value remains the same even though the actual password value has been changed back to its previous value. Consequently, the E2E test should only compare the password hashes instead of the full line. Assisted-By: Claude Opus 4.6
|
@cheesesashimi: This pull request references Jira Issue OCPBUGS-85497, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Repository: openshift/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cheesesashimi The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
4286cd2 to
749f4e3
Compare
|
/test e2e-gcp-op-part1 |
|
@cheesesashimi: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
- What I did
In #5889, some changes were introduced to how password changes are done. This had the side-effect of breaking the
TestNoRebootE2E test. The root cause of the test failure is that the E2E test was considering the entire line in/etc/shadowwhen it should only consider whether the password hash changed.The reason why is because the 3rd column changed during the password change to reflect the day of the password change. Technically speaking, if one were to change their password multiple times in a single day, this value would only change oncee. By comparison, the E2E test should only consider whether the password hash was changed without giving consideration to when it was changed.
This PR remedies this situation.
- How to verify it
Run the
/test e2e-gcp-op-part1on this PR and ensure that TestNoReboot passes.- Description for the changelog
TestNoReboot should only consider the password hash