Bug 260747 - Add security advisories feed URL to <head> metadata for the associated page.
Summary: Add security advisories feed URL to <head> metadata for the associated page.
Status: New
Alias: None
Product: Documentation
Classification: Unclassified
Component: Website (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-doc (Nobody)
URL: https://www.freebsd.org/security/feed...
Keywords: regression
Depends on:
Blocks:
 
Reported: 2021-12-28 05:03 UTC by Pau Amma
Modified: 2023-08-17 21:13 UTC (History)
4 users (show)

See Also:


Attachments
Add ID for CH341K (1.14 KB, patch)
2021-12-29 06:14 UTC, Daniel O'Connor
no flags Details | Diff
site-head.html patch for rss feed url (1.01 KB, patch)
2023-07-16 19:31 UTC, John Darrah
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pau Amma 2021-12-28 05:03:44 UTC
It used to be at https://www.freebsd.org/security/advisories.rdf, but that now 404s, and I can't find a newer syndication URL in the source for https://www.freebsd.org/security/advisories/.
Comment 1 Pau Amma 2021-12-28 15:23:37 UTC
(In reply to PauAmma from comment #0)
I was told the feed is now at https://www.freebsd.org/security/feed.xml, but I still think that URL should be in the <head> metadata for https://www.freebsd.org/security/advisories/ for feed autodiscovery by aggregators.
Comment 2 Pau Amma 2021-12-28 21:32:37 UTC
For completeness: since the feed itself uses Atom, autodiscovery requires the page (https://www.freebsd.org/security/advisories/) to have the following in somewhere within <head>...</head>: <link rel="alternate" type="application/atom+xml" title="FreeBSD security advisories" href="https://www.freebsd.org/security/feed.xml" />

Adjust title= for preferences, editorial policy, and or whatever else is relevant.
Comment 3 Daniel O'Connor 2021-12-29 06:14:08 UTC
Created attachment 230519 [details]
Add ID for CH341K
Comment 4 Pau Amma 2021-12-30 02:41:31 UTC
(In reply to Daniel O'Connor from comment #3)

Just so you don't wonder why no one is paying attention, I think you attached this to the wrong bug.
Comment 5 Daniel O'Connor 2021-12-30 02:42:53 UTC
(In reply to PauAmma from comment #4)
Oops sorry, thanks for letting me know!
Comment 6 Pierre 2022-04-18 08:34:17 UTC
Happy to help with this if still current.
Comment 7 Pau Amma 2022-04-18 20:46:33 UTC
(In reply to Pierre from comment #6)
Thanks. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260747#c2 gives the gist of what to do. Let me know if you need specifics and I'll try either to find them for you or to point you at something or someone.
Comment 8 Pierre 2022-04-19 09:54:34 UTC
(In reply to PauAmma from comment #7)
Noted. Could you please share the location of the git repo where these files live?
Comment 9 Pau Amma 2022-04-22 04:27:39 UTC
(In reply to Pierre from comment #8)

https://git.freebsd.org/doc.git (cloning) or https://cgit.freebsd.org/doc/tree/ (web browsing).

website/themes/beastie/layouts/partials/site-head.html is probably what goes inside <head>...</head>, but it looks shared between several pages or groups of pages, so you'd need to check the feed URL is properly parameterized and you don't break other uses. (Note: I haven't tried autodiscovery of other RSS feeds, so I can't rule out they're broken too and need their own fixes.
Comment 10 John Darrah 2023-07-16 19:31:30 UTC
Created attachment 243425 [details]
site-head.html patch for rss feed url
Comment 11 Pau Amma 2023-08-17 21:13:09 UTC
(In reply to John Darrah from comment #10)
After applying this patch and regenerating the website files:
% grep -rFl security/feed.xml website/public/ | wc -l
    1909
So obviously, the solution I suggested doesn't work. (I mentioned in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260747#c9 it might not, but I wasn't expecting it to wind up in that many files. *grimace*)

Back to the drawing board.