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

Add ${user.name} property #9

Closed
xerial opened this issue Mar 10, 2016 · 7 comments
Closed

Add ${user.name} property #9

xerial opened this issue Mar 10, 2016 · 7 comments

Comments

@xerial
Copy link
Member

xerial commented Mar 10, 2016

To know who is running/submitting the workflow.

@frsyuki
Copy link
Member

frsyuki commented Mar 10, 2016

add it to where?

@xerial
Copy link
Member Author

xerial commented Mar 11, 2016

So that we can use this variable inside digdag.yml

@frsyuki
Copy link
Member

frsyuki commented Apr 5, 2016

hm...I thought that the behavior should be exactly consistent as long as workflow definition is same. Embedding user name conflicts with that principal....but I understand that it's useful.

There're some others such as hostname, pid, path to home directory, digdag version, etc.

@frsyuki
Copy link
Member

frsyuki commented Apr 5, 2016

If workflow is uploaded to a server, what do we expect for ${user.name}...?
It should be maybe the local user name who ran digdag start command. If it's a scheduled session, it's maybe the user who uploaded the schedule.
But this means that digdag server needs to store those information on DB. Hm....that's complicated.

@xerial
Copy link
Member Author

xerial commented Apr 5, 2016

that's complicated

Agreed.

We can revisit this issue if Digdag will manage the name of owner or uploader of sessions.

@frsyuki
Copy link
Member

frsyuki commented Apr 5, 2016

I think this will be related to audit logging.
When audit logging is implemented, anyways digdag server needs to track "who started this workflow?", "from which IP?" and "when the REST API called?" (and maybe "using which API key ID?"). I think it's ok to expose those information to workflow as built-in parameters like ${user.name}, ${user.ip}, ${user.hostname} etc.

In this case, ${user.name} (or perhaps ${user.id}, because it should be impossible to camouflage) will return "digdag" or something special when a session is triggered by a schedule. Then, we need another variable like ${user.definer} that runs the user who uploaded the revision of the workflow.

Yes, I think we need to revisit this issue when Digdag implements audit logging architecture.

TrsNium referenced this issue in TrsNium/digdag Jan 29, 2020
@yoyama
Copy link
Contributor

yoyama commented Dec 22, 2022

Close the old issue. Please reopen or file new one if you need.

@yoyama yoyama closed this as completed Dec 22, 2022
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