From 7c09ea6d6323877145b90c23ea1ba5fc33dc6a02 Mon Sep 17 00:00:00 2001 From: ggrandes Date: Thu, 25 Jul 2024 17:53:12 +0200 Subject: [PATCH] release v1.4.1, updated dependencies [close #17] --- README.md | 6 +++--- linux/sftpd.sh | 2 +- pom.xml | 14 +++++++------- sampleconf/sftpd.properties | 2 ++ src/main/resources/sftpd.policy | 4 +++- 5 files changed, 16 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 885db63..44dc954 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ SFTP Server (SSH File Transfer Protocol) based on `Apache MINA SSHD`. Open Source Java project under Apache License v2.0 -### Current Stable Version is [1.4.0](https://maven-release.s3.amazonaws.com/release/org/javastack/sftpserver/1.4.0/sftpserver-1.4.0-bin.zip) +### Current Stable Version is [1.4.1](https://maven-release.s3.amazonaws.com/release/org/javastack/sftpserver/1.4.1/sftpserver-1.4.1-bin.zip) --- @@ -140,8 +140,8 @@ Maven Dependencies: [Bouncy Castle (encryption)](http://www.bouncycastle.org/java.html) -* bcprov-jdk15on-`XXX`.jar -* bcpkix-jdk15on-`XXX`.jar +* bcprov-jdk18on-`XXX`.jar +* bcpkix-jdk18on-`XXX`.jar [JZlib (for compression)](http://www.jcraft.com/jzlib/) diff --git a/linux/sftpd.sh b/linux/sftpd.sh index 30a6d37..6f539d8 100644 --- a/linux/sftpd.sh +++ b/linux/sftpd.sh @@ -2,7 +2,7 @@ ID=${2:-default} SFTPD_HOME=${SFTPD_HOME:-/opt/sftpd} SFTPD_MEM_MB=${SFTPD_MEM_MB:-64} -SFTPD_OPTS_DEF="-verbose:gc -XX:+PrintGCDetails -showversion -XX:+PrintCommandLineFlags -XX:-PrintFlagsFinal" +SFTPD_OPTS_DEF="-XX:+IgnoreUnrecognizedVMOptions -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20 -verbose:gc -XX:+PrintGCDetails -Xlog:gc*::time,uptime,level,tags -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -showversion -XX:+PrintCommandLineFlags -XX:-PrintFlagsFinal" SFTPD_OPTS="${SFTPD_OPTS:-${SFTPD_OPTS_DEF}}" SFTPD_CLASSPATH=$(echo $SFTPD_HOME/lib/*.jar | tr ' ' ':') SFTPD_POLICY_1="${SFTPD_HOME}/conf/${ID}/sftpd.policy" # Custom diff --git a/pom.xml b/pom.xml index 3d3c6d0..b652288 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ org.javastack sftpserver - 1.4.0 + 1.4.1 SFTP Server (SSH File Transfer Protocol) ${project.groupId}:${project.artifactId} @@ -34,10 +34,10 @@ UTF-8 1.8 1.7.36 - 2.1.6 - 2.8.0 - 1.15 - 1.70 + 2.1.8 + 2.13.1 + 1.17.1 + 1.78.1 0.3.0 1.1.3 @@ -70,12 +70,12 @@ org.bouncycastle - bcprov-jdk15on + bcprov-jdk18on ${bc.version} org.bouncycastle - bcpkix-jdk15on + bcpkix-jdk18on ${bc.version} diff --git a/sampleconf/sftpd.properties b/sampleconf/sftpd.properties index d452e4c..0a0f133 100644 --- a/sampleconf/sftpd.properties +++ b/sampleconf/sftpd.properties @@ -9,6 +9,8 @@ sftpserver.global.port=22222 sftpserver.global.compress=false # Enable dummy shell (default: false) sftpserver.global.dummyshell=true +# Enable log request (default: false) +sftpserver.global.logrequest=true # ## Configure user "test" # diff --git a/src/main/resources/sftpd.policy b/src/main/resources/sftpd.policy index 4f01c10..0873bb4 100644 --- a/src/main/resources/sftpd.policy +++ b/src/main/resources/sftpd.policy @@ -3,7 +3,7 @@ // // This file contains a default set of security policies to be enforced by JVM // -// $Id: sftpd.policy,v 1.3.0 2020/06/21 19:45:00 ggrandes Exp $ +// $Id: sftpd.policy,v 1.4.1 2024/07/25 17:40:00 ggrandes Exp $ // ============================================================================ // // Load with: -Djava.security.manager -Djava.security.policy=sftpd.policy @@ -38,6 +38,8 @@ grant { permission java.lang.RuntimePermission "fileSystemProvider"; permission java.lang.RuntimePermission "accessDeclaredMembers"; // + permission java.security.SecurityPermission "getProperty.org.bouncycastle.*"; + permission java.security.SecurityPermission "removeProviderProperty.BC"; permission java.security.SecurityPermission "putProviderProperty.BC"; permission java.security.SecurityPermission "insertProvider.BC"; permission java.security.SecurityPermission "putProviderProperty.EdDSA";