Bug 1885186
| Summary: | Removing ssh keys MC does not remove the key from authorized_keys | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Pablo Alonso Rodriguez <palonsor> |
| Component: | Machine Config Operator | Assignee: | Kirsten Garrison <kgarriso> |
| Status: | CLOSED ERRATA | QA Contact: | Michael Nguyen <mnguyen> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 4.5 | CC: | mbetti, mkrejci |
| Target Milestone: | --- | Keywords: | Security |
| Target Release: | 4.8.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: |
Cause: users were allowed to try to delete core user and all sshkeys due to a bug in the code base
Consequence: the user and keys seemed to be deleted but the keys still remained
Fix: enforce the original rules which does not permit users to delete the core user and requires at least 1 ssh key instead of silently failing.
Result: the behavior of the system now matches the error messages resulting in predictable behaviour and expectations.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-07-27 22:33:30 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1932638 | ||
|
Description
Pablo Alonso Rodriguez
2020-10-05 11:27:05 UTC
Hi,
Creating a machineconfig with `passwd` section like this seems to workaround the issue in my test cluster:
```
passwd:
users:
- name: core
sshAuthorizedKeys: []
```
Verified on 4.8.0-0.nightly-2021-02-10-155958 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: OpenShift Container Platform 4.8.2 bug fix and security update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2021:2438 |