mik-laj commented on issue #16485: URL: https://github.com/apache/airflow/issues/16485#issuecomment-863923111
We can also use the `itsdangerous` library, which is already used to generate tokens in API https://github.com/apache/airflow/blob/db10c6841b6295ab2b116c03025856084885c6a3/airflow/api_connexion/endpoints/dag_source_endpoint.py#L32-L34 In our case, we can use `TimedSigner`/`TimedJSONWebSignatureSerializer` so that even a key leak does not pose a security risk https://github.com/pallets/itsdangerous/blob/b1e32ca0a77a819dc992e0b9ab9e70929b9224aa/src/itsdangerous/timed.py#L169. https://github.com/pallets/itsdangerous/blob/b1e32ca0a77a819dc992e0b9ab9e70929b9224aa/src/itsdangerous/jws.py#L186-L196 -- 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: [email protected]
