This is an automated email from the ASF dual-hosted git repository.
more pushed a change to branch webshell
in repository https://gitbox.apache.org/repos/asf/knox.git.
from 2426bd4 KNOX-2703 - Configuring JWT type at creation/verification
time (#532)
add 759a6cc initial commit
add fc933a3 changes made from Sandeep comments
add 23eb950 refactoring: remove connect operation type, add draft token
validation logic, WebshellWebsocketAdapter extend ProxyWebSocketAdapter
add 74ae3b0 refactoring
add 904b3fb add option to disable webshell in gateway-site.xml; cleanup
resources in WebshellWebsocketAdapater;
add 89ef271 merge with upstream
add 99d21d9 refactoring
add 749cbb9 draft for validating JWT
add 57132bc remove req param from validateToken method
add 3de0c30 refactor webshell token validation
add c2a7003 moved tokenValidator class to websocket level
add e5e7df0 convert front-end to angular app
add c626586 refactor
add 9477cff add missing config changes
add b2c3393 enable/disable websocket JWT validation feature; refactor
add efdd1e3 Merge branch 'master' of https://github.com/apache/knox
add 8d3cc18 add audit log; disconnect websocket on closing tab
add c910273 refactor front end, remove rxjs dependency
add 2027780 refractor logging
add b740828 audit log
add c88bbb1 remove version from gateway-server/pom.xml
add b2811b9 update pom.xml; fix style
add a3a574e fix existing websocket tests
add 383202f refactor GatewayWebsocketHandler; JWTValidatorTest draft;
add 8d0a973 initial commit for JWTValidatorTest
add 6a32041 add testValidToken for JWTValidatorTest
add 394efe3 save bash process pid to {gateway_home}/pid/
add 1086757 add shutdownhook to clean up process resource
add 3e5b109 add configuration for maximum number of concurrent webshell
sessions
add 73f51f3 refactor; adjust webshell window size
add 00add4f refactor
add ce3de16 use pty4j to solve tty problem
add e14d312 Merge branch 'master' of https://github.com/apache/knox
add fbf1210 refactor
add 29c35a0 remove non-ascii, ascii control characters and non-printable
characters from Unicode from audit log
add c730581 comments and style
add 2732e59 resolve pmd failures
add fa6caff fix dependency problem
add 3122e32 remove log4j exclusion
add 83e8d84 switch to PtyProcessBuilder
add b751070 refactor
add 04b9b75 refactor
add 054d9bb make webshell logging configurable
add 09aceec change font
add 719830b add isWebShellLoggingEnabled to GatewayTestConfig
add 488fd18 fix logging
add 0f09c29 remove redundant dependencies
add 9fb4637 fix dependency issue
add 0effdab fix websocket close problem
add 63561b9 fix concurrentWebshell
add edd23b4 refactor
add 22350bd add negative tests for JWTValidator
add 91d1e80 more negative tests for JWTValidator
add bda95b0 fix pmd violation
add 9eeb049 minor refactor
add 547bd04 refactor JWTValidator and ConnectionInfo to make code more
testable by using factory classes
add 68ce029 refactor to make code testable; GatewayWebsocketHandlerTest
add 7121cb7 use powermock to mock static method and constructor
add 649b4aa resolve dependency convergence error due to powermock
add 9487fec WebshellWebsocketAdapterTest
add 51deaaf ConnectionInfo test
add 7813e2c fix build errors
add 4300202 fix unit test
add d338284 fix testConnectSuccess by mocking ptyProcess
new f6201a3 KNOX-2631 - Fix unit test
new c75e0d9 Merge branch 'master' into luliu8/master
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
gateway-applications/pom.xml | 12 +
.../provider/federation/jwt/JWTMessages.java | 3 +
gateway-release/home/conf/gateway-log4j2.xml | 1 +
gateway-release/home/conf/gateway-site.xml | 29 +
gateway-release/home/conf/topologies/homepage.xml | 3 +
gateway-release/pom.xml | 4 +
gateway-server/pom.xml | 38 +-
.../gateway/config/impl/GatewayConfigImpl.java | 52 +
.../knox/gateway/deploy/DeploymentFactory.java | 8 +-
.../knox/gateway/webshell/ConnectionInfo.java | 151 +
.../apache/knox/gateway/webshell/WebshellData.java | 18 +-
.../gateway/webshell/WebshellWebSocketAdapter.java | 175 +
.../websockets/GatewayWebsocketHandler.java | 51 +-
.../knox/gateway/websockets/JWTValidator.java | 193 +
.../gateway/websockets/JWTValidatorFactory.java | 131 +
.../gateway/websockets/ProxyWebSocketAdapter.java | 6 +-
.../gateway/websockets/WebSocketFilterConfig.java | 49 +-
.../knox/gateway/webshell/ConnectionInfoTest.java | 145 +
.../webshell/WebshellWebsocketAdapterTest.java | 239 +
.../websockets/GatewayWebsocketHandlerTest.java | 146 +
.../knox/gateway/websockets/JWTValidatorTest.java | 354 +
.../service/metadata/GeneralProxyInformation.java | 13 +
.../service/metadata/KnoxMetadataResource.java | 2 +-
.../apache/knox/gateway/config/GatewayConfig.java | 48 +-
.../org/apache/knox/gateway/GatewayTestConfig.java | 43 +
.../org/apache/knox/gateway/audit/api/Action.java | 1 +
.../knox/gateway/audit/api/ResourceType.java | 1 +
.../general.proxy.information.component.html | 4 +
.../general.proxy.information.component.ts | 9 +
.../general.proxy.information.ts | 1 +
{knox-homepage-ui => knox-webshell-ui}/.gitignore | 1 +
knox-webshell-ui/angular.json | 110 +
{knox-token-management-ui => knox-webshell-ui}/npm | 0
knox-webshell-ui/package-lock.json | 9803 ++++++++++++++++++++
knox-webshell-ui/package.json | 32 +
{knox-homepage-ui => knox-webshell-ui}/pom.xml | 21 +-
.../src/main/resources/webshell-ui}/service.xml | 4 +-
knox-webshell-ui/tsconfig.app.json | 11 +
.../admin-ui => knox-webshell-ui}/tsconfig.json | 9 +-
.../webshell-ui/app/app.component.css | 9 +-
.../webshell-ui/app/app.component.html | 6 +-
knox-webshell-ui/webshell-ui/app/app.component.ts | 61 +
.../webshell-ui/app/app.module.ts | 32 +-
.../webshell-ui}/assets/.gitkeep | 0
.../webshell-ui}/environments/environment.prod.ts | 2 +-
.../webshell-ui}/environments/environment.ts | 18 +-
.../webshell-ui}/favicon.ico | Bin
.../webshell-ui/index.html | 22 +-
.../webshell-ui}/main.ts | 14 +-
knox-webshell-ui/webshell-ui/polyfills.ts | 82 +
.../webshell-ui}/styles.css | 8 -
pom.xml | 67 +-
52 files changed, 12108 insertions(+), 134 deletions(-)
create mode 100644
gateway-server/src/main/java/org/apache/knox/gateway/webshell/ConnectionInfo.java
copy
gateway-provider-security-authz-acls/src/main/java/org/apache/knox/gateway/filter/InvalidACLException.java
=>
gateway-server/src/main/java/org/apache/knox/gateway/webshell/WebshellData.java
(70%)
create mode 100644
gateway-server/src/main/java/org/apache/knox/gateway/webshell/WebshellWebSocketAdapter.java
create mode 100644
gateway-server/src/main/java/org/apache/knox/gateway/websockets/JWTValidator.java
create mode 100644
gateway-server/src/main/java/org/apache/knox/gateway/websockets/JWTValidatorFactory.java
copy
gateway-provider-security-jwt/src/test/java/org/apache/knox/gateway/provider/federation/TestFilterConfig.java
=>
gateway-server/src/main/java/org/apache/knox/gateway/websockets/WebSocketFilterConfig.java
(53%)
create mode 100644
gateway-server/src/test/java/org/apache/knox/gateway/webshell/ConnectionInfoTest.java
create mode 100644
gateway-server/src/test/java/org/apache/knox/gateway/webshell/WebshellWebsocketAdapterTest.java
create mode 100644
gateway-server/src/test/java/org/apache/knox/gateway/websockets/GatewayWebsocketHandlerTest.java
create mode 100644
gateway-server/src/test/java/org/apache/knox/gateway/websockets/JWTValidatorTest.java
copy {knox-homepage-ui => knox-webshell-ui}/.gitignore (94%)
create mode 100644 knox-webshell-ui/angular.json
copy {knox-token-management-ui => knox-webshell-ui}/npm (100%)
create mode 100644 knox-webshell-ui/package-lock.json
create mode 100644 knox-webshell-ui/package.json
copy {knox-homepage-ui => knox-webshell-ui}/pom.xml (81%)
copy {gateway-applications/src/main/resources/applications/tokengen =>
knox-webshell-ui/src/main/resources/webshell-ui}/service.xml (96%)
create mode 100644 knox-webshell-ui/tsconfig.app.json
copy {gateway-admin-ui/admin-ui => knox-webshell-ui}/tsconfig.json (66%)
copy
gateway-test-utils/src/main/java/org/apache/knox/test/category/ManualTests.java
=> knox-webshell-ui/webshell-ui/app/app.component.css (91%)
copy
gateway-provider-rewrite/src/test/resources/org/apache/knox/gateway/filter/rewrite/api/UrlRewriteServletContextListenerTest/rewrite.xml
=> knox-webshell-ui/webshell-ui/app/app.component.html (95%)
create mode 100644 knox-webshell-ui/webshell-ui/app/app.component.ts
copy gateway-admin-ui/admin-ui/app/utils/tab.component.ts =>
knox-webshell-ui/webshell-ui/app/app.module.ts (67%)
copy {knox-homepage-ui/home => knox-webshell-ui/webshell-ui}/assets/.gitkeep
(100%)
copy {gateway-admin-ui/admin-ui =>
knox-webshell-ui/webshell-ui}/environments/environment.prod.ts (97%)
copy {knox-token-management-ui/token-management =>
knox-webshell-ui/webshell-ui}/environments/environment.ts (57%)
copy {knox-token-management-ui/token-management =>
knox-webshell-ui/webshell-ui}/favicon.ico (100%)
copy
gateway-provider-rewrite/src/test/resources/org/apache/knox/gateway/filter/rewrite/api/UrlRewriteRulesDescriptorFactoryTest/filter-simple.xml
=> knox-webshell-ui/webshell-ui/index.html (74%)
copy {gateway-admin-ui/admin-ui => knox-webshell-ui/webshell-ui}/main.ts (71%)
create mode 100644 knox-webshell-ui/webshell-ui/polyfills.ts
copy {knox-homepage-ui/home => knox-webshell-ui/webshell-ui}/styles.css (91%)