Skip to content

Commit 4a72886

Browse files
authored
Persist JWT signing key in dedicated /data folder by default (#128)
1 parent afb502e commit 4a72886

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ All notable changes to this project will be documented in this file.
1717
- Verify TEE tasks `enclaveSignature` before accepting IPFS upload. (#125 #126)
1818
- Persist `WorkerpoolAuthorization` instances to MongoDB. (#127)
1919

20+
### Bug Fixes
21+
22+
- Persist JWT signing key in dedicated `/data` folder by default. (#128)
23+
2024
### Quality
2125

2226
- Remove results download endpoints which are never used. (#117)

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ RUN groupadd --system appuser \
1313

1414
WORKDIR /app
1515
COPY $jar iexec-result-proxy.jar
16-
RUN chown -R appuser:appuser /app
16+
RUN mkdir /data
17+
RUN chown -R appuser:appuser /app /data
1718

1819
USER appuser
1920
ENTRYPOINT [ "java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "iexec-result-proxy.jar" ]

src/main/resources/application.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ ipfs:
2323
port: ${IEXEC_IPFS_PORT:5001}
2424

2525
jwt:
26-
key-path: /app/jwt-sign.key
26+
key-path: /data/jwt-sign.key
2727

2828
springdoc:
2929
packagesToScan: com.iexec.resultproxy

0 commit comments

Comments
 (0)