Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
9 changes: 3 additions & 6 deletions .github/workflows/delivery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ concurrency:
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
release:
# Note: a current limitation is that when a release is edited after publication, then the Docker tags are not automatically updated.
types: [ published ]
Expand All @@ -27,18 +29,13 @@ jobs:
strategy:
fail-fast: false
matrix:
component: [backend, frontend]
component: [backend]
include:
- component: backend
dockerfile: backend.Dockerfile
image_suffix: "-backend"
local_tag: local/postguard-backend:scan
sarif_category: backend
- component: frontend
dockerfile: frontend.Dockerfile
image_suffix: "-frontend"
local_tag: local/postguard-frontend:scan
sarif_category: frontend

steps:
- name: Checkout
Expand Down
50 changes: 37 additions & 13 deletions api-description.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,31 @@ info:
title: "Cryptify API"
description: "This is the cryptify server that manages encrypted files."
version: "1.0.0"
servers:
- url: http://localhost:8000
description: Development server
tags:
- name: "Health"
description: "Health check"
- name: "File upload"
description: "Upload files"
- name: "File download"
description: "Download files"
paths:
/health:
get:
tags:
- "Health"
summary: "Health check endpoint"
operationId: "health"
responses:
"200":
description: "Service is healthy"
content:
text/plain:
schema:
type: "string"
example: "OK"
/fileupload/init:
post:
tags:
Expand All @@ -20,19 +39,30 @@ paths:
application/json:
schema:
type: "object"
required:
- recipient
- mailContent
- mailLang
- confirm
properties:
sender:
type: "string"
format: "email"
recipient:
type: "string"
format: "email"
fileSize:
type: "number"
example: "recipient@example.com"
description: "Email address of the recipient"
mailContent:
type: "string"
example: "Here is your encrypted file"
description: "Content to include in the email"
mailLang:
type: "string"
enum: ["EN", "NL"]
example: "EN"
description: "Email language (EN or NL)"
confirm:
type: "boolean"
example: true
description: "Whether to send a confirmation email to the sender"
responses:
"200":
description: "Successful operation"
Expand All @@ -47,9 +77,10 @@ paths:
schema:
type: "object"
properties:
id:
uuid:
type: "string"
format: "uuid"
description: "Unique identifier for the file upload"
/fileupload/{uuid}:
put:
tags:
Expand Down Expand Up @@ -121,13 +152,6 @@ paths:
summary: "Finalize multipart file upload and send mail to recipient"
operationId: "finalizeFileUpload"
parameters:
- in: "header"
name: "cryptifytoken"
description:
"Identifies the version of the upload file parts. Part of the header from the last fileupload response."
schema:
type: "string"
required: true
- in: "header"
name: "Content-Range"
description:
Expand Down
2 changes: 1 addition & 1 deletion backend.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM rust:1.91.0-slim-trixie AS builder
FROM rust:1.93.0-slim-trixie AS builder

ENV ROCKET_PROFILE=release

Expand Down
2 changes: 1 addition & 1 deletion backend.dev.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM rust:1.91.0-slim-trixie AS chef
FROM rust:latest AS chef

# Install cargo-chef for dependency caching
RUN cargo install cargo-chef cargo-watch
Expand Down
2 changes: 2 additions & 0 deletions conf/config.dev.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ smtp_port = 1025
# smtp_credentials = ["user", "pw"]
allowed_origins = "^https?://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?$"
pkg_url = "https://postguard-main.cs.ru.nl/pkg"
# pkg_url = "https://postguard.staging.yivi.app"
# pkg_url = "https://localhost:8087"
1 change: 0 additions & 1 deletion conf/crontab

This file was deleted.

75 changes: 0 additions & 75 deletions conf/cryptify.nl.conf

This file was deleted.

16 changes: 0 additions & 16 deletions conf/cryptify.service

This file was deleted.

8 changes: 0 additions & 8 deletions conf/irma.example.json

This file was deleted.

33 changes: 0 additions & 33 deletions conf/nginx.conf

This file was deleted.

37 changes: 0 additions & 37 deletions conf/nginx.dev.conf

This file was deleted.

3 changes: 0 additions & 3 deletions cryptify-front-end/.env

This file was deleted.

27 changes: 0 additions & 27 deletions cryptify-front-end/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion cryptify-front-end/.nvmrc

This file was deleted.

32 changes: 0 additions & 32 deletions cryptify-front-end/craco.config.js

This file was deleted.

Loading
Loading