Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Register new routes via SDK as named routes (#827)
* WIP on Handler naming and SSL Signed-off-by: Craig Perkins <[email protected]> * Add concept of extension shortname via settings Signed-off-by: Craig Perkins <[email protected]> * WIP on extension ssl Signed-off-by: Craig Perkins <[email protected]> * Get registry from runner Signed-off-by: Craig Perkins <[email protected]> * Read settings from extension config file Signed-off-by: Craig Perkins <[email protected]> * Update license headers Signed-off-by: Craig Perkins <[email protected]> * Run spotlessApply Signed-off-by: Craig Perkins <[email protected]> * Remove authz changes and only keep TLS Signed-off-by: Craig Perkins <[email protected]> * Remove authz changes and only keep TLS Signed-off-by: Craig Perkins <[email protected]> * Remove authz changes and only keep TLS Signed-off-by: Craig Perkins <[email protected]> * Remove authz changes and only keep TLS Signed-off-by: Craig Perkins <[email protected]> * Remove authz changes and only keep TLS Signed-off-by: Craig Perkins <[email protected]> * Update cert generation documents Signed-off-by: Craig Perkins <[email protected]> * Re-add authz changes for sample Hello world extension Signed-off-by: Craig Perkins <[email protected]> * Add ssl.transport.enabled in ExtensionsRunner Signed-off-by: Craig Perkins <[email protected]> * Name all HelloWorld extension routes Signed-off-by: Craig Perkins <[email protected]> * Run spotlessApply Signed-off-by: Craig Perkins <[email protected]> * Merge main into branch Signed-off-by: Craig Perkins <[email protected]> * Add instructions for running in SSL only mode Signed-off-by: Craig Perkins <[email protected]> * Add all SSL settings to extension settings Signed-off-by: Craig Perkins <[email protected]> * Update TestExtensionsRunner Signed-off-by: Craig Perkins <[email protected]> * Set default enforce_hostname_verification Signed-off-by: Craig Perkins <[email protected]> * Run spotlessApply Signed-off-by: Craig Perkins <[email protected]> * Respond to code review feedback Signed-off-by: Craig Perkins <[email protected]> * fix merge conflicts Signed-off-by: Craig Perkins <[email protected]> * Fix typos in debug messages Signed-off-by: Craig Perkins <[email protected]> * Add docstrings Signed-off-by: Craig Perkins <[email protected]> * Address code review feedback Signed-off-by: Craig Perkins <[email protected]> * Remove duplicate Signed-off-by: Craig Perkins <[email protected]> * Remove duplicate Signed-off-by: Craig Perkins <[email protected]> * Create ExtensionRouteHandlerFactory Signed-off-by: Craig Perkins <[email protected]> * Remove extension: from action naming Signed-off-by: Craig Perkins <[email protected]> * Add javadoc Signed-off-by: Craig Perkins <[email protected]> * Fix test compilation errors Signed-off-by: Craig Perkins <[email protected]> * Consolidate registerHandler Signed-off-by: Craig Perkins <[email protected]> * Fix missed registerHandler usage Signed-off-by: Craig Perkins <[email protected]> * Fix javadoc Signed-off-by: Craig Perkins <[email protected]> * Add method to check if class is initialized Signed-off-by: Craig Perkins <[email protected]> * Fix failing tests Signed-off-by: Craig Perkins <[email protected]> * Update helloworld-settings Signed-off-by: Craig Perkins <[email protected]> * Run spotlessApply Signed-off-by: Craig Perkins <[email protected]> * Run spotlessApply Signed-off-by: Craig Perkins <[email protected]> * Add shortExtensionName to BaseExtensionRouteHandler Signed-off-by: Craig Perkins <[email protected]> * Adds support for legacy action names while registering extension routes on extension start up Signed-off-by: Darshit Chanpura <[email protected]> * Modifies sample hello extension to conform to the new registration scheme Signed-off-by: Darshit Chanpura <[email protected]> * Renames route handlers Signed-off-by: Darshit Chanpura <[email protected]> * Adds certificate generation script Signed-off-by: Darshit Chanpura <[email protected]> * Fixes spotless errors Signed-off-by: Darshit Chanpura <[email protected]> * Fixes Javadoc Signed-off-by: Darshit Chanpura <[email protected]> * Cleans up route handlers to be more readable and adds an interface Signed-off-by: Darshit Chanpura <[email protected]> * Updates test to reflect changes in route handler signatures Signed-off-by: Darshit Chanpura <[email protected]> * Fixes slf4j gradle build issue Signed-off-by: Darshit Chanpura <[email protected]> * Fixes replaced named route tests Signed-off-by: Darshit Chanpura <[email protected]> * Changes the way named routes are serialized to conform to core and fixes tests Signed-off-by: Darshit Chanpura <[email protected]> * Removes mention of shortNames and uses extensionName as permission prefix Signed-off-by: Darshit Chanpura <[email protected]> * Used builder for named routes Signed-off-by: Darshit Chanpura <[email protected]> * Fixes broken changes Signed-off-by: Darshit Chanpura <[email protected]> * Updates dev guide to state to use credentials when registering extension while security is enabled Signed-off-by: Darshit Chanpura <[email protected]> * Replaces NamedRouteHandler and update logic to map route handlers for Rest request Signed-off-by: Darshit Chanpura <[email protected]> * Fixes typos Signed-off-by: Darshit Chanpura <[email protected]> * Removes references to ReplaceNamedRouteHandlers and DeprecatedNamedRouteHandlers Signed-off-by: Darshit Chanpura <[email protected]> * Addresses PR feedback Signed-off-by: Darshit Chanpura <[email protected]> * Refactors ReplacedRoute and deprecated route handlers to use RestResponse Signed-off-by: Darshit Chanpura <[email protected]> * Forces httpcore5 to 5.2.2 Signed-off-by: Darshit Chanpura <[email protected]> * Updates documentation Signed-off-by: Darshit Chanpura <[email protected]> * Addresses PR feedback Signed-off-by: Darshit Chanpura <[email protected]> * Fixes broken reference due to changes in core 52a5e3f6e0ca599e3193807134ea42660ecdd195 Signed-off-by: Darshit Chanpura <[email protected]> * Removes extra resolutionStrategy Signed-off-by: Darshit Chanpura <[email protected]> --------- Signed-off-by: Craig Perkins <[email protected]> Signed-off-by: Darshit Chanpura <[email protected]> Co-authored-by: Craig Perkins <[email protected]>
- Loading branch information