diff --git a/tracecat/integrations/_registry.py b/tracecat/integrations/_registry.py index d0b32c30..ca4016f3 100644 --- a/tracecat/integrations/_registry.py +++ b/tracecat/integrations/_registry.py @@ -75,7 +75,7 @@ def wrapper(*args, **kwargs): 3. Clean up the environment after the function has executed. """ secret_objs: list[Secret] = [] - role: Role = kwargs.pop("__role", None) + role: Role = kwargs.pop("__role", Role(type="service")) with logger.contextualize(user_id=role.user_id, pid=os.getpid()): try: # Get secrets from the secrets API