marcusianlevine edited a comment on issue #8421: URL: https://github.com/apache/airflow/issues/8421#issuecomment-671955151
Hmm it's been awhile since I've worked on the UI I'll do some digging in the code and see if I can come up with a reasonable design... Do you happen to know off-hand if there is any way to tell at run-time whether DAG code is being compiled by the webserver? Because we need the Variable's `key` to do the conditional masking, we really need to mask the Variable values at the time that `Variable.get` is called, otherwise we'd have to search for every possible Variable value in every field's contents... I'm also not sure how this would work with serialized DAGs: once they're serialized they will have the unmasked values, so if the webserver just reads the serialized DAG directly we'd have no way to know whether to mask certain Variables since they would already be just plain values Maybe we need a more dynamic way of injecting Variables rather than reading them at DAG compile time and writing their values into the DB? I'm thinking some kind of Variable pointer syntax like `<Var key=my-variable>` that gets rendered differently based on whether the code is being run on the webserver or not ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org