PTU5KAS/kas
Jan Kiszka e3af001f53 libkas: Do not overwrite existing .ssh/config
kas wrongly assumes so far that setting $HOME will also make ssh use the
kas provided $HOME/.ssh/ folder. But ssh will pick up the homedir from
/etc/passwd instead. This could cause kas to overwrite the users
~/.ssh/config when using SSH_PRIVATE_KEY*. We can try to cure ssh config
isolation, but that may cause surprises for users so far silently
relying on it.

For now, as a stable fix, avoid to cause damage to ~/.ssh/config in
cases where this is likely not desired, namely when there is already
config file. Warn if that file does not contain the generated content
from a previous run.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
2021-11-23 18:26:13 +01:00
..
plugins for_all_repos: Empty KAS_REPO_URL if repo is not under version control 2021-10-15 15:42:27 +02:00
__init__.py __init__: Better support introspection 2018-12-07 09:56:09 +01:00
__main__.py Drop unnecessary shebang lines 2021-08-30 21:56:49 +02:00
__version__.py Release 2.6.2 2021-11-02 13:01:21 +01:00
config.py Fall back to .config.yaml if no configuration file given 2021-10-09 15:00:05 +02:00
configschema.py yml: Move json schema from python dict to standalone json file 2021-10-05 10:28:24 +02:00
context.py context: Add support for relative KAS_WORK/BUILD/REPO_REF_DIR paths 2021-08-18 12:43:09 +02:00
includehandler.py includehandler: Simplify code 2021-10-01 11:16:28 +02:00
kas.py plugins: Invoke setup_parser_common_args explicitly from setup_parser 2021-10-09 15:00:05 +02:00
libcmds.py libcmds: Write more bblayers.conf boilerplate settings 2021-10-11 08:20:32 +02:00
libkas.py libkas: Do not overwrite existing .ssh/config 2021-11-23 18:26:13 +01:00
repos.py Enable gerrit/gitlab/github refspecs 2021-07-19 07:57:32 +02:00
schema-kas.json Add kconfiglib-based menu plugin 2021-10-09 15:00:05 +02:00