Repository navigation
Conversation
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The certificate page repeats the unsupported inline PDF embed in its fallback and provides no download link, preventing affected users from opening or downloading valid certificates.
1 open issue
What changed in this PR
Adds a public certificate site to the Spring backend so visitors can verify certificates and access their PDFs without signing in.
Changes:
- Adds certificate pages, PDF delivery, static assets, and storage existence checks.
- Routes the certificates domain through nginx and permits public access and same-origin PDF embedding.
- Adds endpoint tests and documents the certificate service.
| File | Description |
|---|---|
server-spring/src/test/java/nl/hackyourfuture/dojoserver/certificate/CertificateTest.java |
Tests public pages, PDFs, assets, and missing certificates. |
server-spring/src/main/resources/certificates/static/verified-icon.svg |
Adds the verification badge. |
server-spring/src/main/resources/certificates/static/robots.txt |
Requests that crawlers avoid the site. |
server-spring/src/main/resources/certificates/static/index.css |
Styles the certificate page and PDF border. |
server-spring/src/main/resources/certificates/static/404.css |
Styles the not-found page. |
server-spring/src/main/resources/certificates/pages/index.html |
Displays certificate validity and embeds the PDF. |
server-spring/src/main/resources/certificates/pages/404.html |
Provides a certificate-not-found page. |
server-spring/src/main/java/nl/hackyourfuture/dojoserver/filestorage/FileStorageService.java |
Adds a storage object existence check. |
server-spring/src/main/java/nl/hackyourfuture/dojoserver/config/security/SecurityConfig.java |
Allows public certificate access and same-origin embedding. |
server-spring/src/main/java/nl/hackyourfuture/dojoserver/certificate/CertificateController.java |
Serves certificate pages, PDFs, assets, and HTML errors. |
server-spring/AGENTS.md |
Documents backend certificate behavior. |
client/nginx.conf |
Adds certificate-domain proxying and a content security policy. |
AGENTS.md |
Documents the certificate feature’s location and routing. |
Review effort: Balanced
Comment on lines
+19
to
+21
| <object id="pdf-object" data="/XXXXXXXX?raw=1#toolbar=0" type="application/pdf"> | ||
| <embed src="/XXXXXXXX?raw=1" type="application/pdf" /> | ||
| </object> |
stasel
force-pushed
the
certificate-public-service
branch
from
November 5, 2026 19:17
319131d to
de74e23
Compare
stasel
force-pushed
the
certificate-public-service
branch
from
November 6, 2026 09:47
de74e23 to
1d67083
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

No description provided.