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

option to set flag true to be used in subtenant #4

Closed
cuxtud opened this issue Oct 26, 2021 · 3 comments
Closed

option to set flag true to be used in subtenant #4

cuxtud opened this issue Oct 26, 2021 · 3 comments

Comments

@cuxtud
Copy link

cuxtud commented Oct 26, 2021

https://d.pr/i/5z1eUj by adding the true flag the cypher can be used with tasks whih are attached to workflow used in subtenants.

@lukelloydagi
Copy link

I have the same requirement 👍

@tryfan
Copy link
Owner

tryfan commented Oct 27, 2021

This isn't currently possible due to limitations of the Morpheus API. The subtenant use of cyphers from another tenant is handled internally by Morpheus application code. The best way to use it is to use a bash task to access the cypher and a result type to feed it into a python task.

@tryfan tryfan closed this as completed Oct 27, 2021
@lukelloydagi
Copy link

I thought I would drop a comment to say this is possible without using this Python module.

Use <%=cypher.read('secret/myuserpassword')%> as a command argument within your Morpheus task. Then within your Python code use cypher = sys.argv[1] which will have the value. It will call/use the secret/myuserpassword Cypher stored in the master tenant 👍

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

3 participants