Add support for alternative location of the public key (not $HOME/.ssh/authorized_keys)
Bug #1983437 reported by
Jose Guedez
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
charm-local-users |
Fix Released
|
Wishlist
|
Mert Kirpici |
Bug Description
When using sshd configurations that are not the default (for example, when using userdir-ldap [0]), the intended public key location might be different from the standard $HOME/.
In those cases the charm configures the users as usual, but remote sessions don't work because of the missing file with the public keys. It would be useful to be able to configure the location of the file, for example: /etc/ssh/
Related branches
~mertkirpici/charm-local-users:lp/1983437
- Eric Chen: Approve
- 🤖 prod-jenkaas-bootstack (community): Approve (continuous-integration)
- Gabriel Cocenza: Approve
- Erhan Sunar: Pending requested
- BootStack Reviewers: Pending requested
-
Diff: 623 lines (+338/-51)19 files modifiedMakefile (+1/-5)
config.yaml (+7/-0)
lib/local_users.py (+46/-19)
src/charm.py (+2/-1)
tests/functional/requirements.txt (+3/-0)
tests/functional/tests/bundles/base.yaml (+6/-0)
tests/functional/tests/bundles/bionic.yaml (+1/-0)
tests/functional/tests/bundles/focal.yaml (+1/-0)
tests/functional/tests/bundles/jammy.yaml (+1/-0)
tests/functional/tests/bundles/overlays/bionic.yaml.j2 (+1/-0)
tests/functional/tests/bundles/overlays/focal.yaml.j2 (+1/-0)
tests/functional/tests/bundles/overlays/jammy.yaml.j2 (+1/-0)
tests/functional/tests/bundles/overlays/local-charm-overlay.yaml.j2 (+3/-0)
tests/functional/tests/modules/__init__.py (+0/-0)
tests/functional/tests/modules/utils.py (+37/-0)
tests/functional/tests/test_local_users.py (+89/-0)
tests/functional/tests/tests.yaml (+16/-0)
tests/unit/test_local_users.py (+118/-22)
tox.ini (+4/-4)
tags: | added: bseng-340 |
Changed in charm-local-users: | |
assignee: | nobody → Mert Kirpici (mertkirpici) |
status: | New → In Progress |
Changed in charm-local-users: | |
milestone: | none → 22.10 |
status: | In Progress → Fix Committed |
Changed in charm-local-users: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
This feature is included in rev15 of the local-users charm. It is in the candidate channel.