From bdd88783c0e915b33a840a76846bcca88d004c66 Mon Sep 17 00:00:00 2001 From: Jia Fan Date: Wed, 12 Jun 2024 11:14:37 +0800 Subject: [PATCH 1/2] [Fix] Remove secretKey in application.yml --- .../seatunnel-app/src/main/resources/application.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/seatunnel-server/seatunnel-app/src/main/resources/application.yml b/seatunnel-server/seatunnel-app/src/main/resources/application.yml index 4eeb12456..a85295a6f 100644 --- a/seatunnel-server/seatunnel-app/src/main/resources/application.yml +++ b/seatunnel-server/seatunnel-app/src/main/resources/application.yml @@ -34,7 +34,8 @@ spring: jwt: expireTime: 86400 - secretKey: https://github.com/apache/seatunnel + # please add key when deploy + secretKey: algorithm: HS256 --- From e4a211d3da5a13c18cb873c8c1ffb909a3adca92 Mon Sep 17 00:00:00 2001 From: Jia Fan Date: Wed, 12 Jun 2024 11:19:27 +0800 Subject: [PATCH 2/2] [Fix] Remove secretKey in application.yml --- .../db2/jdbc/Db2JdbcDataSourceChannel.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/seatunnel-datasource/seatunnel-datasource-plugins/datasource-jdbc-db2/src/main/java/org/apache/seatunnel/datasource/plugin/db2/jdbc/Db2JdbcDataSourceChannel.java b/seatunnel-datasource/seatunnel-datasource-plugins/datasource-jdbc-db2/src/main/java/org/apache/seatunnel/datasource/plugin/db2/jdbc/Db2JdbcDataSourceChannel.java index 15c21229d..844a47563 100644 --- a/seatunnel-datasource/seatunnel-datasource-plugins/datasource-jdbc-db2/src/main/java/org/apache/seatunnel/datasource/plugin/db2/jdbc/Db2JdbcDataSourceChannel.java +++ b/seatunnel-datasource/seatunnel-datasource-plugins/datasource-jdbc-db2/src/main/java/org/apache/seatunnel/datasource/plugin/db2/jdbc/Db2JdbcDataSourceChannel.java @@ -1,3 +1,20 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.apache.seatunnel.datasource.plugin.db2.jdbc; import org.apache.seatunnel.api.configuration.util.OptionRule;