mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-21 20:18:06 +02:00
14 lines
407 B
Python
14 lines
407 B
Python
import os
|
|||
|
|||
|
|||
class JobRequest:
|
|||
"""Data-transfer object populated from environment variables.
|
|||
|
|||
The `cmd` attribute is a taint source: os.environ["JOB_CMD"] is
|
|||
user-controlled at deployment time / via process substitution.
|
|||
"""
|
|||
|
|||
def __init__(self):
|
|||
self.cmd = os.environ.get("JOB_CMD") # taint flows into object attribute
|
|||
self.label = os.environ.get("JOB_LABEL", "unnamed")
|