Atom / RSS Feed Tokens not Permitting Feed Access to Private Feeds Anymore
Summary
Token generation for Activity Feed Atom / RSS has changed, and it does not allow accessing feeds without authorization anymore.
Steps to reproduce
- Go to any private project's Activity Feed
- Click the RSS / Atom symbol
- Try using the provided feed, i.e., its address + access token, in any external application
Example Project
https://gitlab.com/sbondorf/rsstestsvienna
What is the current bug behavior?
Feed, i.e., the file linked by the RSS / Atom symbol, cannot be accessed despite having an access token.
What is the expected correct behavior?
Feed can be accessed.
Relevant logs and/or screenshots
Here is a comparison between an old and a newly created RSS / Atom file address for the above sample repo. The generated token differs:
- old: https://gitlab.com/sbondorf/rsstestsvienna.atom?feed_token=ANON
- new: https://gitlab.com/sbondorf/rsstestsvienna.atom?feed_token=glft-242302d6abe0de6b90d1ff12e7f264862afcfb75303686b49515c5cd7e4fd457-5513998
information about the old token
- Generated for a downstream bug report in early 2022
- Problem actually started occurring later, unfortunately, I cannot pinpoint a release
- Access to the feed is still possible until today, from RSS readers as well as the W3 validator
information about the new token
- Generated as of today
- Reproducibile Activity feed token
- No access from outside gitlab.com, neither from RSS readers nor from the W3 validator
- W3 validator states "It looks like this is a web page, not a feed. I looked for a feed associated with this page, but couldn't find one. Please enter the address of your feed to validate."
- most probably this is the login page, rather than the CDN (Cloudflare?)
- i.e., is this a bug for downstream? Implementation of an authentication protocol required?
Possible fixes
Revert to changes to RSS token generation code
Fix
Use personal feed token instead of the provided one, see [here](Stack Overflow)
Edited by Steffen Bondorf