4 Commits

Author SHA1 Message Date
Mondo Diaz
698a13b9a1 Fix Helm chart: rename minio.ingress to minioIngress to avoid subchart conflict (#48)
- Renamed minio.ingress to minioIngress to avoid collision with Bitnami MinIO subchart
- Updated minio-ingress.yaml template to use new key
- Updated _helpers.tpl to use new key
- Updated README documentation
2025-12-16 12:26:27 -06:00
Mondo Diaz
f4e9d1a46f Update documentation for presigned URL download support (#48)
- Document download modes (presigned, redirect, proxy)
- Add new environment variables to configuration table
- Add download examples with mode parameter
- Document presigned URL response format
- Add Helm configuration section for MinIO ingress
2025-12-15 15:42:16 -06:00
Mondo Diaz
04c9bb7d4c Add MinIO ingress support in Helm chart for presigned URLs (#48)
- Add minio.ingress config to values.yaml for exposing MinIO externally
- Create minio-ingress.yaml template for MinIO ingress resource
- Update helpers to use external MinIO URL when ingress is enabled
- Add orchard.download.mode and presignedUrlExpiry to deployment env vars
2025-12-15 15:34:50 -06:00
Mondo Diaz
753c2fd35a Add presigned URL support for direct S3 downloads (#48)
- Add ORCHARD_DOWNLOAD_MODE config (presigned, redirect, proxy)
- Add ORCHARD_PRESIGNED_URL_EXPIRY config (default: 3600s)
- Add generate_presigned_url() method to S3Storage
- Modify download endpoint to support ?mode= query parameter
- Add /url endpoint for getting presigned URL without redirect
- Add PresignedUrlResponse schema with URL, expiry, and checksums
- Default download mode is now presigned for better performance
2025-12-15 15:22:47 -06:00
5 changed files with 36 additions and 39 deletions

View File

@@ -6,10 +6,6 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased] ## [Unreleased]
## [0.3.0] - 2025-12-15
### Changed
- Changed default download mode from `proxy` to `presigned` for better performance (#48)
### Added ### Added
- Added presigned URL support for direct S3 downloads (#48) - Added presigned URL support for direct S3 downloads (#48)
- Added `ORCHARD_DOWNLOAD_MODE` config option (`presigned`, `redirect`, `proxy`) (#48) - Added `ORCHARD_DOWNLOAD_MODE` config option (`presigned`, `redirect`, `proxy`) (#48)
@@ -17,7 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Added `?mode=` query parameter to override download mode per-request (#48) - Added `?mode=` query parameter to override download mode per-request (#48)
- Added `/api/v1/project/{project}/{package}/+/{ref}/url` endpoint for getting presigned URLs (#48) - Added `/api/v1/project/{project}/{package}/+/{ref}/url` endpoint for getting presigned URLs (#48)
- Added `PresignedUrlResponse` schema with URL, expiry, checksums, and artifact metadata (#48) - Added `PresignedUrlResponse` schema with URL, expiry, checksums, and artifact metadata (#48)
- Added MinIO ingress support in Helm chart for presigned URL access (#48) - Added `minioIngress` config in Helm chart for exposing MinIO for presigned URL access (#48)
- Added `orchard.download.mode` and `orchard.download.presignedUrlExpiry` Helm values (#48) - Added `orchard.download.mode` and `orchard.download.presignedUrlExpiry` Helm values (#48)
- Added integrity verification workflow design document (#24) - Added integrity verification workflow design document (#24)
- Added `sha256` field to API responses for clarity (alias of `id`) (#25) - Added `sha256` field to API responses for clarity (alias of `id`) (#25)
@@ -26,7 +22,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Compute and store MD5, SHA1, and S3 ETag alongside SHA256 during upload (#25) - Compute and store MD5, SHA1, and S3 ETag alongside SHA256 during upload (#25)
- Added `Dockerfile.local` and `docker-compose.local.yml` for local development (#25) - Added `Dockerfile.local` and `docker-compose.local.yml` for local development (#25)
- Added migration script `003_checksum_fields.sql` for existing databases (#25) - Added migration script `003_checksum_fields.sql` for existing databases (#25)
### Changed
- Changed default download mode from `proxy` to `presigned` for better performance (#48)
## [0.2.0] - 2025-12-15 ## [0.2.0] - 2025-12-15
### Changed ### Changed

View File

@@ -553,19 +553,18 @@ orchard:
presignedUrlExpiry: 3600 presignedUrlExpiry: 3600
# MinIO ingress (required for presigned URL downloads) # MinIO ingress (required for presigned URL downloads)
minio: minioIngress:
ingress: enabled: true
className: "nginx"
annotations:
cert-manager.io/cluster-issuer: "letsencrypt"
host: "minio.your-domain.com"
tls:
enabled: true enabled: true
className: "nginx" secretName: minio-tls
annotations:
cert-manager.io/cluster-issuer: "letsencrypt"
host: "minio.your-domain.com"
tls:
enabled: true
secretName: minio-tls
``` ```
When `minio.ingress.enabled` is `true`, the S3 endpoint automatically uses the external URL (`https://minio.your-domain.com`), making presigned URLs accessible to external clients. When `minioIngress.enabled` is `true`, the S3 endpoint automatically uses the external URL (`https://minio.your-domain.com`), making presigned URLs accessible to external clients.
See `helm/orchard/values.yaml` for all configuration options. See `helm/orchard/values.yaml` for all configuration options.

View File

@@ -111,11 +111,11 @@ MinIO internal host (for server-side operations)
MinIO host (uses external URL if ingress enabled, for presigned URLs) MinIO host (uses external URL if ingress enabled, for presigned URLs)
*/}} */}}
{{- define "orchard.minio.host" -}} {{- define "orchard.minio.host" -}}
{{- if and .Values.minio.enabled .Values.minio.ingress.enabled .Values.minio.ingress.host }} {{- if and .Values.minio.enabled .Values.minioIngress.enabled .Values.minioIngress.host }}
{{- if .Values.minio.ingress.tls.enabled }} {{- if .Values.minioIngress.tls.enabled }}
{{- printf "https://%s" .Values.minio.ingress.host }} {{- printf "https://%s" .Values.minioIngress.host }}
{{- else }} {{- else }}
{{- printf "http://%s" .Values.minio.ingress.host }} {{- printf "http://%s" .Values.minioIngress.host }}
{{- end }} {{- end }}
{{- else if .Values.minio.enabled }} {{- else if .Values.minio.enabled }}
{{- printf "http://%s-minio:9000" .Release.Name }} {{- printf "http://%s-minio:9000" .Release.Name }}

View File

@@ -1,4 +1,4 @@
{{- if and .Values.minio.enabled .Values.minio.ingress.enabled -}} {{- if and .Values.minio.enabled .Values.minioIngress.enabled -}}
apiVersion: networking.k8s.io/v1 apiVersion: networking.k8s.io/v1
kind: Ingress kind: Ingress
metadata: metadata:
@@ -6,22 +6,22 @@ metadata:
labels: labels:
{{- include "orchard.labels" . | nindent 4 }} {{- include "orchard.labels" . | nindent 4 }}
app.kubernetes.io/component: minio app.kubernetes.io/component: minio
{{- with .Values.minio.ingress.annotations }} {{- with .Values.minioIngress.annotations }}
annotations: annotations:
{{- toYaml . | nindent 4 }} {{- toYaml . | nindent 4 }}
{{- end }} {{- end }}
spec: spec:
{{- if .Values.minio.ingress.className }} {{- if .Values.minioIngress.className }}
ingressClassName: {{ .Values.minio.ingress.className }} ingressClassName: {{ .Values.minioIngress.className }}
{{- end }} {{- end }}
{{- if .Values.minio.ingress.tls.enabled }} {{- if .Values.minioIngress.tls.enabled }}
tls: tls:
- hosts: - hosts:
- {{ .Values.minio.ingress.host | quote }} - {{ .Values.minioIngress.host | quote }}
secretName: {{ .Values.minio.ingress.tls.secretName }} secretName: {{ .Values.minioIngress.tls.secretName }}
{{- end }} {{- end }}
rules: rules:
- host: {{ .Values.minio.ingress.host | quote }} - host: {{ .Values.minioIngress.host | quote }}
http: http:
paths: paths:
- path: / - path: /

View File

@@ -152,17 +152,18 @@ minio:
persistence: persistence:
enabled: false enabled: false
size: 50Gi size: 50Gi
# MinIO ingress for presigned URL access
ingress: # MinIO external ingress for presigned URL access (separate from subchart ingress)
enabled: false minioIngress:
className: "nginx" enabled: false
annotations: className: "nginx"
cert-manager.io/cluster-issuer: "letsencrypt" annotations:
nginx.ingress.kubernetes.io/proxy-body-size: "0" # Disable body size limit for uploads cert-manager.io/cluster-issuer: "letsencrypt"
host: "" # e.g., minio.your-domain.com nginx.ingress.kubernetes.io/proxy-body-size: "0" # Disable body size limit for uploads
tls: host: "" # e.g., minio.your-domain.com
enabled: true tls:
secretName: minio-tls enabled: true
secretName: minio-tls
# Redis subchart configuration (for future caching) # Redis subchart configuration (for future caching)
redis: redis: