Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
f824f0d
Bump the all-modules group in /sda-download with 2 updates
dependabot[bot] Sep 15, 2025
9971e97
Bump the all-modules group in /sda-sftp-inbox with 2 updates
dependabot[bot] Sep 15, 2025
fe1b1d1
Bump com.google.code.gson:gson in /sda-doa in the all-modules group
dependabot[bot] Sep 15, 2025
d868aa0
Bump the all-modules group in /sda with 7 updates
dependabot[bot] Sep 15, 2025
26c3599
Merge pull request #1966 from neicnordic/dependabot/maven/sda-doa/all…
jbygdell Sep 16, 2025
cc6bec4
Merge pull request #1964 from neicnordic/dependabot/go_modules/sda-do…
jbygdell Sep 16, 2025
cd1595b
Merge pull request #1965 from neicnordic/dependabot/maven/sda-sftp-in…
jbygdell Sep 16, 2025
e7c4a1b
Merge pull request #1967 from neicnordic/dependabot/go_modules/sda/al…
jbygdell Sep 16, 2025
c0c6f49
Bump chart version
Sep 16, 2025
8a26eed
Merge pull request #1961 from neicnordic/bump
jbygdell Sep 17, 2025
bb73f8b
Bump github.com/gin-gonic/gin in /sda-download in the all-modules group
dependabot[bot] Sep 22, 2025
97a7d0b
Bump the all-modules group in /sda-sftp-inbox with 3 updates
dependabot[bot] Sep 22, 2025
81de3cc
Bump the all-modules group in /sda with 5 updates
dependabot[bot] Sep 22, 2025
a7cc5c0
Bump org.springframework.boot:spring-boot-starter-parent
dependabot[bot] Sep 22, 2025
0f297fb
Merge pull request #1980 from neicnordic/dependabot/maven/sda-doa/all…
jbygdell Sep 23, 2025
dd37c7b
Merge pull request #1977 from neicnordic/dependabot/go_modules/sda-do…
jbygdell Sep 23, 2025
1b9f574
Merge pull request #1978 from neicnordic/dependabot/maven/sda-sftp-in…
jbygdell Sep 23, 2025
aa1d837
Merge pull request #1979 from neicnordic/dependabot/go_modules/sda/al…
jbygdell Sep 23, 2025
67bc544
Rollback AWS library
jbygdell Sep 23, 2025
b3424cc
feat(sda-download): optimise getFiles query, remove unneeded join, an…
KarlG-nbis Sep 23, 2025
fe6557c
feat(sda-download): remove TestGetFiles unit test which just verifies…
KarlG-nbis Sep 23, 2025
64db0ba
feat(sda-download): remove datasetId, encryptedFileSize, encryptedFil…
KarlG-nbis Sep 23, 2025
a54aadc
Merge pull request #1987 from neicnordic/hotfix/rollback-aws-library
jbygdell Sep 24, 2025
40c820f
Bump chart version
Sep 24, 2025
f6d2855
Merge pull request #1986 from neicnordic/bump
jbygdell Sep 24, 2025
73ad802
Disable service links for all deployments
jbygdell Sep 19, 2025
f9ce6f1
Bump chart version.
jbygdell Sep 19, 2025
e4b0a8b
feat(sda-download): update comment for FileInfo
KarlG-nbis Sep 25, 2025
6195a7f
feat(sda-download): remove DatasetFile struct infavour of updating Fi…
KarlG-nbis Sep 25, 2025
b901330
feat(sda-download): remove database.GetDatasetFileInfo func and repla…
KarlG-nbis Sep 25, 2025
c7dd78d
Merge pull request #1974 from neicnordic/hotfix/charts-disable-servic…
jbygdell Sep 26, 2025
793c726
feat(sda-download): update api.md update the /metadata/datasets/{data…
KarlG-nbis Sep 29, 2025
8760665
Bump the all-modules group in /sda-doa with 2 updates
dependabot[bot] Sep 29, 2025
f244a52
Bump snok/container-retention-policy from 3.0.0 to 3.0.1
dependabot[bot] Sep 29, 2025
e0dfdea
add okhttp jvm dependency
Parisa68 Sep 30, 2025
f917b69
Merge pull request #1999 from neicnordic/dependabot/maven/sda-doa/all…
kjellp Sep 30, 2025
2dc3f00
feat(sda-download): update variable/func naming Id -> ID
KarlG-nbis Oct 2, 2025
e040906
Merge pull request #2004 from neicnordic/dependabot/github_actions/sn…
jbygdell Oct 3, 2025
ea4a94a
Merge pull request #1993 from neicnordic/feature/sda-download_query_o…
jbygdell Oct 3, 2025
df668f7
Bump the all-modules group in /sda-sftp-inbox with 2 updates
dependabot[bot] Oct 6, 2025
703704e
Bump the all-modules group in /sda-doa with 2 updates
dependabot[bot] Oct 6, 2025
4d5d8c9
Merge pull request #2017 from neicnordic/dependabot/maven/sda-doa/all…
jbygdell Oct 8, 2025
09aa45c
Merge pull request #2015 from neicnordic/dependabot/maven/sda-sftp-in…
jbygdell Oct 8, 2025
635384f
Merge remote-tracking branch 'upstream/main' into sync-fork-8
kkochel Oct 9, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ghcr-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
packages: write
steps:
- name: Delete 'PR' containers older than one month
uses: snok/container-retention-policy@v3.0.0
uses: snok/container-retention-policy@v3.0.1
with:
account: ${{ github.repository_owner }}
image-names: sensitive-data-archive
Expand Down
1 change: 1 addition & 0 deletions charts/sda-svc/templates/api-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ spec:
- name: inbox
mountPath: "/inbox"
{{- end }}
enableServiceLinks: false
volumes:
{{- if not .Values.global.vaultSecrets }}
- name: config
Expand Down
1 change: 1 addition & 0 deletions charts/sda-svc/templates/auth-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ spec:
- name: c4gh
mountPath: {{ template "c4ghPath" . }}
{{- end }}
enableServiceLinks: false
volumes:
{{- if not .Values.global.vaultSecrets }}
{{- if and (.Values.global.auth.resignJwt) (not .Values.global.vaultSecrets) }}
Expand Down
1 change: 1 addition & 0 deletions charts/sda-svc/templates/doa-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ spec:
- name: archive
mountPath: {{ .Values.global.archive.volumePath | quote }}
{{- end }}
enableServiceLinks: false
volumes:
- name: tmp
emptyDir: {}
Expand Down
1 change: 1 addition & 0 deletions charts/sda-svc/templates/download-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ spec:
- name: archive
mountPath: {{ .Values.global.archive.volumePath | quote }}
{{- end }}
enableServiceLinks: false
volumes:
{{- if and (not .Values.global.pkiService) .Values.global.tls.enabled }}
- name: tls
Expand Down
1 change: 1 addition & 0 deletions charts/sda-svc/templates/finalize-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ spec:
- name: backup
mountPath: {{ .Values.global.backupArchive.volumePath | quote }}
{{- end }}
enableServiceLinks: false
volumes:
{{- if not .Values.global.vaultSecrets }}
- name: config
Expand Down
1 change: 1 addition & 0 deletions charts/sda-svc/templates/ingest-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ spec:
- name: inbox
mountPath: {{ .Values.global.inbox.path | quote }}
{{- end }}
enableServiceLinks: false
volumes:
{{- if not .Values.global.vaultSecrets }}
- name: config
Expand Down
1 change: 1 addition & 0 deletions charts/sda-svc/templates/intercept-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ spec:
- name: tls
mountPath: {{ template "tlsPath" . }}
{{- end }}
enableServiceLinks: false
volumes:
- name: config
projected:
Expand Down
1 change: 1 addition & 0 deletions charts/sda-svc/templates/mapper-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ spec:
- name: inbox
mountPath: {{ .Values.global.inbox.path | quote }}
{{- end }}
enableServiceLinks: false
volumes:
{{- if not .Values.global.vaultSecrets }}
- name: config
Expand Down
1 change: 1 addition & 0 deletions charts/sda-svc/templates/re-encrypt-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ spec:
- name: tls
mountPath: {{ template "tlsPath" . }}
{{- end }}
enableServiceLinks: false
volumes:
{{- if not .Values.global.vaultSecrets }}
- name: config
Expand Down
1 change: 1 addition & 0 deletions charts/sda-svc/templates/release-test-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ spec:
command: [ "/bin/bash" ]
args:
- "/release-test-app/release-test.sh"
enableServiceLinks: false
volumes:
{{- if and (not .Values.global.pkiService) .Values.global.tls.enabled }}
- name: certs
Expand Down
1 change: 1 addition & 0 deletions charts/sda-svc/templates/s3-inbox-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ spec:
mountPath: {{ include "jwtPath" . }}
{{- end }}
{{- end }}
enableServiceLinks: false
volumes:
{{- if and (not .Values.global.pkiService) .Values.global.tls.enabled }}
- name: tls
Expand Down
1 change: 1 addition & 0 deletions charts/sda-svc/templates/sftp-inbox-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ spec:
mountPath: "/etc/ssl/certs/java"
- name: tmp
mountPath: /tmp/
enableServiceLinks: false
volumes:
- name: tmp
emptyDir: {}
Expand Down
1 change: 1 addition & 0 deletions charts/sda-svc/templates/sync-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ spec:
- name: tls
mountPath: {{ template "tlsPath" . }}
{{- end }}
enableServiceLinks: false
volumes:
{{- if and (not .Values.global.pkiService) .Values.global.tls.enabled }}
- name: tls
Expand Down
1 change: 1 addition & 0 deletions charts/sda-svc/templates/syncapi-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ spec:
- name: tls
mountPath: {{ template "tlsPath" . }}
{{- end }}
enableServiceLinks: false
volumes:
{{- if not .Values.global.vaultSecrets }}
- name: config
Expand Down
1 change: 1 addition & 0 deletions charts/sda-svc/templates/verify-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ spec:
- name: archive
mountPath: {{ .Values.global.archive.volumePath | quote }}
{{- end }}
enableServiceLinks: false
volumes:
{{- if and (not .Values.global.pkiService) .Values.global.tls.enabled }}
- name: tls
Expand Down
15 changes: 10 additions & 5 deletions sda-doa/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.5.5</version>
<version>3.5.6</version>
<relativePath/>
</parent>
<groupId>no.uio.ifi</groupId>
Expand All @@ -21,7 +21,7 @@
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.13.1</version>
<version>2.13.2</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
Expand Down Expand Up @@ -84,7 +84,7 @@
<dependency>
<groupId>io.minio</groupId>
<artifactId>minio</artifactId>
<version>8.5.17</version>
<version>8.6.0</version>
</dependency>
<dependency>
<groupId>net.logstash.logback</groupId>
Expand All @@ -110,7 +110,7 @@
<dependency>
<groupId>no.elixir</groupId>
<artifactId>crypt4gh</artifactId>
<version>3.0.33</version>
<version>3.0.34</version>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
Expand All @@ -121,7 +121,7 @@
<dependency>
<groupId>no.elixir</groupId>
<artifactId>clearinghouse</artifactId>
<version>3.0.8</version>
<version>3.0.10</version>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
Expand All @@ -134,6 +134,11 @@
<artifactId>snakeyaml</artifactId>
<version>2.5</version>
</dependency>
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>okhttp-jvm</artifactId>
<version>5.1.0</version>
</dependency>
</dependencies>

<build>
Expand Down
10 changes: 2 additions & 8 deletions sda-download/api/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,25 +59,19 @@ For example, given a dataset name `https://doi.org/abc/123`, one can do `GET /me
[
{
"fileId": "urn:file:1",
"datasetId": "dataset_1",
"displayFileName": "file_1.txt.c4gh",
"fileName": "hash",
"fileSize": 60,
"filePath": "directory/file_1.txt.c4gh",
"decryptedFileSize": 32,
"decryptedFileChecksum": "hash",
"decryptedFileChecksumType": "SHA256",
"fileStatus": "READY"
},
{
"fileId": "urn:file:2",
"datasetId": "dataset_1",
"displayFileName": "file_2.txt.c4gh",
"fileName": "hash",
"fileSize": 60,
"filePath": "directory/file_2.txt.c4gh",
"decryptedFileSize": 32,
"decryptedFileChecksum": "hash",
"decryptedFileChecksumType": "SHA256",
"fileStatus": "READY"
},
]
```
Expand Down
14 changes: 7 additions & 7 deletions sda-download/api/s3/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
return
}
c.XML(http.StatusAccepted, LocationConstraint{
XMLns: "http://s3.amazonaws.com/doc/2006-03-01/",

Check failure on line 75 in sda-download/api/s3/s3.go

View workflow job for this annotation

GitHub Actions / Lint download code

unsecure-url-scheme: prefer secure protocol https over http in "http://s3.amazonaws.com/doc/2006-03-01/" (revive)
Location: "us-west-2",
})
}
Expand Down Expand Up @@ -185,13 +185,13 @@
})
}

