mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 10:07:28 +01:00
java client: sign filer JWTs and hold [filer.basic_auth] credentials
FilerSecurityContext reads jwt.filer_signing.key, jwt.filer_signing.read.key (with their expires_after_seconds, defaulting to 10 and 60 like the Go clients) and [filer.basic_auth] from security.toml, with setters to set them in code. getFilerAuthorizationHeaderValue returns the credential for a request to the filer's HTTP port: an HS256 token for the access level, minted like security.GenJwtForFilerServer, else the filer Basic Auth, else the existing [basic_auth] value. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
0b77ec4723
commit
cd06df103a
3 files changed
+181
-1
No files matched your search
@@ -44,7 +44,7 @@ jobs:
|
||||
- name: Run Client Unit Tests
|
||||
working-directory: other/java/client
|
||||
run: |
|
||||
mvn test -Dtest=SeaweedReadTest,SeaweedCipherTest
|
||||
mvn test -Dtest=SeaweedReadTest,SeaweedCipherTest,FilerJwtTest
|
||||
|
||||
- name: Run HDFS3 Configuration Tests
|
||||
working-directory: other/java/hdfs3
|
||||
|
||||
Reference in new issue
Block a user