This is an automated email from the git hooks/post-receive script. x2go pushed a change to branch master in repository x2gobroker. from 0b51f52 Make remote agent's SSH HostKey policy configurable globally, backend-wise and per session profile. Fallback to RejectPolicy by default. (See Debian bug #922314). new a6b59c2 x2gobroker/agent.py: Assure that remote_agent['host_key_policy'] is always the name of the Parmiko MissingHostKeyPolicy, not the class object itself. new e9b4077 sbin/x2gobroker-testagent: Fix indentation, set 'host_key_policy' as a string (not class). new d48d241 etc/x2gobroker.conf: Update info about default-agent-hostkey-policy parameter. new 10849bc debian/changelog: update from Git history The 4 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Summary of changes: debian/changelog | 29 +++++++++++++++++++++++++++++ etc/x2gobroker.conf | 12 ++++++++---- sbin/x2gobroker-testagent | 19 +++++++++---------- x2gobroker/agent.py | 10 +++++----- 4 files changed, 51 insertions(+), 19 deletions(-) -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2gobroker.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch master in repository x2gobroker. commit a6b59c22062ff3584bb2a5434bb08d5a0f10e6d1 Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de> Date: Sun Apr 21 16:10:24 2019 +0200 x2gobroker/agent.py: Assure that remote_agent['host_key_policy'] is always the name of the Parmiko MissingHostKeyPolicy, not the class object itself. --- x2gobroker/agent.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/x2gobroker/agent.py b/x2gobroker/agent.py index 3530323..797ec44 100644 --- a/x2gobroker/agent.py +++ b/x2gobroker/agent.py @@ -196,14 +196,14 @@ def _call_remote_broker_agent(username, task, cmdline_args=[], remote_agent=None if remote_agent is None: logger_error.error('With the SSH agent-query-mode a remote agent host (hostname, hostaddr, port) has to be specified!') elif 'host_key_policy' not in remote_agent or remote_agent['host_key_policy'] == 'WarningPolicy': - remote_agent['host_key_policy'] = paramiko.WarningPolicy() + _hostkey_policy = paramiko.WarningPolicy() elif remote_agent['host_key_policy'] == 'RejectPolicy': - remote_agent['host_key_policy'] = paramiko.RejectPolicy() + _hostkey_policy = paramiko.RejectPolicy() elif remote_agent['host_key_policy'] == 'AutoAddPolicy': - remote_agent['host_key_policy'] = paramiko.AutoAddPolicy() + _hostkey_policy = paramiko.AutoAddPolicy() else: logger_error.error('Invalid SSH HostKey Policy: "{policy}", falling back to "RejectPolicy"!'.format(policy=remote_agent['host_key_policy'])) - remote_agent['host_key_policy'] = paramiko.RejectPolicy() + _hostkey_policy = paramiko.RejectPolicy() remote_hostaddr = None remote_hostname = None @@ -244,7 +244,7 @@ def _call_remote_broker_agent(username, task, cmdline_args=[], remote_agent=None client.load_system_host_keys() if os.path.exists(os.path.expanduser("~/.ssh/known_hosts")): client.load_host_keys(os.path.expanduser("~/.ssh/known_hosts")) - client.set_missing_host_key_policy(remote_agent['host_key_policy']) + client.set_missing_host_key_policy(_hostkey_policy) client.connect(_remote_sshserver, remote_port, remote_username, look_for_keys=True, allow_agent=True) result = [] -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2gobroker.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch master in repository x2gobroker. commit e9b4077ba6973f91c63b4fd3da37ec4e22edf367 Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de> Date: Sun Apr 21 16:11:05 2019 +0200 sbin/x2gobroker-testagent: Fix indentation, set 'host_key_policy' as a string (not class). --- sbin/x2gobroker-testagent | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/sbin/x2gobroker-testagent b/sbin/x2gobroker-testagent index 9289f2b..38a6ca2 100755 --- a/sbin/x2gobroker-testagent +++ b/sbin/x2gobroker-testagent @@ -120,16 +120,15 @@ if __name__ == "__main__": list_tasks = cmdline_args.list_tasks -local_agent = (hostname == 'LOCAL') -query_mode = local_agent and 'LOCAL' or 'SSH' -if local_agent: remote_agent = None -else: remote_agent = {'hostaddr': hostname, 'port': port, } - -if remote_agent and cmdline_args.add_to_known_hosts: - remote_agent.update({ - 'host_key_policy': AutoAddPolicy(), - }) - + local_agent = (hostname == 'LOCAL') + query_mode = local_agent and 'LOCAL' or 'SSH' + if local_agent: remote_agent = None + else: remote_agent = {'hostaddr': hostname, 'port': port, } + + if remote_agent and cmdline_args.add_to_known_hosts: + remote_agent.update({ + 'host_key_policy': 'AutoAddPolicy', + }) def call_agent(task, **kwargs): try: -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2gobroker.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch master in repository x2gobroker. commit d48d241376e3ac4961edfd33d9a5dd2fae8cd25d Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de> Date: Sun Apr 21 16:11:38 2019 +0200 etc/x2gobroker.conf: Update info about default-agent-hostkey-policy parameter. --- etc/x2gobroker.conf | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/etc/x2gobroker.conf b/etc/x2gobroker.conf index d88faa6..c913efa 100644 --- a/etc/x2gobroker.conf +++ b/etc/x2gobroker.conf @@ -257,19 +257,23 @@ # # There are two simple ways to create this known_hosts file: # -# (a) su - x2gobroker -c "ssh <x2goserver>" +# (a) su - x2gobroker -c "ssh ssh -o HostKeyAlgorithms=ssh-rsa <x2goserver>" # # On the command line, you get prompted to confirm the remote # X2Go server's Follow OpenSSH interactive dialog for accepting # the remote host's host key. # +# You will see an error coming from x2gobroker-agent.pl which can be +# ignored. The important part is that you accepted the X2Go Server's +# host key. +# # (b) x2gobroker-testagent --add-to-known-hosts --host <x2goserver> # # This command will populate the known_hosts file with the remote # X2Go server's hostkey while trying to hail its X2Go Broker Agent -# The host key's fingerprint will be shown on stdout, but there will -# be no interactive confirmation. If unsure about this, use approach -# (a) given above. +# The host key's fingerprint will not be shown on stdout and there +# will be no interactive confirmation (patches welcome!!!). +# If unsure about this, use approach (a) given above. # #default-agent-hostkey-policy=RejectPolicy -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2gobroker.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch master in repository x2gobroker. commit 10849bcd576067a1790762e9ea8d30ba60ad794c Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de> Date: Sun Apr 21 16:16:01 2019 +0200 debian/changelog: update from Git history --- debian/changelog | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/debian/changelog b/debian/changelog index b7afa9d..a4adc0a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -7,6 +7,35 @@ x2gobroker (0.0.4.1-0x2go1) UNRELEASED; urgency=medium - Fix some man page typos. - x2gobroker/defaults.py: Support offline builds with no DNS or other means of hostname resolution.. + - sbin/x2gobroker-keygen: Fix call to + x2gobroker.utils.get_fingerprint_with_colons(). Thanks to Linnea Skogtvedt + for spotting and reporting this. + - Make builds reproducible. Thanks to Chris Lamb for providing a patch. + (See Debian bug #922137). + - Correctly initialize the loggers when using x2gobroker via WSGI in + Apache2. + - x2gobroker-wsgi: Place WSGI script symlink (pointing to + <BINDIR>/x2gobroker) into a dedicated folder and configure Apache2 + to use WSGIScriptAlias from that folder. (See Debian bug #922040). + - sbin/x2gobroker-testagent: Fix retrieval of available tasks. + - Permit `asyncio` to create event loops on any thread (required on + multithreaded WSGI servers using Python 3). + - Make remote agent's SSH HostKey policy configurable globally, backend-wise + and per session profile. Fallback to RejectPolicy by default. (See Debian + bug #922314). + - x2gobroker/agent.py: Assure that remote_agent['host_key_policy'] is always + the name of the Parmiko MissingHostKeyPolicy, not the class object itself. + - sbin/x2gobroker-testagent: Fix indentation, set 'host_key_policy' as a + string (not class). + - etc/x2gobroker.conf: Update info about default-agent-hostkey-policy + parameter. + * debian/po: + + Adopt debconf translations from Debian. + + [ Linnea Skogtvedt ] + * New upstream version (0.0.4.1): + - x2gobroker/brokers/base_broker.py: Log IP address of authentication + attempts. (See Debian bug #922458). -- X2Go Release Manager <git-admin@x2go.org> Sun, 03 Feb 2019 03:57:46 +0100 -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2gobroker.git