func getFileInfo(c *gin.Context) (fileInfo *database.FileInfo, err error) {
func getFileStableID(c *gin.Context) (fileStableID string, err error) {
// Get file info for the given file path (or abort)
filename := c.Param("filename")
if !strings.HasSuffix(c.Param("filename"), ".c4gh") {
filename = c.Param("filename") + ".c4gh"
}
fileInfo, err = database.GetDatasetFileInfo(c.Param("dataset"), filename)
fileStableID, err = database.GetDatasetFileStableID(c.Param("dataset"), filename)
if err != nil {
if err.Error() == "sql: no rows in result set" {
c.AbortWithStatus(http.StatusNotFound)
Expand All @@ -202,7 +202,7 @@
return
}

return fileInfo, nil
return fileStableID, nil
}

// GetObject respondes to an S3 GetObject request. This request returns S3
Expand All @@ -213,7 +213,7 @@
func GetObject(c *gin.Context) {
log.Debugf("S3 GetObject request, context: %v", c.Params)

fileInfo, err := getFileInfo(c)
fileStableID, err := getFileStableID(c)
if err != nil {
return
}
Expand All @@ -222,7 +222,7 @@
c.Set("S3", true)

// set the fileID so that download knows what file to download
c.Params = append(c.Params, gin.Param{Key: "fileid", Value: fileInfo.FileID})
c.Params = append(c.Params, gin.Param{Key: "fileid", Value: fileStableID})

// Download the file
sda.Download(c)
Expand All @@ -236,7 +236,7 @@
func GetEcnryptedObject(c *gin.Context) {
log.Debugf("S3 GetEncryptedObject request, context: %v", c.Params)

fileInfo, err := getFileInfo(c)
fileStableID, err := getFileStableID(c)
if err != nil {
return
}
Expand All @@ -245,7 +245,7 @@
c.Set("S3", true)

// set the fileID so that download knows what file to download
c.Params = append(c.Params, gin.Param{Key: "fileid", Value: fileInfo.FileID})
c.Params = append(c.Params, gin.Param{Key: "fileid", Value: fileStableID})

// set the encrypted parameter so that download gets the encrypted file instead
c.Params = append(c.Params, gin.Param{Key: "type", Value: "encrypted"})
Expand Down
Loading
Loading