Ok added a conditional check in agent.py to skip processing key_name unless it exists. This prevents the error and ensures compatibility for setups where key_name is not required.
Proposed Fix: A conditional check can be added in agent.py to skip processing key_name unless it's present and valid:
if "key_name" in env_var and env_var["key_name"] in unnacepted_attributes:
continue
This ensures the error doesn’t occur when key_name is absent but unnecessary for the task.
I created a Pull request here