Fix step-ca root CA access on Linux CI

Host chmod cannot open 0700 dirs owned by UID 1000, so
`-f` never sees root_ca.crt. Chmod from inside the
container as root while waiting for the cert.

Signed-off-by: Bryan Frimin <bryan@probo.com>
This commit is contained in:
Bryan Frimin
2026-07-19 16:43:44 +02:00
parent cb1d7c274b
commit b03acbd029
17 changed files with 28 additions and 9 deletions

View File

@@ -104,6 +104,7 @@ func loadDomains(
}
var certificateIDs []gid.GID
domainByCertificate := make(map[gid.GID]gid.GID)
for _, d := range domains {

View File

@@ -37,6 +37,7 @@ func (s *Service) AddCustomDomain(
v := validator.New()
v.Check(compliancePageID, "compliance_page_id", validator.Required(), validator.GID(coredata.TrustCenterEntityType))
v.Check(domain, "domain", validator.Required(), validator.NotEmpty(), validator.Domain())
if err := v.Error(); err != nil {
return nil, fmt.Errorf("invalid request: %w", err)
}
@@ -107,6 +108,7 @@ func (s *Service) RemoveCustomDomain(
}
compliancePage := &coredata.TrustCenter{}
err := compliancePage.LoadByDomainID(ctx, tx, customDomainID)
switch {
case err == nil:
@@ -181,6 +183,7 @@ func (s *Service) PublicURL(
}
var err error
publicURL, err = s.PublicURLForCompliancePage(ctx, conn, scope, compliancePage)
if err != nil {
return fmt.Errorf("cannot resolve public url: %w", err)

View File

@@ -97,7 +97,6 @@ func (s *Service) ListFilesForOrganizationID(
return nil
})
if err != nil {
return nil, err
}
@@ -124,7 +123,6 @@ func (s *Service) CountFilesForOrganizationID(
return nil
})
if err != nil {
return 0, err
}