Skip to content

Instantly share code, notes, and snippets.

@rbrady
Created March 2, 2017 14:14
Show Gist options
  • Save rbrady/c154c3e9a278ff18d536a597e5e6112d to your computer and use it in GitHub Desktop.
Save rbrady/c154c3e9a278ff18d536a597e5e6112d to your computer and use it in GitHub Desktop.
Proposed Syntax to Protect Sensitive Data in Custom Actions
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