Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mitogen leaks local host information to remote host #581

Closed
polski-g opened this issue Apr 16, 2019 · 2 comments
Closed

Mitogen leaks local host information to remote host #581

polski-g opened this issue Apr 16, 2019 · 2 comments

Comments

@polski-g
Copy link

While running ansible using mitogen as the strategy_plugin, if you look at the process listing on the remote host (ps auxw) you can see the connecting host username and connecting host name in the process list.

Assuming your local username is LUSER and local host name is LHOST, you would see the following in the remote host process listing:

ps auxw|grep mitogen
root 17053 ... 0:01 /usr/bin/python(mitogen:LUSER@LHOST:29900)

Can this information be obfuscated in some way?

@dw
Copy link
Member

dw commented Apr 16, 2019

Yes. It is a very simple option to add, it's just nobody had previously asked for it. The default is there to help admins figure out what's causing a problem. Thanks for reporting this

dw added a commit that referenced this issue Apr 16, 2019
* origin/issue581:
  issue #581: expose mitogen_mask_remote_name variable.
@dw
Copy link
Member

dw commented Apr 16, 2019

There is a new mitogen_mask_remote_name variable. You can set it anywhere convenient (mostly likely inventory host or group) and it'll cause processes to identify as python(mitogen:ansible). Let me know if you have any trouble :)


This is now on the master branch and will make it into the next release. To be updated when a new release is made, subscribe to https://networkgenomics.com/mail/mitogen-announce/

Thanks for reporting this!

@dw dw closed this as completed Apr 16, 2019
dw added a commit that referenced this issue May 19, 2019
* origin/v027:
  docs: update Changelog for release.
  Bump version for release.
  issue #587: update Changelog
  issue #587: ansible: descriptive version check during startup.
  ansible: descriptive version check during startup.
  issue #581: expose mitogen_mask_remote_name variable.
  issue #576: fix Kwargs minor version check.
  issue #574: fix ISSUE_TEMPLATE link
  issue #575: fix exception text rendering
  docs: remove infringing mark
  docs: fix config var scope
  docs: faster stats-preserving redirect
  docs: update ansible page
  issue #570: add firewalld to always-fork list for now.
  docs: removed excess word
  docs: fixed message routing example description
  docs: removed repeated word
  docs: update Changelog; closes #557.
  issue #557: support correct cpu_set_t size
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants