Created
March 2, 2017 14:14
-
-
Save rbrady/c154c3e9a278ff18d536a597e5e6112d to your computer and use it in GitHub Desktop.
Proposed Syntax to Protect Sensitive Data in Custom Actions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from mistral_lib import actions | |
from mistral_lib.security import secret | |
class MyCustomAction(actions.Action): | |
@secret(['password']) | |
def __init__(self, username, password): | |
self.username = username | |
self.password = password | |
def run(self): | |
# do some work | |
return actions.Result(data={}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment