One of our web apps is deployed to a number of different servers for access by users at that site. We use Trac to manage the bugs/work items, but we're looking for a way to automate the release notes so that users whose server is upgraded will see a little notification about when they received their upgrade and a way to browse some kind of document - HTML or XML - which was extracted from Trac at the time of the build with all the items.
Ideally, we would have a post-build step which would extract from Trac the RSS XML based on the version x.y.z from the main assembly, save it as releasenotes.xml which after deployment with the binaries, templates etc will reside in production.
The web server then can display it within its installation.
My problem is that our Trac is not public (not even to all these users who don't have accounts in Trac, otherwise, we could point them at reports in Trac and they could log in as themselves to read them) and we can't automate this extraction because it requires a forms authentication process - I can't find a readonly RSS feed which doesn't require authentication.
Anyone solve that problem? Or is there another approach I should consider?
I currently having it working with curl and grep in a command script. I get the token from the login page, then login to get authentication cookies and then pull the RSS for the desired report. Obviously this is sensitive to the user/password/__FORM_TOKEN structure of the login form.