You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tooling.apache.org by "andrewmusselman (via GitHub)" <gi...@apache.org> on 2026/02/17 06:52:32 UTC

[I] Enforce HTTPS-only for SVN PubSub listener URL in `atr/svn/pubsub.py` (tooling-trusted-releases)

andrewmusselman opened a new issue, #685:
URL: https://github.com/apache/tooling-trusted-releases/issues/685

   
   **ASVS Requirements:** V12.2.1, V12.2.2
   **CWE:** CWE-319 (Cleartext Transmission of Sensitive Information)
   **Severity:** MEDIUM
   **File:** `atr/svn/pubsub.py` (lines ~54–58)
   
   ### Description
   
   The PubSub listener URL validation accepts both `http://` and `https://` schemes, despite the error message suggesting HTTPS is expected. Commit notifications and credentials (used on lines ~69–70) could be transmitted in cleartext if an HTTP URL is configured.
   
   ### Current code
   
   ```python
   if not self.url.startswith(("http://", "https://")):
       log.error(
           f"Invalid PubSub URL: {self.url!r}. Expected full URL like 'https://pubsub.apache.org:2069'",
       )
   ```
   
   ### Recommended fix for when we start to use PubSub
   
   ```python
   if not self.url.startswith("https://"):
       log.error(
           f"PubSub URL must use HTTPS: {self.url!r}. Example: 'https://pubsub.apache.org:2069'",
       )
       log.warning("SVNListener disabled: only HTTPS URLs are permitted")
       return
   ```
   


-- 
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: dev-unsubscribe@tooling.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tooling.apache.org
For additional commands, e-mail: dev-help@tooling.apache.org


Re: [I] Enforce HTTPS-only for SVN PubSub listener URL in `atr/svn/pubsub.py` (tooling-trusted-releases)

Posted by "andrewmusselman (via GitHub)" <gi...@apache.org>.
andrewmusselman commented on issue #685:
URL: https://github.com/apache/tooling-trusted-releases/issues/685#issuecomment-3912662003

   Might need upstreaming to BAT


-- 
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: dev-unsubscribe@tooling.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tooling.apache.org
For additional commands, e-mail: dev-help@tooling.apache.org


Re: [I] Enforce HTTPS-only for SVN PubSub listener URL in `atr/svn/pubsub.py` (tooling-trusted-releases)

Posted by "dave2wave (via GitHub)" <gi...@apache.org>.
dave2wave commented on issue #685:
URL: https://github.com/apache/tooling-trusted-releases/issues/685#issuecomment-3929207712

   The URL in BAT comes from puppet configuration and the protocol is not checked.


-- 
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: dev-unsubscribe@tooling.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tooling.apache.org
For additional commands, e-mail: dev-help@tooling.apache.org


Re: [I] Enforce HTTPS-only for SVN PubSub listener URL in `atr/svn/pubsub.py` (tooling-trusted-releases)

Posted by "dave2wave (via GitHub)" <gi...@apache.org>.
dave2wave closed issue #685: Enforce HTTPS-only for SVN PubSub listener URL in `atr/svn/pubsub.py`
URL: https://github.com/apache/tooling-trusted-releases/issues/685


-- 
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: dev-unsubscribe@tooling.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tooling.apache.org
For additional commands, e-mail: dev-help@tooling.apache.org