Skip to content

Commit

Permalink
release v1.4.1, updated dependencies [close #17]
Browse files Browse the repository at this point in the history
  • Loading branch information
ggrandes committed Jul 25, 2024
1 parent b447ff5 commit 7c09ea6
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 12 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

---

Expand Down Expand Up @@ -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/)

Expand Down
2 changes: 1 addition & 1 deletion linux/sftpd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 7 additions & 7 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>org.javastack</groupId>
<artifactId>sftpserver</artifactId>
<version>1.4.0</version>
<version>1.4.1</version>
<description>SFTP Server (SSH File Transfer Protocol)</description>

<name>${project.groupId}:${project.artifactId}</name>
Expand Down Expand Up @@ -34,10 +34,10 @@
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
<slf4j.version>1.7.36</slf4j.version>
<mina.version>2.1.6</mina.version>
<sshd.version>2.8.0</sshd.version>
<commons-codec.version>1.15</commons-codec.version>
<bc.version>1.70</bc.version>
<mina.version>2.1.8</mina.version>
<sshd.version>2.13.1</sshd.version>
<commons-codec.version>1.17.1</commons-codec.version>
<bc.version>1.78.1</bc.version>
<eddsa.version>0.3.0</eddsa.version>
<jzlib.version>1.1.3</jzlib.version>
</properties>
Expand Down Expand Up @@ -70,12 +70,12 @@
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk15on</artifactId>
<artifactId>bcprov-jdk18on</artifactId>
<version>${bc.version}</version>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcpkix-jdk15on</artifactId>
<artifactId>bcpkix-jdk18on</artifactId>
<version>${bc.version}</version>
</dependency>
<dependency>
Expand Down
2 changes: 2 additions & 0 deletions sampleconf/sftpd.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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"
#
Expand Down
4 changes: 3 additions & 1 deletion src/main/resources/sftpd.policy
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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";
Expand Down

0 comments on commit 7c09ea6

Please sign in to comment.