Add /llms.txt endpoint to trust center compliance page

Renders compliance data (frameworks, documents, audits, subprocessors, references, and external links) as a plain-text Markdown document. The endpoint supports all required visibility filters and pagination.

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
Bryan Frimin
2026-03-19 22:05:52 +01:00
parent 19eb2f5d84
commit f11eae6b82
4 changed files with 503 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
# {{ .OrgName }} — Compliance
{{ if .Description }}
{{ .Description }}
{{ end }}{{ if .Details }}
{{ range .Details }}- **{{ .Label }}**: {{ .Value }}
{{ end }}{{ end }}{{ if .Frameworks }}
## Compliance Frameworks
{{ range .Frameworks }}- {{ .Name }}{{ if .Description }}: {{ .Description }}{{ end }}
{{ end }}{{ end }}{{ if .Documents }}
## Documents
| Title | Type |
|-------|------|
{{ range .Documents }}| {{ .Title }} | {{ .Type }} |
{{ end }}{{ end }}{{ if .Audits }}
## Audits
| Name | Framework | Valid From | Valid Until |
|------|-----------|------------|-------------|
{{ range .Audits }}| {{ .Name }} | {{ .Framework }} | {{ .ValidFrom }} | {{ .ValidUntil }} |
{{ end }}{{ end }}{{ if .Vendors }}
## Subprocessors
| Name | Category | Countries | Website |
|------|----------|-----------|---------|
{{ range .Vendors }}| {{ .Name }} | {{ .Category }} | {{ .Countries }} | {{ .Website }} |
{{ end }}{{ end }}{{ if .References }}
## References
| Name | Description | Website |
|------|-------------|---------|
{{ range .References }}| {{ .Name }} | {{ .Description }} | {{ .Website }} |
{{ end }}{{ end }}{{ if .ExternalLinks }}
## External Links
| Name | URL |
|------|-----|
{{ range .ExternalLinks }}| {{ .Name }} | {{ .URL }} |
{{ end }}{{ end }}