seanghaeli commented on code in PR #69840:
URL: https://github.com/apache/airflow/pull/69840#discussion_r3716754595
##########
airflow-core/src/airflow/executors/workloads/base.py:
##########
@@ -84,12 +84,12 @@ class BaseWorkloadSchema(BaseModel):
"""The identity token for this workload"""
@staticmethod
- def generate_token(sub_id: str, generator: JWTGenerator | None = None) ->
str:
+ def generate_token(sub_id: str, generator: JWTGenerator | None = None,
scope: str = "workload") -> str:
Review Comment:
Re-wrote it so that only workloads can set their own scope, instead of being
passed as a free parameter from anywhere
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]