summaryrefslogtreecommitdiffstats
path: root/model/manifest.go
Commit message (Collapse)AuthorAgeFilesLines
* Added TextArea (longstring) to the docs in manifest to be rendered in the ↵Carlos Tadeu Panato Junior2018-10-151-0/+2
| | | | documentation (#9658)
* MM-11420: plugins: compute bundle hash on load (#9172)Jesse Hallam2018-07-311-1/+5
| | | | | | | | | | | | * plugins: compute bundle hash on load Use this hash to bust client caches whenever the plugin bundle changes. * eliminate redundant pluginHandler * switch to 64-bit FNV-1a * Fix test
* Adding support for code split plugins. (#9184)Christopher Speller2018-07-311-1/+1
|
* Support `server`, deprecate `backend` in plugin manifest (#9127)Jesse Hallam2018-07-181-11/+29
| | | | | | | | | | | | | | * Support `server`, deprecate `backend` in plugin manifest This lets us converge on the use of the term `server` everywhere instead of sometimes `backend` and sometimes `server`. We're still using `webapp` and will eventually support `mobile` as well. The plan is actually to rip out these deprecations as part of releasing 5.2, but I want to coordinate the extra additional breakage at the same time, so for now this is a backwards compatible change. * fix failing tests
* MM-11366: support a plugin bundle with multiple executables (#9121)Jesse Hallam2018-07-171-2/+47
| | | This avoids the need to distribute multiple plugins per architecture.
* Make plugin IDs case insensitive (#9117)Joram Wilander2018-07-161-0/+3
|
* MM-8622: improved plugin error handling (#8692)Jesse Hallam2018-05-011-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * don't report an error on plugin activation if already active * improved plugin logging events Log an error when a plugin's ServeHTTP fails, or when it unexpectedly terminates. Restart a plugin at most three times, allowing its failure to later bubble up under the "failed to stay running" status. * clarified plugin activation/deactivation Avoid repeatedly activating when any configuration bit changes. Improved logging. * constrain plugin ids to ^[a-zA-Z0-9-_\.]+$ and enforce minimum length Previously, the plugin id was used unsanitized to relocate the plugin bundle, which allowed writing outside the `plugins/` directory by using an `id` containing `../`. Similarly, an empty string was accepted as an id and led to unexpected error messages. * remove plugins by manifest path, not id If the id within the manifest ever diverges from the actual plugin location, it becomes impossible to remove via the API. Instead, if the plugin is found by id, remove the path containing the manifest. * ignore plugins with nil manifests If a plugin was detected, but had a manifest that couldn't be parsed, it will be left nil but still be listed among the packages. Skip over these in most cases to avoid segfaults. * leverage mlog more effectively for plugins * build issues
* respect plugin manifest webapp bundle_path (#8393)Chris2018-03-071-0/+5
|
* general cleanup (#8387)Chris2018-03-071-9/+0
|
* unnamed return (#8170)Chris2018-01-301-27/+9
|
* Hash key for plugin store and limit id length (#7933)Joram Wilander2017-12-051-2/+3
|
* Revert "Hash key for plugin store table and limit plugin ID length (#7915)" ↵Christopher Speller2017-12-011-3/+2
| | | | | (#7931) This reverts commit c3af8785734803b6199a28249537ef3e47fe4caa.
* Hash key for plugin store table and limit plugin ID length (#7915)Joram Wilander2017-12-011-2/+3
| | | | | | | | * Hash plugin store keys and update column limits * Limit plugin ID length on install * Add note to manifest id and allow zero length keys
* recommit: ordered plugin settings (#7919) (#7926)Chris2017-11-301-7/+12
|
* PLT-8018: Bundled jira plugin (#7920)Chris2017-11-301-12/+7
| | | | | | | | | | | | * bundled jira plugin * fix generated file formatting, add prepackaged key * whoops, uploaded wrong file * whitelist generated files for license check * make it work for people without go/bin in their path
* ordered plugin settings (#7919)Chris2017-11-301-7/+12
|
* Add placeholder field and user_autocomplete type to plugin manifest (#7817)Joram Wilander2017-11-131-0/+6
| | | | | | * Add placholder field and user_autocomplete type to plugin manifest * user_autocomplete -> username
* Basic manifest docs (#7806)Chris2017-11-091-15/+85
| | | | | | | | * basic manifest docs * add a bit more documentation * space out fields for better godoc formatting
* PLT-7709 Add UI settings to plugin manifest (#7794)Joram Wilander2017-11-081-7/+36
| | | | | | | | | | | | | | * Add UI settings to plugin manifest * Add another test case * Add options field to setting * Updates per feedback * Report diagnostics on if plugins have settings set * Add regenerate_help_text field
* add missing license headers, test to makefile (#7711)Chris2017-10-251-0/+3
|
* PLT-7622 Improvements to server handling of webapp plugins (#7445)Joram Wilander2017-09-151-2/+16
| | | | | | | | * Improvements to server handling of webapp plugins * Fix newline * Update manifest function names
* Implement experimental REST API endpoints for plugins (#7279)Joram Wilander2017-09-011-0/+118
* Implement experimental REST API endpoints for plugins * Updates per feedback and rebase * Update tests * Further updates * Update extraction of plugins * Use OS temp dir for plugins instead of search path * Fail extraction on paths that attempt to traverse upward * Update pluginenv ActivePlugins()