potiuk commented on PR #1749:
URL: https://github.com/apache/airflow-site/pull/1749#issuecomment-7080792347

   **Proposal for the PMC / Security team: version filter on the product pages**
   
   I pushed fb4b07d on top of this PR as a **proposal**. It's up to the PMC and 
the security team whether we want it in.
   
   **What it adds**
   - Each product page (Apache Airflow, Providers, Task SDK) gets a "Version 
you run" box. It shows only the entries that affect that version, for example 
"46 of 174 CVEs affect version 2.10.5".
   - On the Providers page you pick a package first, since each provider has 
its own version numbers.
   - The filter is kept in the URL, so a filtered view can be linked, e.g. 
`/security/apache-airflow/?version=2.10.5` or 
`/security/providers/?package=apache-airflow-providers-fab&version=1.5.0`.
   - Without JavaScript the pages look exactly as before.
   
   **Data clean-up it needed (please review)**
   For the filter to work on every record, I rewrote the affected versions of 
44 older records (2017–2022) into proper `version` / `lessThan` / 
`lessThanOrEqual` ranges. Before, they used free text ("1.10.10 and below", 
"Apache Airflow <= 1.8.2") or a product name instead of a lower bound. In 
particular:
   - 3 records had an upper bound that wasn't a version (`"unspecified"`, 
`"Apache Airflow*"`), so I took their ranges from their descriptions.
   - The Docker provider record was filed as "Apache Airflow < 3.0.0". It now 
names the Docker provider, so it moves to the Providers page.
   
   The same corrections should be made to the published records on cve.org; 
otherwise the next refresh of these files will undo them. I have a full 
before/after list for the security team.
   
   **Questions for the PMC / Security team**
   1. Do we want the version filter on the site?
   2. Are we OK with correcting the old records here and on cve.org?
   
   **Screenshots**
   
   <img width="1456" height="757" alt="airflow-filter-2 10 5" 
src="https://github.com/user-attachments/assets/8100f703-ea57-4738-92fb-b818321af279";
 />
   
   <img width="1456" height="757" alt="providers-fab-1 5 0" 
src="https://github.com/user-attachments/assets/7a8c1e9b-5a25-464e-a67b-52e642dd8a52";
 />
   
   <img width="1456" height="757" alt="task-sdk-1 2 0" 
src="https://github.com/user-attachments/assets/8c3f6362-2aac-42e4-9766-fecf05f25403";
 />
   
   <img width="1456" height="757" alt="airflow-filter-3 0 2-dark" 
src="https://github.com/user-attachments/assets/be9dcee4-43fb-4e87-a3f0-0465f88a7d9d";
 />


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