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
6 changes: 6 additions & 0 deletions config/trustcenter/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,12 @@ RIVERBOAT_RIVER_TRUSTCENTERWORKERS_ATTESTNDAREQUESTWORKER_CONFIG_EMAIL_CONFIG_UR
RIVERBOAT_RIVER_TRUSTCENTERWORKERS_ATTESTNDAREQUESTWORKER_CONFIG_EMAIL_CONFIG_URLS_VERIFYBILLING=""
RIVERBOAT_RIVER_TRUSTCENTERWORKERS_ATTESTNDAREQUESTWORKER_CONFIG_EMAIL_CONFIG_URLS_QUESTIONNAIRE=""
RIVERBOAT_RIVER_TRUSTCENTERWORKERS_ATTESTNDAREQUESTWORKER_CONFIG_EMAIL_CONFIG_TEMPLATESPATH=""
RIVERBOAT_RIVER_TRUSTCENTERWORKERS_CREATEPREVIEWDOMAINACMEWORKER_CONFIG_OPENLANEAPIHOST=""
RIVERBOAT_RIVER_TRUSTCENTERWORKERS_CREATEPREVIEWDOMAINACMEWORKER_CONFIG_OPENLANEAPITOKEN=""
RIVERBOAT_RIVER_TRUSTCENTERWORKERS_CREATEPREVIEWDOMAINACMEWORKER_CONFIG_ENABLED=""
RIVERBOAT_RIVER_TRUSTCENTERWORKERS_CREATEPREVIEWDOMAINACMEWORKER_CONFIG_CLOUDFLAREAPIKEY=""
RIVERBOAT_RIVER_TRUSTCENTERWORKERS_CREATEPREVIEWDOMAINACMEWORKER_CONFIG_MAXSNOOZES=""
RIVERBOAT_RIVER_TRUSTCENTERWORKERS_CREATEPREVIEWDOMAINACMEWORKER_CONFIG_SNOOZEDURATION=""
RIVERBOAT_RIVER_DEFAULTMAXRETRIES="10"
RIVERBOAT_RIVER_METRICS_ENABLEMETRICS="false"
RIVERBOAT_RIVER_METRICS_METRICSDURATIONUNIT="ms"
Expand Down
8 changes: 8 additions & 0 deletions config/trustcenter/config.example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,14 @@ river:
pirschclientsecret: ""
pirschteamid: ""
pirschthemeid: ""
createpreviewdomainacmeworker:
config:
cloudflareapikey: ""
enabled: false
maxsnoozes: 0
openlaneapihost: ""
openlaneapitoken: ""
snoozeduration: 0
createpreviewdomainworker:
config:
cloudflareapikey: ""
Expand Down
6 changes: 6 additions & 0 deletions config/trustcenter/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,12 @@ data:
RIVERBOAT_RIVER_TRUSTCENTERWORKERS_ATTESTNDAREQUESTWORKER_CONFIG_EMAIL_CONFIG_URLS_VERIFYBILLING: {{ .Values.riverboat.river.trustcenterworkers.attestndarequestworker.config.email.config.urls.verifybilling }}
RIVERBOAT_RIVER_TRUSTCENTERWORKERS_ATTESTNDAREQUESTWORKER_CONFIG_EMAIL_CONFIG_URLS_QUESTIONNAIRE: {{ .Values.riverboat.river.trustcenterworkers.attestndarequestworker.config.email.config.urls.questionnaire }}
RIVERBOAT_RIVER_TRUSTCENTERWORKERS_ATTESTNDAREQUESTWORKER_CONFIG_EMAIL_CONFIG_TEMPLATESPATH: {{ .Values.riverboat.river.trustcenterworkers.attestndarequestworker.config.email.config.templatespath }}
RIVERBOAT_RIVER_TRUSTCENTERWORKERS_CREATEPREVIEWDOMAINACMEWORKER_CONFIG_OPENLANEAPIHOST: {{ .Values.riverboat.river.trustcenterworkers.createpreviewdomainacmeworker.config.openlaneapihost }}
RIVERBOAT_RIVER_TRUSTCENTERWORKERS_CREATEPREVIEWDOMAINACMEWORKER_CONFIG_OPENLANEAPITOKEN: {{ .Values.riverboat.river.trustcenterworkers.createpreviewdomainacmeworker.config.openlaneapitoken }}
RIVERBOAT_RIVER_TRUSTCENTERWORKERS_CREATEPREVIEWDOMAINACMEWORKER_CONFIG_ENABLED: {{ .Values.riverboat.river.trustcenterworkers.createpreviewdomainacmeworker.config.enabled }}
RIVERBOAT_RIVER_TRUSTCENTERWORKERS_CREATEPREVIEWDOMAINACMEWORKER_CONFIG_CLOUDFLAREAPIKEY: {{ .Values.riverboat.river.trustcenterworkers.createpreviewdomainacmeworker.config.cloudflareapikey }}
RIVERBOAT_RIVER_TRUSTCENTERWORKERS_CREATEPREVIEWDOMAINACMEWORKER_CONFIG_MAXSNOOZES: {{ .Values.riverboat.river.trustcenterworkers.createpreviewdomainacmeworker.config.maxsnoozes }}
RIVERBOAT_RIVER_TRUSTCENTERWORKERS_CREATEPREVIEWDOMAINACMEWORKER_CONFIG_SNOOZEDURATION: {{ .Values.riverboat.river.trustcenterworkers.createpreviewdomainacmeworker.config.snoozeduration }}
RIVERBOAT_RIVER_DEFAULTMAXRETRIES: {{ .Values.riverboat.river.defaultmaxretries | default 10 }}
RIVERBOAT_RIVER_METRICS_ENABLEMETRICS: {{ .Values.riverboat.river.metrics.enablemetrics | default false }}
RIVERBOAT_RIVER_METRICS_METRICSDURATIONUNIT: {{ .Values.riverboat.river.metrics.metricsdurationunit | default "ms" }}
Expand Down
43 changes: 43 additions & 0 deletions configgen/api-docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@
}
}
}
},
"createpreviewdomainacmeworker": {
"config": {}
}
},
"metrics": {}
Expand Down Expand Up @@ -178,6 +181,9 @@ Config is the configuration for the river server
}
}
}
},
"createpreviewdomainacmeworker": {
"config": {}
}
},
"metrics": {}
Expand Down Expand Up @@ -455,6 +461,7 @@ SlackConfig configures the Slack worker.
|[**validatepreviewdomainworker**](#rivertrustcenterworkersvalidatepreviewdomainworker)|`object`|||
|[**cleartrustcentercacheworker**](#rivertrustcenterworkerscleartrustcentercacheworker)|`object`|||
|[**attestndarequestworker**](#rivertrustcenterworkersattestndarequestworker)|`object`|||
|[**createpreviewdomainacmeworker**](#rivertrustcenterworkerscreatepreviewdomainacmeworker)|`object`|||

**Additional Properties:** not allowed
**Example**
Expand Down Expand Up @@ -507,6 +514,9 @@ SlackConfig configures the Slack worker.
}
}
}
},
"createpreviewdomainacmeworker": {
"config": {}
}
}
```
Expand Down Expand Up @@ -1037,6 +1047,39 @@ OpenlaneConfig contains the configuration for connecting to the Openlane API.
|**verifybilling**|`string`|||
|**questionnaire**|`string`|||

**Additional Properties:** not allowed
<a name="rivertrustcenterworkerscreatepreviewdomainacmeworker"></a>
#### river\.trustcenterworkers\.createpreviewdomainacmeworker: object

**Properties**

|Name|Type|Description|Required|
|----|----|-----------|--------|
|[**config**](#rivertrustcenterworkerscreatepreviewdomainacmeworkerconfig)|`object`||yes|

**Additional Properties:** not allowed
**Example**

```json
{
"config": {}
}
```

<a name="rivertrustcenterworkerscreatepreviewdomainacmeworkerconfig"></a>
##### river\.trustcenterworkers\.createpreviewdomainacmeworker\.config: object

**Properties**

|Name|Type|Description|Required|
|----|----|-----------|--------|
|**openlaneapihost**|`string`||no|
|**openlaneapitoken**|`string`||no|
|**enabled**|`boolean`||no|
|**cloudflareapikey**|`string`||no|
|**maxsnoozes**|`integer`||yes|
|**snoozeduration**|`integer`||yes|

**Additional Properties:** not allowed
<a name="rivermetrics"></a>
### river\.metrics: object
Expand Down
41 changes: 41 additions & 0 deletions configgen/riverboat.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,44 @@
"additionalProperties": false,
"type": "object"
},
"corejobs.CreatePreviewDomainAcmeConfig": {
"properties": {
"openlaneapihost": {
"type": "string"
},
"openlaneapitoken": {
"type": "string"
},
"enabled": {
"type": "boolean"
},
"cloudflareapikey": {
"type": "string"
},
"maxsnoozes": {
"type": "integer"
},
"snoozeduration": {
"type": "integer"
}
},
"additionalProperties": false,
"type": "object",
"required": [
"maxsnoozes",
"snoozeduration"
]
},
"corejobs.CreatePreviewDomainAcmeWorker": {
"properties": {
"config": {
"$ref": "#/$defs/corejobs.CreatePreviewDomainAcmeConfig",
"description": "the configuration for preview domain creation"
}
},
"additionalProperties": false,
"type": "object"
},
"corejobs.CreatePreviewDomainWorker": {
"properties": {
"config": {
Expand Down Expand Up @@ -727,6 +765,9 @@
},
"attestndarequestworker": {
"$ref": "#/$defs/corejobs.AttestNDARequestWorker"
},
"createpreviewdomainacmeworker": {
"$ref": "#/$defs/corejobs.CreatePreviewDomainAcmeWorker"
}
},
"additionalProperties": false,
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM --platform=$BUILDPLATFORM golang:1.25.7 AS builder
FROM --platform=$BUILDPLATFORM golang:1.25.8 AS builder

ARG TARGETOS
ARG TARGETARCH
Expand Down
126 changes: 58 additions & 68 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,91 +1,89 @@
module github.com/theopenlane/riverboat

go 1.25.7
go 1.25.8

replace github.com/theopenlane/riverboat/trustcenter => ./trustcenter

require (
github.com/99designs/gqlgen v0.17.87
github.com/99designs/gqlgen v0.17.89
github.com/gertd/go-pluralize v0.2.1
github.com/go-chi/chi/v5 v5.2.5
github.com/gocarina/gocsv v0.0.0-20240520201108-78e41c74b4b1
github.com/gqlgo/gqlgenc v0.33.1
github.com/invopop/jsonschema v0.13.0
github.com/invopop/yaml v0.3.1
github.com/jackc/pgx/v5 v5.8.0
github.com/jackc/pgx/v5 v5.9.1
github.com/knadh/koanf/parsers/yaml v1.1.0
github.com/knadh/koanf/providers/env/v2 v2.0.0
github.com/knadh/koanf/providers/file v1.2.1
github.com/knadh/koanf/providers/posflag v1.0.1
github.com/knadh/koanf/v2 v2.3.2
github.com/knadh/koanf/v2 v2.3.4
github.com/mcuadros/go-defaults v1.2.0
github.com/microcosm-cc/bluemonday v1.0.27
github.com/prometheus/client_golang v1.23.2
github.com/riverqueue/river v0.31.0
github.com/riverqueue/river/riverdriver/riverpgxv5 v0.31.0
github.com/riverqueue/river/rivertype v0.31.0
github.com/riverqueue/river v0.32.0
github.com/riverqueue/river/riverdriver/riverpgxv5 v0.32.0
github.com/riverqueue/river/rivertype v0.32.0
github.com/riverqueue/rivercontrib/otelriver v0.7.0
github.com/rs/zerolog v1.34.0
github.com/samber/lo v1.52.0
github.com/slack-go/slack v0.18.0
github.com/samber/lo v1.53.0
github.com/slack-go/slack v0.20.0
github.com/spf13/cobra v1.10.2
github.com/stoewer/go-strcase v1.3.1
github.com/stretchr/testify v1.11.1
github.com/theopenlane/core/common v1.0.11
github.com/theopenlane/core/common v1.0.15
github.com/theopenlane/dbx v0.1.3
github.com/theopenlane/go-client v0.8.5
github.com/theopenlane/go-client v0.8.7
github.com/theopenlane/httpsling v0.3.0
github.com/theopenlane/iam v0.25.0
github.com/theopenlane/iam v0.27.5
github.com/theopenlane/newman v0.2.2
github.com/theopenlane/riverboat/trustcenter v0.1.2
github.com/theopenlane/utils v0.7.0
go.opentelemetry.io/otel v1.40.0
go.opentelemetry.io/otel v1.42.0
go.opentelemetry.io/otel/exporters/prometheus v0.61.0
go.opentelemetry.io/otel/sdk/metric v1.40.0
go.opentelemetry.io/otel/sdk/metric v1.41.0
)

require (
github.com/Yamashou/gqlgenc v0.33.0 // indirect
github.com/aws/aws-sdk-go-v2 v1.41.2 // indirect
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.5 // indirect
github.com/aws/aws-sdk-go-v2/config v1.32.10 // indirect
github.com/aws/aws-sdk-go-v2/credentials v1.19.10 // indirect
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.18.18 // indirect
github.com/aws/aws-sdk-go-v2/internal/configsources v1.4.18 // indirect
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.18 // indirect
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.4 // indirect
github.com/aws/aws-sdk-go-v2/internal/v4a v1.4.18 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.5 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.9.10 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.13.18 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.19.18 // indirect
github.com/aws/aws-sdk-go-v2/service/s3 v1.96.2 // indirect
github.com/aws/aws-sdk-go-v2/service/signin v1.0.6 // indirect
github.com/aws/aws-sdk-go-v2/service/sso v1.30.11 // indirect
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.35.15 // indirect
github.com/aws/aws-sdk-go-v2/service/sts v1.41.7 // indirect
github.com/aws/smithy-go v1.24.1 // indirect
github.com/aws/aws-sdk-go-v2 v1.41.4 // indirect
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.8 // indirect
github.com/aws/aws-sdk-go-v2/config v1.32.12 // indirect
github.com/aws/aws-sdk-go-v2/credentials v1.19.12 // indirect
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.18.20 // indirect
github.com/aws/aws-sdk-go-v2/internal/configsources v1.4.20 // indirect
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.20 // indirect
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.6 // indirect
github.com/aws/aws-sdk-go-v2/internal/v4a v1.4.21 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.7 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.9.12 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.13.20 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.19.20 // indirect
github.com/aws/aws-sdk-go-v2/service/s3 v1.97.2 // indirect
github.com/aws/aws-sdk-go-v2/service/signin v1.0.8 // indirect
github.com/aws/aws-sdk-go-v2/service/sso v1.30.13 // indirect
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.35.17 // indirect
github.com/aws/aws-sdk-go-v2/service/sts v1.41.9 // indirect
github.com/aws/smithy-go v1.24.2 // indirect
github.com/aymerick/douceur v0.2.0 // indirect
github.com/bahlo/generic-list-go v0.2.0 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/buger/jsonparser v1.1.1 // indirect
github.com/buger/jsonparser v1.1.2 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/clipperhouse/uax29/v2 v2.6.0 // indirect
github.com/cloudflare/cloudflare-go/v6 v6.7.0 // indirect
github.com/clipperhouse/uax29/v2 v2.7.0 // indirect
github.com/cloudflare/cloudflare-go/v6 v6.8.0 // indirect
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.4.1 // indirect
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
github.com/fatih/color v1.18.0 // indirect
github.com/fatih/color v1.19.0 // indirect
github.com/fsnotify/fsnotify v1.9.0 // indirect
github.com/fxamacker/cbor/v2 v2.9.0 // indirect
github.com/go-jose/go-jose/v4 v4.1.3 // indirect
github.com/go-logr/logr v1.4.3 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/go-pdf/fpdf v0.9.0 // indirect
github.com/go-viper/mapstructure/v2 v2.5.0 // indirect
github.com/go-webauthn/webauthn v0.15.0 // indirect
github.com/go-webauthn/x v0.2.1 // indirect
github.com/goccy/go-json v0.10.5 // indirect
github.com/go-webauthn/webauthn v0.16.1 // indirect
github.com/go-webauthn/x v0.2.2 // indirect
github.com/golang-jwt/jwt/v5 v5.3.1 // indirect
github.com/google/go-querystring v1.2.0 // indirect
github.com/google/go-tpm v0.9.8 // indirect
Expand All @@ -102,15 +100,10 @@ require (
github.com/jackc/puddle/v2 v2.2.2 // indirect
github.com/knadh/koanf/maps v0.1.2 // indirect
github.com/labstack/gommon v0.4.2 // indirect
github.com/lestrrat-go/blackmagic v1.0.4 // indirect
github.com/lestrrat-go/httpcc v1.0.1 // indirect
github.com/lestrrat-go/httprc/v3 v3.0.4 // indirect
github.com/lestrrat-go/jwx/v3 v3.0.13 // indirect
github.com/lestrrat-go/option/v2 v2.0.0 // indirect
github.com/mailru/easyjson v0.9.1 // indirect
github.com/mailru/easyjson v0.9.2 // indirect
github.com/mattn/go-colorable v0.1.14 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/mattn/go-runewidth v0.0.19 // indirect
github.com/mattn/go-runewidth v0.0.21 // indirect
github.com/mitchellh/copystructure v1.2.0 // indirect
github.com/mitchellh/reflectwalk v1.0.2 // indirect
github.com/muhlemmer/gu v0.3.1 // indirect
Expand All @@ -124,17 +117,16 @@ require (
github.com/prometheus/otlptranslator v1.0.0 // indirect
github.com/prometheus/procfs v0.20.0 // indirect
github.com/redis/go-redis/v9 v9.18.0 // indirect
github.com/resend/resend-go/v3 v3.1.1 // indirect
github.com/riverqueue/river/riverdriver v0.31.0 // indirect
github.com/riverqueue/river/rivershared v0.31.0 // indirect
github.com/resend/resend-go/v3 v3.2.0 // indirect
github.com/riverqueue/river/riverdriver v0.32.0 // indirect
github.com/riverqueue/river/rivershared v0.32.0 // indirect
github.com/robfig/cron/v3 v3.0.1 // indirect
github.com/samber/mo v1.16.0 // indirect
github.com/segmentio/asm v1.2.1 // indirect
github.com/sosodev/duration v1.4.0 // indirect
github.com/spf13/pflag v1.0.10 // indirect
github.com/stretchr/objx v0.5.3 // indirect
github.com/theopenlane/core v1.11.5 // indirect
github.com/theopenlane/corejobs v0.1.17 // indirect
github.com/theopenlane/core v1.13.5 // indirect
github.com/theopenlane/corejobs v0.1.19 // indirect
github.com/theopenlane/echox v0.3.0 // indirect
github.com/theopenlane/emailtemplates v0.3.6 // indirect
github.com/tidwall/gjson v1.18.0 // indirect
Expand All @@ -144,28 +136,26 @@ require (
github.com/valyala/bytebufferpool v1.0.0 // indirect
github.com/valyala/fasttemplate v1.2.2 // indirect
github.com/vektah/gqlparser/v2 v2.5.32 // indirect
github.com/vmihailenco/msgpack/v5 v5.4.1 // indirect
github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect
github.com/wk8/go-ordered-map/v2 v2.1.8 // indirect
github.com/x448/float16 v0.8.4 // indirect
github.com/zitadel/oidc/v3 v3.45.4 // indirect
github.com/zitadel/oidc/v3 v3.45.5 // indirect
github.com/zitadel/schema v1.3.2 // indirect
go.opentelemetry.io/auto/sdk v1.2.1 // indirect
go.opentelemetry.io/otel/metric v1.40.0 // indirect
go.opentelemetry.io/otel/sdk v1.40.0 // indirect
go.opentelemetry.io/otel/trace v1.40.0 // indirect
go.opentelemetry.io/otel/metric v1.42.0 // indirect
go.opentelemetry.io/otel/sdk v1.41.0 // indirect
go.opentelemetry.io/otel/trace v1.42.0 // indirect
go.uber.org/atomic v1.11.0 // indirect
go.uber.org/goleak v1.3.0 // indirect
go.yaml.in/yaml/v2 v2.4.3 // indirect
go.yaml.in/yaml/v3 v3.0.4 // indirect
golang.org/x/crypto v0.48.0 // indirect
golang.org/x/image v0.36.0 // indirect
golang.org/x/net v0.51.0 // indirect
golang.org/x/oauth2 v0.35.0 // indirect
golang.org/x/sync v0.19.0 // indirect
golang.org/x/sys v0.41.0 // indirect
golang.org/x/text v0.34.0 // indirect
golang.org/x/time v0.14.0 // indirect
golang.org/x/crypto v0.49.0 // indirect
golang.org/x/image v0.38.0 // indirect
golang.org/x/net v0.52.0 // indirect
golang.org/x/oauth2 v0.36.0 // indirect
golang.org/x/sync v0.20.0 // indirect
golang.org/x/sys v0.42.0 // indirect
golang.org/x/text v0.35.0 // indirect
golang.org/x/time v0.15.0 // indirect
google.golang.org/protobuf v1.36.11 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
Expand Down
Loading
Loading