This is an automated email from the ASF dual-hosted git repository.
casion pushed a commit to branch release-1.8.0
in repository https://gitbox.apache.org/repos/asf/linkis.git
The following commit(s) were added to refs/heads/release-1.8.0 by this push:
new 049ad8ed51 fix token security (#5266)
049ad8ed51 is described below
commit 049ad8ed51454e2f4e1cfff581aee8a10d6246f2
Author: aiceflower <[email protected]>
AuthorDate: Wed Oct 8 12:39:47 2025 +0800
fix token security (#5266)
Co-authored-by: aiceflower <[email protected]>
---
.../linkis-gateway-authentication/src/test/resources/create.sql | 2 +-
.../linkis-gateway-authentication/src/test/resources/create_pg.sql | 7 +------
2 files changed, 2 insertions(+), 7 deletions(-)
diff --git
a/linkis-spring-cloud-services/linkis-service-gateway/linkis-gateway-authentication/src/test/resources/create.sql
b/linkis-spring-cloud-services/linkis-service-gateway/linkis-gateway-authentication/src/test/resources/create.sql
index efcf6cc908..b9bd3fc575 100644
---
a/linkis-spring-cloud-services/linkis-service-gateway/linkis-gateway-authentication/src/test/resources/create.sql
+++
b/linkis-spring-cloud-services/linkis-service-gateway/linkis-gateway-authentication/src/test/resources/create.sql
@@ -37,4 +37,4 @@ DELETE FROM linkis_mg_gateway_auth_token;
-- ----------------------------
-- Default Tokens
-- ----------------------------
-INSERT INTO
`linkis_mg_gateway_auth_token`(`token_name`,`legal_users`,`legal_hosts`,`business_owner`,`create_time`,`update_time`,`elapse_day`,`update_by`)
VALUES
('LINKIS-UNAVAILABLE-TOKE','*','*','BDP',curdate(),curdate(),-1,'LINKIS');
\ No newline at end of file
+INSERT INTO
`linkis_mg_gateway_auth_token`(`token_name`,`legal_users`,`legal_hosts`,`business_owner`,`create_time`,`update_time`,`elapse_day`,`update_by`)
VALUES
('LINKIS-UNAVAILABLE-TOKE','test','127.0.0.1','BDP',curdate(),curdate(),-1,'LINKIS');
\ No newline at end of file
diff --git
a/linkis-spring-cloud-services/linkis-service-gateway/linkis-gateway-authentication/src/test/resources/create_pg.sql
b/linkis-spring-cloud-services/linkis-service-gateway/linkis-gateway-authentication/src/test/resources/create_pg.sql
index 64b0def6e2..a2f532ce15 100644
---
a/linkis-spring-cloud-services/linkis-service-gateway/linkis-gateway-authentication/src/test/resources/create_pg.sql
+++
b/linkis-spring-cloud-services/linkis-service-gateway/linkis-gateway-authentication/src/test/resources/create_pg.sql
@@ -34,9 +34,4 @@ delete from linkis_mg_gateway_auth_token;
-- ----------------------------
-- Default Tokens
-- ----------------------------
-INSERT INTO
"linkis_mg_gateway_auth_token"("token_name","legal_users","legal_hosts","business_owner","create_time","update_time","elapse_day","update_by")
VALUES (concat('QML-', md5(cast(random() as
varchar))),'*','*','BDP',now(),now(),-1,'LINKIS');
-INSERT INTO
"linkis_mg_gateway_auth_token"("token_name","legal_users","legal_hosts","business_owner","create_time","update_time","elapse_day","update_by")
VALUES ('LINKIS-UNAVAILABLE-TOKE','*','*','BDP',now(),now(),-1,'LINKIS');
-INSERT INTO
"linkis_mg_gateway_auth_token"("token_name","legal_users","legal_hosts","business_owner","create_time","update_time","elapse_day","update_by")
VALUES (concat('DSS-', md5(cast(random() as
varchar))),'*','*','BDP',now(),now(),-1,'LINKIS');
-INSERT INTO
"linkis_mg_gateway_auth_token"("token_name","legal_users","legal_hosts","business_owner","create_time","update_time","elapse_day","update_by")
VALUES (concat('QUALITIS-', md5(cast(random() as
varchar))),'*','*','BDP',now(),now(),-1,'LINKIS');
-INSERT INTO
"linkis_mg_gateway_auth_token"("token_name","legal_users","legal_hosts","business_owner","create_time","update_time","elapse_day","update_by")
VALUES (concat('VALIDATOR-', md5(cast(random() as
varchar))),'*','*','BDP',now(),now(),-1,'LINKIS');
-INSERT INTO
"linkis_mg_gateway_auth_token"("token_name","legal_users","legal_hosts","business_owner","create_time","update_time","elapse_day","update_by")
VALUES (concat('LINKISCLI-', md5(cast(random() as
varchar))),'*','*','BDP',now(),now(),-1,'LINKIS');
\ No newline at end of file
+INSERT INTO
"linkis_mg_gateway_auth_token"("token_name","legal_users","legal_hosts","business_owner","create_time","update_time","elapse_day","update_by")
VALUES
('LINKIS-UNAVAILABLE-TOKE','test','127.0.0.1','BDP',now(),now(),-1,'LINKIS');
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]