Giter VIP home page Giter VIP logo

Comments (7)

frsyuki avatar frsyuki commented on July 17, 2024

add it to where?

from digdag.

xerial avatar xerial commented on July 17, 2024

So that we can use this variable inside digdag.yml

from digdag.

frsyuki avatar frsyuki commented on July 17, 2024

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.

from digdag.

frsyuki avatar frsyuki commented on July 17, 2024

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.

from digdag.

xerial avatar xerial commented on July 17, 2024

that's complicated

Agreed.

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

from digdag.

frsyuki avatar frsyuki commented on July 17, 2024

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.

from digdag.

yoyama avatar yoyama commented on July 17, 2024

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

from digdag.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.