Rewire IAM, mailman, and probod for the portal

Wire the certificate manager and trust center base domain into IAM so
organization creation provisions a managed default domain and certificate
atomically. Email presenters in IAM and mailman resolve public URLs
through the compliance portal resolver and read profile fields from the
trust center. probod initializes the certmanager service and injects the
new management and visitor services.

Signed-off-by: Bryan Frimin <bryan@probo.com>
This commit is contained in:
Bryan Frimin
2026-07-10 15:13:46 +02:00
parent 44ad34561e
commit a9a126899e
7 changed files with 234 additions and 208 deletions

View File

@@ -51,17 +51,36 @@ const (
)
type Service struct {
pg *pg.Client
fm *filemanager.Service
tokenSecret string
apiBaseURL *baseurl.BaseURL
bucket string
encryptionKey cipher.EncryptionKey
logger *log.Logger
pg *pg.Client
fm *filemanager.Service
tokenSecret string
apiBaseURL *baseurl.BaseURL
trustCenterBaseDomain string
bucket string
encryptionKey cipher.EncryptionKey
logger *log.Logger
}
func NewService(pgClient *pg.Client, fm *filemanager.Service, tokenSecret string, apiBaseURL *baseurl.BaseURL, bucket string, encryptionKey cipher.EncryptionKey, logger *log.Logger) *Service {
return &Service{pg: pgClient, fm: fm, tokenSecret: tokenSecret, apiBaseURL: apiBaseURL, bucket: bucket, encryptionKey: encryptionKey, logger: logger}
func NewService(
pgClient *pg.Client,
fm *filemanager.Service,
tokenSecret string,
apiBaseURL *baseurl.BaseURL,
trustCenterBaseDomain string,
bucket string,
encryptionKey cipher.EncryptionKey,
logger *log.Logger,
) *Service {
return &Service{
pg: pgClient,
fm: fm,
tokenSecret: tokenSecret,
apiBaseURL: apiBaseURL,
trustCenterBaseDomain: trustCenterBaseDomain,
bucket: bucket,
encryptionKey: encryptionKey,
logger: logger,
}
}
type (