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

Significant parameters shown in GUI. #2164

Closed
hirolau opened this issue Jun 26, 2017 · 8 comments
Closed

Significant parameters shown in GUI. #2164

hirolau opened this issue Jun 26, 2017 · 8 comments
Labels

Comments

@hirolau
Copy link
Contributor

hirolau commented Jun 26, 2017

The docs state: "An insignificant Parameter might also be used to specify a password or other sensitive information that should not be made public via the scheduler"

However, given this code:

class Test(luigi.Task):
    user = luigi.Parameter(significant=True)
    password = luigi.Parameter(significant=False)

    def complete(self):
      return False
    def run(self):
      pass

if __name__ == '__main__':
    luigi.run(['Test','--user','myself','--password','123456'])

In the GUI when looking at the task I see: "user=myself, password=123456". The password is not hidden.

B:\luigi\code>pip show luigi
Name: luigi
Version: 2.6.2
@dckc
Copy link
Contributor

dckc commented Aug 28, 2017

FWIW: I worked around this by moving the password to an environment variable and using the parameter to name the environment variable.

@aldanor
Copy link
Contributor

aldanor commented Aug 28, 2017

I'm also wondering about this. Could insignificant parameters be hidden from the GUI?

@langelgjm
Copy link

Title should be "Insignificant parameters shown in GUI"

I think the culprit is that in several places, the Task.to_str_params() method is called with the default only_significant=False argument.

E.g., in notifications.py, an e-mail body is created that would include insignificant parameters in plain text.

Contrast this with deps_tree.py which excludes insignificant parameters.

Anything that is going to be displayed for visualization/notification should exclude insignificant / only include significant parameters.

@rhaarm
Copy link

rhaarm commented Oct 25, 2017

Is someone working on a PR for this?

@uatach
Copy link
Contributor

uatach commented Apr 27, 2018

This still happens, any news?

@dlstadther
Copy link
Collaborator

@edsonduarte1990 There have been many differing opinions around this (and the similar). For the open PR i'm aware of, see #2278

@stale
Copy link

stale bot commented Aug 26, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If closed, you may revisit when your time allows and reopen! Thank you for your contributions.

@stale stale bot added the wontfix label Aug 26, 2018
@dlstadther
Copy link
Collaborator

Closing, given the merge of #2278

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants