request for charm inclusion: tomcat-webapp
Bug #1539205 reported by
Philip Brown
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Juju Charms Collection |
Expired
|
Undecided
|
Unassigned |
Bug Description
will attempt to follow documentatoin to link my code branch in a sec...
Related branches
To post a comment you must log in.
Philip,
Thank you for your submission!
It seems like these actions could reasonably be folded directly into the tomcat charm, but doing it this way certainly does give a good example of how an application- specific charm would use the interface, and it of course serves as a fall-back for prototyping or otherwise deploying uncharmed apps. Maybe once we have an example or two of application- specific charms, we could revisit folding this into the tomcat charm itself.
Charm proof doesn't raise any errors, but it does raise a warning about "categories" being deprecated in favor of "tags" which might be nice to address.
More critically, I see that you don't do any checksum or hash verification on the downloaded WAR file. There should be an option to provide a SHA checksum (and possibly to specify the checksum type) and the downloaded WAR should be verified against it to ensure that there was no corruption or malicious modification of the package in transit.
Finally, since you already have the action for installing and uninstalling the selected WAR, would it perhaps make sense to move the config options to be action parameters instead? This would allow you to deploy multiple different WARs by calling the install action repeatedly. Technically, you could do this currently by repeatedly changing the config value, but I think putting the params directly on the action makes it much more clear that you're performing an additive operation and thus provides a better UX.
Again, thank you for your contribution, and I look forward to working with you to address the checksum verification issue, as well as the other suggestions, to get this promulgated.