dabla commented on PR #77257:
URL: https://github.com/apache/airflow/pull/77257#issuecomment-7238665528

   One small thing I noticed while clicking through the diagrams in a local 
build, not caused by this PR: in the Execution API flowchart on the JWT page, 
the `yes` arrow from "token.sub == task_instance_id?" crosses the `no` arrow 
from "ti:self scope declared?" just above "principal type matches?".
   
   Declaring the `yes` branch before the `no` branch removes the crossing and 
leaves the rest of the layout as it is (rendered with mermaid-cli 11.17.0 and 
`mermaid_config.json`):
   
   ```diff
   --- a/airflow-core/docs/security/jwt_token_authentication.rst
   +++ b/airflow-core/docs/security/jwt_token_authentication.rst
   @@ -406,8 +406,8 @@
            SCHEMA -->|ok| TYP{require_auth:<br/>scope 
in<br/>route.allowed_token_types?}
            TYP -->|no| F1
            TYP -->|yes| SELF{ti:self scope<br/>declared?}
   -        SELF -->|no| PRINCIPAL{Typed dependency:<br/>principal type 
matches?}
            SELF -->|yes| MATCH{token.sub ==<br/>task_instance_id?}
   +        SELF -->|no| PRINCIPAL{Typed dependency:<br/>principal type 
matches?}
            MATCH -->|no| F1
            MATCH -->|yes| PRINCIPAL
            PRINCIPAL -->|no| F1
   ```
   
   Up to you whether to take it here or leave it for a follow-up; happy to open 
a separate PR for it.
   


-- 
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]

Reply via email to