Skip to content

Add ability to upload custom org logos - #44390

Merged
nulmete merged 21 commits into
mainfrom
39016-ability-to-upload-a-custom
May 5, 2026
Merged

Add ability to upload custom org logos#44390
nulmete merged 21 commits into
mainfrom
39016-ability-to-upload-a-custom

Conversation

@nulmete

@nulmete nulmete commented Apr 29, 2026

Copy link
Copy Markdown
Member

Related issue: Resolves #44330, Resolves #44331

Checklist for submitter

  • Changes file added for user-visible changes in changes/, orbit/changes/ or ee/fleetd-chrome/changes.
    See Changes files for more information.

Testing

  • Added/updated automated tests. (I'd defer integration tests to a separate PR since this one is pretty large already.)

  • QA'd all new/changed functionality manually. I've tested this on both the setup flow and the organization settings page. I haven't had the time to test this on other places where we render the logo (macOS setup experience / MDM migration dialog).

Screen.Recording.2026-05-01.at.10.04.21.AM.mov

New Fleet configuration settings

  • Setting(s) is/are explicitly excluded from GitOps.

Will handle GitOps in a separate PR.

Summary by CodeRabbit

  • New Features
    • Organizations can upload custom logos for light and dark modes.
    • Registration and Org Settings support logo file upload, preview, per-mode replace/delete, and validation (size & image formats).
    • Activity feed records logo changes/deletions; site nav displays uploaded logos per theme.
    • File uploader/preview adds a Fleet logo graphic option and improved logo validation.
    • Config/GitOps outputs now include separate dark/light logo fields.

@codecov

codecov Bot commented Apr 29, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 24.08602% with 353 lines in your changes missing coverage. Please review.
✅ Project coverage is 66.56%. Comparing base (616084a) to head (7191d09).
⚠️ Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
server/service/org_logo.go 11.27% 179 Missing and 2 partials ⚠️
server/datastore/filesystem/org_logo.go 0.00% 44 Missing ⚠️
server/datastore/s3/org_logo.go 0.00% 31 Missing ⚠️
frontend/utilities/file/orgLogoFile.ts 24.32% 28 Missing ⚠️
cmd/fleet/serve.go 0.00% 19 Missing ⚠️
...s/forms/RegistrationForm/OrgDetails/OrgDetails.tsx 58.69% 18 Missing and 1 partial ⚠️
...vityFeed/GlobalActivityItem/GlobalActivityItem.tsx 0.00% 12 Missing ⚠️
server/service/appconfig.go 9.09% 7 Missing and 3 partials ⚠️
server/fleet/org_logo.go 18.18% 9 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #44390      +/-   ##
==========================================
- Coverage   66.67%   66.56%   -0.12%     
==========================================
  Files        2647     2656       +9     
  Lines      212852   213790     +938     
  Branches     9639     9673      +34     
==========================================
+ Hits       141928   142317     +389     
- Misses      58025    58539     +514     
- Partials    12899    12934      +35     
Flag Coverage Δ
backend 68.43% <18.55%> (-0.13%) ⬇️
frontend 54.11% <43.26%> (-0.08%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment on lines +25 to +27
/** If present, replaces the default Graphic on the left of the file
* details (e.g. to render a preview thumbnail of an uploaded image). */
customPreview?: React.ReactNode;

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

used to display the preview of the uploaded logo during setup

Comment thread server/service/handler.go Outdated
ue.GET("/api/_version_/fleet/config/certificate", getCertificateEndpoint, nil)
ue.GET("/api/_version_/fleet/config", getAppConfigEndpoint, nil)
ue.PATCH("/api/_version_/fleet/config", modifyAppConfigEndpoint, modifyAppConfigRequest{})
ue.WithRequestBodySizeLimit(100*units.KiB).PUT("/api/_version_/fleet/logo", putOrgLogoEndpoint, putOrgLogoRequest{})

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think 100KB sounds like a reasonable limit for a logo. All ears here.

cc @rachaelshaw

Comment on lines +261 to +265
// eslint-disable-next-line no-restricted-syntax, no-await-in-loop
for (const op of logoOps) {
// eslint-disable-next-line no-await-in-loop
await op();
}

@nulmete nulmete Apr 29, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMHO, this is fine. (We need these updates to be sequential and not in parallel since we're writing to AppConfig in both calls, so we need to avoid race conditions such as saving only one logo when we want to save both.)

@nulmete
nulmete requested review from juan-fdz-hawa and removed request for juan-fdz-hawa April 30, 2026 14:41
@nulmete
nulmete marked this pull request as ready for review April 30, 2026 14:42
@nulmete
nulmete requested a review from a team as a code owner April 30, 2026 14:42
return f, st.Size(), nil
}

func (s *OrgLogoStore) Put(ctx context.Context, mode fleet.OrgLogoMode, content io.ReadSeeker) error {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: This is not atomic, but I'm guessing that's fine

Comment thread server/fleet/app_test.go
},
},
{
name: "matching dark old + new -> kept",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might want to add a "matching light old + new" here to cover that case

Comment thread server/service/handler.go Outdated
ue.GET("/api/_version_/fleet/config/certificate", getCertificateEndpoint, nil)
ue.GET("/api/_version_/fleet/config", getAppConfigEndpoint, nil)
ue.PATCH("/api/_version_/fleet/config", modifyAppConfigEndpoint, modifyAppConfigRequest{})
ue.WithRequestBodySizeLimit(100*units.KiB).PUT("/api/_version_/fleet/logo", putOrgLogoEndpoint, putOrgLogoRequest{})

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we define the file size limit in a single place? Right now this limit is duplicated both there and in the service layer

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, thanks for pointing out, I had a note to do this but totally forgot

// Magic-byte signatures used to identify accepted image formats. We compare
// against raw upload bytes rather than trusting the multipart Content-Type
// header.
var (

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think you need to manually validate the payload like this, the image.DecodeConfig can be used for doing this kind of payload validation (take a look at server/service/software_title_icons.go for inspiration)


func getOrgLogoEndpoint(ctx context.Context, request any, svc fleet.Service) (fleet.Errorer, error) {
req := request.(getOrgLogoRequest)
body, _, err := svc.GetOrgLogo(ctx, req.Mode)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will load the image into memory, and since this is a public end-point, we need to rate limit this (otherwise this end-point is susceptible to DDoS). We might also want to add some cache headers for this.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At first I had a cache of 300s but got an AI-generated comment saying that if we updated a logo then we'd serve a stale logo in some cases. Anyways I'll revisit this.

if err := svc.authz.Authorize(ctx, &fleet.AppConfig{}, fleet.ActionWrite); err != nil {
return err
}
if err := requireGlobalAdmin(ctx); err != nil {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AFAIK, gitops users can also update the app-config so this check might be wrong?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I'm removing this check in the follow-up gitops PR 👍

return false;
};

export const validateOrgLogoFile = async (

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this could be useful as a generic validator like validateImageFile(payload, {maxSize, allowedTypes})

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I followed this initially, but then kept only the payload(file) as the argument, as the maxSize (ORG_LOGO_MAX_SIZE_BYTES) and allowedTypes (ORG_LOGO_ALLOWED_TYPES) are declared in this file already.
Lmk if this is OK.

// eslint-disable-next-line no-restricted-syntax, no-await-in-loop
for (const op of logoOps) {
// eslint-disable-next-line no-await-in-loop
await op();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There might be a subtle bug here when doing multiple ops. If one of the ops success but the other fails, the whole operation is marked as a failure the whole operation will be marked as failure so when the user tries again all ops will be retried again (even the ones that succeeded) - might be easier to fix on the server side if we make the end-points completely inmutable.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed this so that each upload/delete is tracked individually: we report which mode(s) failed in the flash, and pending state is only cleared for the modes that actually succeeded. So, a retry only re-issues the failed calls.

The only "trade-off" is that we're not using the DELETE endpoint with mode=all, which lets us delete both logos with a single API call -- though that's still supported by the BE if someone wants to use that endpoint directly.

@juan-fdz-hawa

Copy link
Copy Markdown
Contributor

Done with the first pass! - left some comments to tackle.

@qodo-free-for-open-source-projects

Copy link
Copy Markdown

CI Feedback 🧐

A test triggered by this PR failed. Here is an AI-generated analysis of the failure:

Action: test-go (fleetctl, mysql:9.5.0) / test

Failed stage: Run Go Tests [❌]

Failed test name: TestIntegrationsVulnerabilityDataStream

Failure summary:

The action failed because the Go integration test TestIntegrationsVulnerabilityDataStream in
cmd/fleetctl/integrationtest/vuln failed (cmd/fleetctl/integrationtest/vuln
TestIntegrationsVulnerabilityDataStream, vulnerability_data_stream_test.go:44).
The test repeatedly
failed to download Ubuntu OVAL definitions from
https://security-metadata.canonical.com/oval/com.ubuntu.xenial.usn.oval.xml.bz2 due to a
network/proxy misconfiguration: the HTTP client attempted to connect to 127.0.0.1:443 and got
connect: connection refused.
This caused make test-go to exit non-zero (make[1]: *** [Makefile:278:
.run-go-tests] Error 1, make: *** [Makefile:393: test-go] Error 2, exit code 2).

Relevant error logs:
1:  ##[group]Runner Image Provisioner
2:  Hosted Compute Agent
...

1727:  �[36;1mattempt=1�[0m
1728:  �[36;1m�[0m
1729:  �[36;1mwhile [ $attempt -le $max_attempts ]; do�[0m
1730:  �[36;1m  echo "Attempt $attempt of $max_attempts"�[0m
1731:  �[36;1m�[0m
1732:  �[36;1m  # Try to connect to MySQL�[0m
1733:  �[36;1m  if wait_for_mysql "mysql_test"; then�[0m
1734:  �[36;1m    # If MySQL is ready, try to connect to MySQL replica�[0m
1735:  �[36;1m    if wait_for_mysql "mysql_replica_test"; then�[0m
1736:  �[36;1m      # Both are ready, we're done�[0m
1737:  �[36;1m      echo "All MySQL connections successful"�[0m
1738:  �[36;1m      exit 0�[0m
1739:  �[36;1m    fi�[0m
1740:  �[36;1m  fi�[0m
1741:  �[36;1m�[0m
1742:  �[36;1m  # If we get here, at least one connection failed�[0m
1743:  �[36;1m  echo "Failed to connect to MySQL on attempt $attempt"�[0m
1744:  �[36;1m�[0m
1745:  �[36;1m  if [ $attempt -lt $max_attempts ]; then�[0m
1746:  �[36;1m    echo "Restarting containers and trying again..."�[0m
1747:  �[36;1m    restart_containers�[0m
1748:  �[36;1m  else�[0m
1749:  �[36;1m    echo "Maximum attempts reached. Failing the job."�[0m
1750:  �[36;1m    exit 1�[0m
...

1830:  go: downloading github.com/briandowns/spinner v1.23.1
1831:  go: downloading github.com/google/go-github/v37 v37.0.0
1832:  go: downloading github.com/gosuri/uilive v0.0.4
1833:  go: downloading github.com/manifoldco/promptui v0.9.0
1834:  go: downloading github.com/mitchellh/go-ps v1.0.0
1835:  go: downloading github.com/olekukonko/tablewriter v0.0.5
1836:  go: downloading github.com/sethvargo/go-password v0.3.0
1837:  go: downloading github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
1838:  go: downloading github.com/patrickmn/go-cache v2.1.0+incompatible
1839:  go: downloading github.com/VividCortex/mysqlerr v0.0.0-20170204212430-6c6b55f8796f
1840:  go: downloading github.com/WatchBeam/clock v0.0.0-20170901150240-b08e6b4da7ea
1841:  go: downloading github.com/XSAM/otelsql v0.39.0
1842:  go: downloading github.com/doug-martin/goqu/v9 v9.18.0
1843:  go: downloading github.com/go-sql-driver/mysql v1.9.3
1844:  go: downloading github.com/google/go-cmp v0.7.0
1845:  go: downloading github.com/hashicorp/go-multierror v1.1.1
1846:  go: downloading github.com/ngrok/sqlmw v0.0.0-20211220175533-9d16fdc47b31
...

2090:  �[32m✓�[0m Apply specs deprecated keys app config windows updates.grace period days not a number (0.40s)
2091:  �[32m✓�[0m Apply specs deprecated keys app config windows updates.grace period days out of range (0.33s)
2092:  �[32m✓�[0m Apply specs deprecated keys config with FIM values for agent options (#869 9) (0.38s)
2093:  �[32m✓�[0m Apply specs deprecated keys config with blank required org name (0.57s)
2094:  �[32m✓�[0m Apply specs deprecated keys config with blank required server url (0.43s)
2095:  �[32m✓�[0m Apply specs deprecated keys config with invalid agent options command-line flags (0.58s)
2096:  �[32m✓�[0m Apply specs deprecated keys config with invalid agent options data type in dry-run (0.40s)
2097:  �[32m✓�[0m Apply specs deprecated keys config with invalid agent options data type with force (0.40s)
2098:  �[32m✓�[0m Apply specs deprecated keys config with invalid agent options in dry-run (0.46s)
2099:  �[32m✓�[0m Apply specs deprecated keys config with invalid key type (0.50s)
2100:  �[32m✓�[0m Apply specs deprecated keys config with invalid value for agent options command-line flags (0.41s)
2101:  �[32m✓�[0m Apply specs deprecated keys config with unknown key (0.43s)
2102:  �[32m✓�[0m Apply specs deprecated keys config with valid agent options command-line flags (0.41s)
2103:  �[32m✓�[0m Apply specs deprecated keys dry-run set with unsupported spec (0.41s)
2104:  �[32m✓�[0m Apply specs deprecated keys dry-run set with various specs, appconfig warning for legacy (0.45s)
2105:  �[32m✓�[0m Apply specs deprecated keys dry-run set with various specs, no errors (0.48s)
2106:  �[32m✓�[0m Apply specs deprecated keys empty config (0.50s)
...

2109:  �[32m✓�[0m Apply specs deprecated keys invalid agent options dry-run (0.45s)
2110:  �[32m✓�[0m Apply specs deprecated keys invalid agent options field type (0.64s)
2111:  �[32m✓�[0m Apply specs deprecated keys invalid agent options field type in overrides (0.62s)
2112:  �[32m✓�[0m Apply specs deprecated keys invalid agent options for existing team (0.63s)
2113:  �[32m✓�[0m Apply specs deprecated keys invalid agent options for new team (0.69s)
2114:  �[32m✓�[0m Apply specs deprecated keys invalid agent options force (0.48s)
2115:  �[32m✓�[0m Apply specs deprecated keys invalid known key's value type for team cannot be forced (0.58s)
2116:  �[32m✓�[0m Apply specs deprecated keys invalid team agent options command-line flag (0.49s)
2117:  �[32m✓�[0m Apply specs deprecated keys invalid top-level key for team (0.85s)
2118:  �[32m✓�[0m Apply specs deprecated keys macos updates deadline set but minimum version empty (0.53s)
2119:  �[32m✓�[0m Apply specs deprecated keys macos updates minimum version set but deadline empty (0.67s)
2120:  �[32m✓�[0m Apply specs deprecated keys macos updates.deadline with incomplete date (0.37s)
2121:  �[32m✓�[0m Apply specs deprecated keys macos updates.deadline with invalid date (0.58s)
2122:  �[32m✓�[0m Apply specs deprecated keys macos updates.deadline with timestamp (0.53s)
2123:  �[32m✓�[0m Apply specs deprecated keys macos updates.minimum version with build version (0.41s)
2124:  �[32m✓�[0m Apply specs deprecated keys missing required failing policies destination url (0.48s)
2125:  �[32m✓�[0m Apply specs deprecated keys missing required host status days count (0.47s)
...

2133:  �[32m✓�[0m Apply specs deprecated keys team config macos settings.enable disk encryption true (0.42s)
2134:  �[32m✓�[0m Apply specs deprecated keys team config macos settings.enable disk encryption with invalid value type (0.43s)
2135:  �[32m✓�[0m Apply specs deprecated keys team config macos settings.enable disk encryption without a value (0.58s)
2136:  �[32m✓�[0m Apply specs deprecated keys unknown key for team can be forced (0.50s)
2137:  �[32m✓�[0m Apply specs deprecated keys valid team agent options command-line flag (0.51s)
2138:  �[32m✓�[0m Apply specs deprecated keys windows updates unset valid (0.44s)
2139:  �[32m✓�[0m Apply specs deprecated keys windows updates valid (0.39s)
2140:  �[32m✓�[0m Apply specs deprecated keys windows updates.deadline days but grace period empty (0.37s)
2141:  �[32m✓�[0m Apply specs deprecated keys windows updates.deadline days not a number (0.52s)
2142:  �[32m✓�[0m Apply specs deprecated keys windows updates.deadline days out of range (0.44s)
2143:  �[32m✓�[0m Apply specs deprecated keys windows updates.grace period days but deadline empty (0.50s)
2144:  �[32m✓�[0m Apply specs deprecated keys windows updates.grace period days not a number (0.51s)
2145:  �[32m✓�[0m Apply specs deprecated keys windows updates.grace period days out of range (0.44s)
2146:  �[32m✓�[0m Apply specs dry-run set with unsupported spec (0.33s)
2147:  �[32m✓�[0m Apply specs dry-run set with various specs, appconfig warning for legacy (0.44s)
2148:  �[32m✓�[0m Apply specs dry-run set with various specs, no errors (0.61s)
2149:  �[32m✓�[0m Apply specs empty config (0.44s)
...

2152:  �[32m✓�[0m Apply specs invalid agent options dry-run (0.40s)
2153:  �[32m✓�[0m Apply specs invalid agent options field type (0.41s)
2154:  �[32m✓�[0m Apply specs invalid agent options field type in overrides (0.38s)
2155:  �[32m✓�[0m Apply specs invalid agent options for existing team (0.41s)
2156:  �[32m✓�[0m Apply specs invalid agent options for new team (0.36s)
2157:  �[32m✓�[0m Apply specs invalid agent options force (0.36s)
2158:  �[32m✓�[0m Apply specs invalid known key's value type for team cannot be forced (0.37s)
2159:  �[32m✓�[0m Apply specs invalid team agent options command-line flag (0.41s)
2160:  �[32m✓�[0m Apply specs invalid top-level key for team (0.38s)
2161:  �[32m✓�[0m Apply specs macos updates deadline set but minimum version empty (0.47s)
2162:  �[32m✓�[0m Apply specs macos updates minimum version set but deadline empty (0.44s)
2163:  �[32m✓�[0m Apply specs macos updates.deadline with incomplete date (0.38s)
2164:  �[32m✓�[0m Apply specs macos updates.deadline with invalid date (0.44s)
2165:  �[32m✓�[0m Apply specs macos updates.deadline with timestamp (0.46s)
2166:  �[32m✓�[0m Apply specs macos updates.minimum version with build version (0.55s)
2167:  �[32m✓�[0m Apply specs missing required failing policies destination url (0.51s)
2168:  �[32m✓�[0m Apply specs missing required host status days count (0.36s)
...

2254:  �[32m✓�[0m Filename functions (0.00s)
2255:  �[32m✓�[0m Filename functions outfile name builds a file name using the name provided + current time (0.00s)
2256:  �[32m✓�[0m Filename functions outfile name with ext builds a file name using the name and extension provided + current time (0.00s)
2257:  �[32m✓�[0m FleetctlUpgradePacks empty packs (0.40s)
2258:  �[32m✓�[0m FleetctlUpgradePacks no pack (0.45s)
2259:  �[32m✓�[0m FleetctlUpgradePacks non empty (0.34s)
2260:  �[32m✓�[0m FleetctlUpgradePacks not admin (0.44s)
2261:  �[32m✓�[0m Format XML (0.00s)
2262:  �[32m✓�[0m Format XML XML with attributes (0.00s)
2263:  �[32m✓�[0m Format XML basic XML (0.00s)
2264:  �[32m✓�[0m Format XML empty XML (0.00s)
2265:  �[32m✓�[0m Format XML invalid XML (0.00s)
2266:  �[32m✓�[0m Format XML nested XML (0.00s)
2267:  �[32m✓�[0m Generate MDM apple (1.00s)
2268:  �[32m✓�[0m Generate MDM apple BM (0.45s)
2269:  �[32m✓�[0m Generate MDM apple CSR API call fails (0.40s)
2270:  �[32m✓�[0m Generate MDM apple successful run (0.60s)
2271:  �[32m✓�[0m Generate MDMVPP tokens (0.00s)
2272:  �[32m✓�[0m Generate MDMVPP tokens get VPP tokens error (0.00s)
2273:  �[32m✓�[0m Generate MDMVPP tokens multiple tokens with different teams (0.00s)
...

2285:  �[32m✓�[0m Generate org settings insecure (0.00s)
2286:  �[32m✓�[0m Generate org settings masked google calendar api key (0.00s)
2287:  �[32m✓�[0m Generate policies (0.00s)
2288:  �[32m✓�[0m Generate queries (0.00s)
2289:  �[32m✓�[0m Generate software (0.00s)
2290:  �[32m✓�[0m Generate software auto update schedule (0.00s)
2291:  �[32m✓�[0m Generate software script packages (0.00s)
2292:  �[32m✓�[0m Generate team settings (0.00s)
2293:  �[32m✓�[0m Generate team settings insecure (0.00s)
2294:  �[32m✓�[0m Generated org settings no SSO (0.00s)
2295:  �[32m✓�[0m Generated org settings okta conditional access not included (0.00s)
2296:  �[32m✓�[0m Get MDM command results (0.65s)
2297:  �[32m✓�[0m Get MDM command results command flag required (0.00s)
2298:  �[32m✓�[0m Get MDM command results command not found (0.01s)
2299:  �[32m✓�[0m Get MDM command results command results empty (0.01s)
2300:  �[32m✓�[0m Get MDM command results command results error (0.01s)
2301:  �[32m✓�[0m Get MDM command results darwin command results (0.00s)
2302:  �[32m✓�[0m Get MDM command results host specific results (0.00s)
2303:  �[32m✓�[0m Get MDM command results windows command results (0.00s)
2304:  �[32m✓�[0m Get MDM commands (0.42s)
2305:  �[32m✓�[0m Get apple BM (1.64s)
2306:  �[32m✓�[0m Get apple BM free license (0.33s)
2307:  �[32m✓�[0m Get apple BM premium license, multiple tokens (0.42s)
2308:  �[32m✓�[0m Get apple BM premium license, no token (0.42s)
2309:  �[32m✓�[0m Get apple BM premium license, single token (0.46s)
2310:  �[32m✓�[0m Get apple MDM (0.41s)
2311:  �[32m✓�[0m Get carve (0.42s)
2312:  �[32m✓�[0m Get carve with error (0.38s)
2313:  �[32m✓�[0m Get carves (0.41s)
...

2339:  �[32m✓�[0m Get queries as observer (0.57s)
2340:  �[32m✓�[0m Get queries as observer global observer (0.01s)
2341:  �[32m✓�[0m Get queries as observer observer of multiple teams (0.01s)
2342:  �[32m✓�[0m Get queries as observer team observer (0.01s)
2343:  �[32m✓�[0m Get query (0.44s)
2344:  �[32m✓�[0m Get software titles (0.44s)
2345:  �[32m✓�[0m Get software versions (0.38s)
2346:  �[32m✓�[0m Get teams (1.07s)
2347:  �[32m✓�[0m Get teams YAML and apply (0.47s)
2348:  �[32m✓�[0m Get teams by name (0.44s)
2349:  �[32m✓�[0m Get teams expired license (0.45s)
2350:  �[32m✓�[0m Get teams not expired license (0.62s)
2351:  �[32m✓�[0m Get user roles (0.52s)
2352:  �[32m✓�[0m Git ops ABM (5.94s)
2353:  �[32m✓�[0m Git ops ABM backwards compat (0.55s)
2354:  �[32m✓�[0m Git ops ABM both keys errors (0.61s)
2355:  �[32m✓�[0m Git ops ABM deprecated config with two tokens in the db fails (0.43s)
2356:  �[32m✓�[0m Git ops ABM new key all valid (0.74s)
2357:  �[32m✓�[0m Git ops ABM new key multiple elements (0.62s)
2358:  �[32m✓�[0m Git ops ABM no team is supported (0.74s)
2359:  �[32m✓�[0m Git ops ABM non existent org name fails (0.44s)
2360:  �[32m✓�[0m Git ops ABM not provided teams defaults to no team (0.65s)
2361:  �[32m✓�[0m Git ops ABM renamed new key all valid (0.61s)
2362:  �[32m✓�[0m Git ops ABM using an undefined team errors (0.55s)
2363:  �[32m✓�[0m Git ops EULA setting (4.11s)
...

2366:  �[32m✓�[0m Git ops EULA setting not a PDF file (0.45s)
2367:  �[32m✓�[0m Git ops EULA setting relative path to working dir to pdf file (no existing EULA uploaded) (0.54s)
2368:  �[32m✓�[0m Git ops EULA setting relative path to yaml file to pdf file (no existing EULA uploaded) (0.52s)
2369:  �[32m✓�[0m Git ops EULA setting uploading the same EULA again (0.50s)
2370:  �[32m✓�[0m Git ops EULA setting valid new pdf file (different EULA already uploaded) (0.50s)
2371:  �[32m✓�[0m Git ops EULA setting valid pdf file (no existing EULA uploaded) (0.43s)
2372:  �[32m✓�[0m Git ops MDM auth settings (0.54s)
2373:  �[32m✓�[0m Git ops SMTP settings (0.53s)
2374:  �[32m✓�[0m Git ops SSO server URL (0.47s)
2375:  �[32m✓�[0m Git ops SSO settings (0.49s)
2376:  �[32m✓�[0m Git ops android certificates add (0.51s)
2377:  �[32m✓�[0m Git ops android certificates change (0.55s)
2378:  �[32m✓�[0m Git ops android certificates delete all (0.52s)
2379:  �[32m✓�[0m Git ops android certificates delete one (0.41s)
2380:  �[32m✓�[0m Git ops app store app auto update (0.61s)
2381:  �[32m✓�[0m Git ops app store app auto update invalid auto-update window triggers error and does not call update software title auto update config (0.01s)
2382:  �[32m✓�[0m Git ops app store app auto update no auto update settings and no existing schedule does not call update software title auto update config (0.02s)
...

2385:  �[32m✓�[0m Git ops apple OS updates (0.66s)
2386:  �[32m✓�[0m Git ops apple OS updates ios updates (0.09s)
2387:  �[32m✓�[0m Git ops apple OS updates ios updates changed deadline triggers bulk set pending MDM host profiles (0.02s)
2388:  �[32m✓�[0m Git ops apple OS updates ios updates changed minimum version triggers bulk set pending MDM host profiles (0.02s)
2389:  �[32m✓�[0m Git ops apple OS updates ios updates same values do not trigger bulk set pending MDM host profiles (0.04s)
2390:  �[32m✓�[0m Git ops apple OS updates ipados updates (0.07s)
2391:  �[32m✓�[0m Git ops apple OS updates ipados updates changed deadline triggers bulk set pending MDM host profiles (0.03s)
2392:  �[32m✓�[0m Git ops apple OS updates ipados updates changed minimum version triggers bulk set pending MDM host profiles (0.02s)
2393:  �[32m✓�[0m Git ops apple OS updates ipados updates same values do not trigger bulk set pending MDM host profiles (0.03s)
2394:  �[32m✓�[0m Git ops apple OS updates macos updates (0.08s)
2395:  �[32m✓�[0m Git ops apple OS updates macos updates changed deadline triggers bulk set pending MDM host profiles (0.02s)
2396:  �[32m✓�[0m Git ops apple OS updates macos updates changed minimum version triggers bulk set pending MDM host profiles (0.02s)
2397:  �[32m✓�[0m Git ops apple OS updates macos updates same values do not trigger bulk set pending MDM host profiles (0.03s)
2398:  �[32m✓�[0m Git ops basic global and no team (0.52s)
2399:  �[32m✓�[0m Git ops basic global and no team basic global and no-team.yml (0.06s)
2400:  �[32m✓�[0m Git ops basic global and no team both global and no-team.yml define controls -- should fail (0.01s)
2401:  �[32m✓�[0m Git ops basic global and no team controls only defined in no-team.yml (0.05s)
2402:  �[32m✓�[0m Git ops basic global and no team global DOES NOT define controls -- should fail (0.01s)
2403:  �[32m✓�[0m Git ops basic global and no team global and no-team.yml DO NOT define controls -- should fail (0.01s)
2404:  �[32m✓�[0m Git ops basic global and no team global defines software -- should fail (0.01s)
2405:  �[32m✓�[0m Git ops basic global and no team no-team provided without global -- should fail (0.01s)
2406:  �[32m✓�[0m Git ops basic global and no team no-team.yml defines policy with calendar events enabled -- should fail (0.02s)
2407:  �[32m✓�[0m Git ops basic global and no team unassigned provided without global -- should fail (0.02s)
2408:  �[32m✓�[0m Git ops basic global and team (0.64s)
...

2413:  �[32m✓�[0m Git ops custom settings global macos custom settings valid deprecated.yml (0.53s)
2414:  �[32m✓�[0m Git ops custom settings global macos windows custom settings valid.yml (0.55s)
2415:  �[32m✓�[0m Git ops custom settings global windows custom settings invalid label mix 2 .yml (0.57s)
2416:  �[32m✓�[0m Git ops custom settings global windows custom settings invalid label mix.yml (0.49s)
2417:  �[32m✓�[0m Git ops custom settings global windows custom settings unknown label.yml (0.45s)
2418:  �[32m✓�[0m Git ops custom settings team macos custom settings valid deprecated.yml (0.54s)
2419:  �[32m✓�[0m Git ops custom settings team macos windows custom settings invalid labels mix 2 .yml (0.58s)
2420:  �[32m✓�[0m Git ops custom settings team macos windows custom settings invalid labels mix.yml (0.39s)
2421:  �[32m✓�[0m Git ops custom settings team macos windows custom settings unknown label.yml (0.49s)
2422:  �[32m✓�[0m Git ops custom settings team macos windows custom settings valid.yml (0.56s)
2423:  �[32m✓�[0m Git ops exception enforcement (0.43s)
2424:  �[32m✓�[0m Git ops exception enforcement free tier (0.51s)
2425:  �[32m✓�[0m Git ops exceptions preserve omitted keys (0.46s)
2426:  �[32m✓�[0m Git ops features (0.52s)
2427:  �[32m✓�[0m Git ops filename validation (0.00s)
2428:  �[32m✓�[0m Git ops fleet failing policies webhook policy IDs (0.67s)
2429:  �[32m✓�[0m Git ops fleet webhooks and tickets enabled (0.52s)
...

2584:  �[32m✓�[0m Run api command get scripts full path missing (0.00s)
2585:  �[32m✓�[0m Run api command get scripts team (0.00s)
2586:  �[32m✓�[0m Run api command get scripts team no cache (0.00s)
2587:  �[32m✓�[0m Run api command get typo (0.00s)
2588:  �[32m✓�[0m Run api command upload script (0.00s)
2589:  �[32m✓�[0m Run script command (0.55s)
2590:  �[32m✓�[0m Run script command disabled scripts globally (0.00s)
2591:  �[32m✓�[0m Run script command host not found (0.01s)
2592:  �[32m✓�[0m Run script command invalid file type (0.00s)
2593:  �[32m✓�[0m Run script command invalid hashbang (0.00s)
2594:  �[32m✓�[0m Run script command invalid utf 8 (0.01s)
2595:  �[32m✓�[0m Run script command missing one of script-path and script-nqme (0.00s)
2596:  �[32m✓�[0m Run script command output truncated (0.01s)
2597:  �[32m✓�[0m Run script command posix shell hashbang (0.01s)
2598:  �[32m✓�[0m Run script command script empty (0.00s)
2599:  �[32m✓�[0m Run script command script failed (0.01s)
2600:  �[32m✓�[0m Run script command script killed (0.01s)
...

2636:  �[32m✓�[0m User create force password reset (0.56s)
2637:  �[32m✓�[0m User delete (0.38s)
2638:  �[32m✓�[0m User is observer (0.00s)
2639:  �[32m✓�[0m User is observer global maintainer (0.00s)
2640:  �[32m✓�[0m User is observer global observer (0.00s)
2641:  �[32m✓�[0m User is observer global observer+ (0.00s)
2642:  �[32m✓�[0m User is observer team maintainer (0.00s)
2643:  �[32m✓�[0m User is observer team observer (0.00s)
2644:  �[32m✓�[0m User is observer team observer and maintainer (0.00s)
2645:  �[32m✓�[0m User is observer team observer+ (0.00s)
2646:  �[32m✓�[0m User is observer user without roles (0.00s)
2647:  github.com/fleetdm/fleet/v4/cmd/fleetctl/integrationtest/vuln:
2648:  �[31m✖�[0m Integrations vulnerability data stream (299.87s)
2649:  github.com/fleetdm/fleet/v4/cmd/fleetctl/integrationtest/preview:
2650:  �[32m✓�[0m Integrations preview (380.10s)
2651:  �[32m✓�[0m Preview fails on invalid license key (0.00s)
2652:  github.com/fleetdm/fleet/v4/cmd/fleetctl/integrationtest/gitops:
2653:  �[32m✓�[0m Git ops VPP (4.41s)
2654:  �[32m✓�[0m Git ops VPP all teams is supported (0.52s)
2655:  �[32m✓�[0m Git ops VPP new key all valid (0.65s)
2656:  �[32m✓�[0m Git ops VPP new key multiple elements (0.75s)
2657:  �[32m✓�[0m Git ops VPP no team is supported (0.58s)
2658:  �[32m✓�[0m Git ops VPP non existent location fails (0.48s)
2659:  �[32m✓�[0m Git ops VPP not provided teams defaults to no team (0.63s)
2660:  �[32m✓�[0m Git ops VPP using an undefined team errors (0.80s)
2661:  �[32m✓�[0m Git ops existing team VPP apps with missing team (0.70s)
...

2741:  �[32m✓�[0m Git ops team software installers team software installer with display name.yml (1.75s)
2742:  �[32m✓�[0m Integrations enterprise gitops (337.39s)
2743:  �[32m✓�[0m Integrations enterprise gitops test CA integrations (5.61s)
2744:  �[32m✓�[0m Integrations enterprise gitops test FMA labels include all (7.47s)
2745:  �[32m✓�[0m Integrations enterprise gitops test IPA software installers (11.64s)
2746:  �[32m✓�[0m Integrations enterprise gitops test JSON configuration profile escaping (1.51s)
2747:  �[32m✓�[0m Integrations enterprise gitops test add manual labels (2.14s)
2748:  �[32m✓�[0m Integrations enterprise gitops test configuration profile escaping (1.70s)
2749:  �[32m✓�[0m Integrations enterprise gitops test delete CA with certificate templates (7.23s)
2750:  �[32m✓�[0m Integrations enterprise gitops test delete mac OS setup (6.46s)
2751:  �[32m✓�[0m Integrations enterprise gitops test deleting no team YAML (3.38s)
2752:  �[32m✓�[0m Integrations enterprise gitops test disallow software setup experience (125.30s)
2753:  �[32m✓�[0m Integrations enterprise gitops test disallow software setup experience all VPP with setup experience (1.52s)
2754:  �[32m✓�[0m Integrations enterprise gitops test disallow software setup experience no team VPP (1.36s)
2755:  �[32m✓�[0m Integrations enterprise gitops test disallow software setup experience no team installers (61.03s)
2756:  �[32m✓�[0m Integrations enterprise gitops test disallow software setup experience packages fail (61.19s)
2757:  �[32m✓�[0m Integrations enterprise gitops test env substitution in profiles (1.69s)
...

2780:  �[32m✓�[0m Integrations enterprise gitops test omitted top level keys global (2.97s)
2781:  �[32m✓�[0m Integrations enterprise gitops test remove custom settings from default YAML (3.43s)
2782:  �[32m✓�[0m Integrations enterprise gitops test special case teams VPP apps (5.22s)
2783:  �[32m✓�[0m Integrations enterprise gitops test special case teams VPP apps all teams (3.24s)
2784:  �[32m✓�[0m Integrations enterprise gitops test special case teams VPP apps no team (1.75s)
2785:  �[32m✓�[0m Integrations enterprise gitops test unset configuration profile labels (6.79s)
2786:  �[32m✓�[0m Integrations enterprise gitops test unset software installer labels (13.25s)
2787:  �[32m✓�[0m Integrations enterprise starter library (5.23s)
2788:  �[32m✓�[0m Integrations enterprise starter library test apply starter library premium (3.93s)
2789:  �[32m✓�[0m Integrations gitops (3.46s)
2790:  �[32m✓�[0m Integrations gitops test fleet gitops (0.77s)
2791:  �[32m✓�[0m Integrations gitops test fleet gitops DDM fleet vars requires premium (0.22s)
2792:  �[32m✓�[0m Integrations gitops test fleet gitops with fleet secrets (0.68s)
2793:  �[32m✓�[0m Integrations starter library (1.62s)
2794:  �[32m✓�[0m Integrations starter library test apply starter library free (0.33s)
2795:  === �[31mFailed�[0m
2796:  === �[31mFAIL�[0m: cmd/fleetctl/integrationtest/vuln TestIntegrationsVulnerabilityDataStream (299.87s)
2797:  nettest.go:33: network test start: TestIntegrationsVulnerabilityDataStream
2798:  Download failed on https://security-metadata.canonical.com/oval/com.ubuntu.xenial.usn.oval.xml.bz2: do request: Get "https://security-metadata.canonical.com/oval/com.ubuntu.xenial.usn.oval.xml.bz2": dial tcp 127.0.0.1:443: connect: connection refused. Retrying in 624.400411ms
2799:  Download failed on https://security-metadata.canonical.com/oval/com.ubuntu.xenial.usn.oval.xml.bz2: do request: Get "https://security-metadata.canonical.com/oval/com.ubuntu.xenial.usn.oval.xml.bz2": dial tcp 127.0.0.1:443: connect: connection refused. Retrying in 428.862355ms
2800:  Download failed on https://security-metadata.canonical.com/oval/com.ubuntu.xenial.usn.oval.xml.bz2: do request: Get "https://security-metadata.canonical.com/oval/com.ubuntu.xenial.usn.oval.xml.bz2": dial tcp 127.0.0.1:443: connect: connection refused. Retrying in 1.228355841s
2801:  Download failed on https://security-metadata.canonical.com/oval/com.ubuntu.xenial.usn.oval.xml.bz2: do request: Get "https://security-metadata.canonical.com/oval/com.ubuntu.xenial.usn.oval.xml.bz2": dial tcp 127.0.0.1:443: connect: connection refused. Retrying in 2.218076166s
2802:  Download failed on https://security-metadata.canonical.com/oval/com.ubuntu.xenial.usn.oval.xml.bz2: do request: Get "https://security-metadata.canonical.com/oval/com.ubuntu.xenial.usn.oval.xml.bz2": dial tcp 127.0.0.1:443: connect: connection refused. Retrying in 3.623641823s
2803:  Download failed on https://security-metadata.canonical.com/oval/com.ubuntu.xenial.usn.oval.xml.bz2: do request: Get "https://security-metadata.canonical.com/oval/com.ubuntu.xenial.usn.oval.xml.bz2": dial tcp 127.0.0.1:443: connect: connection refused. Retrying in 1.982004098s
2804:  Download failed on https://security-metadata.canonical.com/oval/com.ubuntu.xenial.usn.oval.xml.bz2: do request: Get "https://security-metadata.canonical.com/oval/com.ubuntu.xenial.usn.oval.xml.bz2": dial tcp 127.0.0.1:443: connect: connection refused. Retrying in 4.49861996s
2805:  Download failed on https://security-metadata.canonical.com/oval/com.ubuntu.xenial.usn.oval.xml.bz2: do request: Get "https://security-metadata.canonical.com/oval/com.ubuntu.xenial.usn.oval.xml.bz2": dial tcp 127.0.0.1:443: connect: connection refused. Retrying in 9.443736583s
2806:  Download failed on https://security-metadata.canonical.com/oval/com.ubuntu.xenial.usn.oval.xml.bz2: do request: Get "https://security-metadata.canonical.com/oval/com.ubuntu.xenial.usn.oval.xml.bz2": dial tcp 127.0.0.1:443: connect: connection refused. Retrying in 13.80905135s
2807:  Download failed on https://security-metadata.canonical.com/oval/com.ubuntu.xenial.usn.oval.xml.bz2: do request: Get "https://security-metadata.canonical.com/oval/com.ubuntu.xenial.usn.oval.xml.bz2": dial tcp 127.0.0.1:443: connect: connection refused. Retrying in 22.138673603s
2808:  Download failed on https://security-metadata.canonical.com/oval/com.ubuntu.xenial.usn.oval.xml.bz2: do request: Get "https://security-metadata.canonical.com/oval/com.ubuntu.xenial.usn.oval.xml.bz2": dial tcp 127.0.0.1:443: connect: connection refused. Retrying in 29.815221948s
2809:  Download failed on https://security-metadata.canonical.com/oval/com.ubuntu.xenial.usn.oval.xml.bz2: do request: Get "https://security-metadata.canonical.com/oval/com.ubuntu.xenial.usn.oval.xml.bz2": dial tcp 127.0.0.1:443: connect: connection refused. Retrying in 34.570082216s
2810:  Download failed on https://security-metadata.canonical.com/oval/com.ubuntu.xenial.usn.oval.xml.bz2: do request: Get "https://security-metadata.canonical.com/oval/com.ubuntu.xenial.usn.oval.xml.bz2": dial tcp 127.0.0.1:443: connect: connection refused. Retrying in 49.648462206s
2811:  Download failed on https://security-metadata.canonical.com/oval/com.ubuntu.xenial.usn.oval.xml.bz2: do request: Get "https://security-metadata.canonical.com/oval/com.ubuntu.xenial.usn.oval.xml.bz2": dial tcp 127.0.0.1:443: connect: connection refused. Retrying in 1m7.414021596s
2812:  Download failed on https://security-metadata.canonical.com/oval/com.ubuntu.xenial.usn.oval.xml.bz2: do request: Get "https://security-metadata.canonical.com/oval/com.ubuntu.xenial.usn.oval.xml.bz2": dial tcp 127.0.0.1:443: connect: connection refused. Retrying in 38.934736791s
2813:  vulnerability_data_stream_test.go:44: 
2814:  Error Trace:	/home/runner/work/fleet/fleet/cmd/fleetctl/integrationtest/vuln/vulnerability_data_stream_test.go:44
2815:  Error:      	Received unexpected error:
2816:  Error downloading Oval definitions: downloadDefinitions: download and extract url https://security-metadata.canonical.com/oval/com.ubuntu.xenial.usn.oval.xml.bz2: download and write file: do request: Get "https://security-metadata.canonical.com/oval/com.ubuntu.xenial.usn.oval.xml.bz2": dial tcp 127.0.0.1:443: connect: connection refused
2817:  Test:       	TestIntegrationsVulnerabilityDataStream
2818:  nettest.go:36: network test done: TestIntegrationsVulnerabilityDataStream
2819:  DONE 808 tests, 1 failure in 664.204s
2820:  make[1]: *** [Makefile:278: .run-go-tests] Error 1
2821:  make[1]: Leaving directory '/home/runner/work/fleet/fleet'
2822:  make: *** [Makefile:393: test-go] Error 2
2823:  ##[error]Process completed with exit code 2.
2824:  ##[group]Run actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a
2825:  with:
2826:  name: fleetctl-mysql9.5.0-coverage
2827:  path: ./coverage.txt
2828:  if-no-files-found: error
2829:  compression-level: 6
...

2841:  With the provided path, there will be 1 file uploaded
2842:  Artifact name is valid!
2843:  Root directory input is valid!
2844:  Beginning upload of artifact content to blob storage
2845:  Uploaded bytes 2844684
2846:  Finished uploading artifact content to blob storage!
2847:  SHA256 hash of uploaded artifact zip is 8da5c790ee24eb535cef64cdf3fe2deb074da8d3246658001f0521e2f9cb3544
2848:  Finalizing artifact upload
2849:  Artifact fleetctl-mysql9.5.0-coverage.zip successfully finalized. Artifact ID 6755606836
2850:  Artifact fleetctl-mysql9.5.0-coverage has been successfully uploaded! Final size is 2844684 bytes. Artifact ID is 6755606836
2851:  Artifact download URL: https://github.com/fleetdm/fleet/actions/runs/25229326494/artifacts/6755606836
2852:  ##[group]Run c1grep() { grep "$@" || test $? = 1; }
2853:  �[36;1mc1grep() { grep "$@" || test $? = 1; }�[0m
2854:  �[36;1mc1grep -oP 'FAIL: .*$' /tmp/gotest.log > /tmp/summary.txt�[0m
2855:  �[36;1mc1grep 'test timed out after' /tmp/gotest.log >> /tmp/summary.txt�[0m
2856:  �[36;1mc1grep 'fatal error:' /tmp/gotest.log >> /tmp/summary.txt�[0m
2857:  �[36;1mc1grep -A 10 'panic: runtime error: ' /tmp/gotest.log >> /tmp/summary.txt�[0m
2858:  �[36;1mc1grep ' FAIL\t' /tmp/gotest.log >> /tmp/summary.txt�[0m
2859:  �[36;1mGO_FAIL_SUMMARY=$(head -n 5 /tmp/summary.txt | sed ':a;N;$!ba;s/\n/\\n/g')�[0m
2860:  �[36;1mecho "GO_FAIL_SUMMARY=$GO_FAIL_SUMMARY"�[0m
2861:  �[36;1mif [[ -z "$GO_FAIL_SUMMARY" ]]; then�[0m
2862:  �[36;1m  GO_FAIL_SUMMARY="unknown, please check the build URL"�[0m
2863:  �[36;1mfi�[0m
2864:  �[36;1mGO_FAIL_SUMMARY=$GO_FAIL_SUMMARY envsubst < .github/workflows/config/slack_payload_template.json > ./payload.json�[0m
2865:  shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
2866:  env:
2867:  RACE_ENABLED: false
2868:  GO_TEST_TIMEOUT: 20m
2869:  DOCKER_COMMAND: docker compose -f docker-compose.yml -f docker-compose-redis-cluster.yml up -d mysql_test mysql_replica_test redis redis-cluster-1 redis-cluster-2 redis-cluster-3 redis-cluster-4 redis-cluster-5 redis-cluster-6 redis-cluster-setup s3 saml_idp mailhog mailpit smtp4dev_test
2870:  RUN_TESTS_ARG: 
2871:  CI_TEST_PKG: fleetctl
2872:  NEED_DOCKER: 1
2873:  ARTIFACT_PREFIX: fleetctl-mysql9.5.0
2874:  GOTOOLCHAIN: local
2875:  ##[endgroup]
2876:  GO_FAIL_SUMMARY=
2877:  ##[group]Run actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a
2878:  with:
2879:  name: fleetctl-mysql9.5.0-test-log
2880:  path: /tmp/gotest.log
2881:  if-no-files-found: error
2882:  compression-level: 6

@nulmete
nulmete merged commit b4a207f into main May 5, 2026
74 of 80 checks passed
@nulmete
nulmete deleted the 39016-ability-to-upload-a-custom branch May 5, 2026 12:42
nulmete added a commit that referenced this pull request May 5, 2026
<!-- Add the related story/sub-task/bug number, like Resolves #123, or
remove if NA -->
**Related issue:** Resolves #44333

# Checklist for submitter

- [x] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
See [Changes
files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/guides/committing-changes.md#changes-files)
for more information.

## Testing

- [x] Added/updated automated tests. Also added some integration tests
as a follow-up of the first PR
(#44390).

- [x] QA'd all new/changed functionality manually

#### generate-gitops

- Branched off to main, no URLs set, then ran generate-gitops on this
branch. Deprecated keys gone, new keys present.

<img width="447" height="170" alt="nourls_new"
src="https://github.com/user-attachments/assets/61931615-d61b-44d3-8095-f7a2b9bd8871"
/>

- Branched off to main, set external URLs for both light and dark modes,
then ran generate-gitops on this branch. Deprecated keys gone, new keys
set with the external URLs.

<img width="637" height="471" alt="externalurl_main"
src="https://github.com/user-attachments/assets/c3782756-acc2-4b99-812d-86e145f11ad5"
/>

<img width="459" height="168" alt="externalurl_new"
src="https://github.com/user-attachments/assets/aa2d8825-3c47-40ba-ab91-bb8202afe81a"
/>

- Within this branch, after uploading a custom logo for light mode, ran
generate-gitops. The logo was saved in lib/org_logo/light.webp

<img width="1510" height="639" alt="Screenshot 2026-05-04 at 4 06 59 PM"
src="https://github.com/user-attachments/assets/13318c24-8fa4-4e29-b629-ff723d4afe5a"
/>
<img width="786" height="172" alt="Screenshot 2026-05-04 at 4 07 30 PM"
src="https://github.com/user-attachments/assets/b46bd1df-7dcd-4489-b7da-4cbad77b25b8"
/>


#### gitops

- Applied gitops with two external URLs. Verified in the UI that those
are still present

<img width="944" height="189" alt="Screenshot 2026-05-04 at 7 54 53 AM"
src="https://github.com/user-attachments/assets/a34813ca-beb1-403e-9793-d42cc9c72f8b"
/>
<img width="637" height="259" alt="Screenshot 2026-05-04 at 8 01 04 AM"
src="https://github.com/user-attachments/assets/74c2cd56-ab1d-4ddd-9b8e-22c49e9ae9d5"
/>

- Applied gitops with "" as the URLs to clear them. Verified the default
fleet logo is shown.

<img width="460" height="201" alt="Screenshot 2026-05-04 at 8 15 11 AM"
src="https://github.com/user-attachments/assets/dcbafea3-b4ea-44aa-9045-08c4f5a64e98"
/>
<img width="648" height="269" alt="Screenshot 2026-05-04 at 8 15 50 AM"
src="https://github.com/user-attachments/assets/451a28f9-e929-4b84-93d3-a7dd9afd5eca"
/>

- Applied gitops with a custom logo for light theme, using
**org_logo_path_light_mode**:

<img width="948" height="207" alt="Screenshot 2026-05-04 at 4 10 05 PM"
src="https://github.com/user-attachments/assets/b1418cd4-31cc-4e53-b566-9af11ec21970"
/>
<img width="774" height="168" alt="Screenshot 2026-05-04 at 4 10 35 PM"
src="https://github.com/user-attachments/assets/63f596eb-308f-4122-ad86-e1d718e9b525"
/>



## New Fleet configuration settings

- [x] Verified that the setting is exported via `fleetctl
generate-gitops`
- [x] Verified the setting is documented in a separate PR to [the GitOps
documentation](https://github.com/fleetdm/fleet/blob/main/docs/Configuration/yaml-files.md#L485)
- See #43808.
- [x] Verified that the setting is cleared on the server if it is not
supplied in a YAML file (or that it is documented as being optional)
- [x] Verified that any relevant UI is disabled when GitOps mode is
enabled

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* GitOps support for uploading custom org logos (dark/light) via local
files.
* `fleetctl generate-gitops` exports Fleet-hosted logos as local files
and inserts path references.
  * New API endpoints to upload, delete, and fetch org logos.

* **Deprecated**
* Legacy logo keys consolidated into mode-specific URL keys
(`org_logo_url_dark_mode`, `org_logo_url_light_mode`).

* **Bug Fixes / Validation**
* Validation/error when both a path and URL are provided for the same
mode; file size and image-format checks enforced.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
nulmete added a commit that referenced this pull request May 6, 2026
<!-- Add the related story/sub-task/bug number, like Resolves #123, or
remove if NA -->
**Related issue:** Follow-up to #44390 (BE/FE) and #44550 (GitOps).
Parent story #39016.

## Summary

Accepts `.svg` for organization logo uploads in addition to
PNG/JPEG/WebP, with strict server-side validation since SVGs can carry
scripts.

# Checklist for submitter

- [x] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
See [Changes
files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/guides/committing-changes.md#changes-files)
for more information.

## Testing

- [x] Added/updated automated tests

- [x] QA'd all new/changed functionality manually



https://github.com/user-attachments/assets/318d320e-ff78-41fe-ad3a-55d6dace8dc0



<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* Organization logos now accept SVG in addition to PNG, JPEG, and WebP.
  * Stored SVG logos are re-validated when served.

* **Security**
* Server applies strict SVG sanitization to block scripts, unsafe
elements, event handlers, and unsafe URL schemes.
* SVG logo responses include headers to prevent content-type sniffing
and restrict execution.

* **Tests**
* Added tests covering SVG detection, validation, allowed/rejected
cases, and serving behavior.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

4 participants