github OpenC3/cosmos v7.6.0

one hour ago

OpenC3 COSMOS Core 7.6.0 - Dashboards, Hardware Discovery and Leaner Microservices!

COSMOS 7.6.0 introduces Dashboards (beta) (#4180, #4267), a new tool for building operations dashboards with value, gauge, graph, limits and command panels that roll up into one health banner.

dashboards

Limits groups are now telemetry (#4264): each target publishes a LIMITS_GROUP packet with the rolled up state of every group, so you can put groups on screens, graph them and wait on them in scripts. New SEQUENCE, CHANGE and STATIC limits (#4266) check each value against the previous one.

Data Extractor, Telemetry Grapher and Data Viewer can now select data by packet time or received time (#4360, #4361, #4362). Discover Hardware (#4230) scans connected computers for devices and suggests plugins to install for them. SHARED_RESOURCE (#4250) lets several scopes define the same hardware while only one scope uses it at a time.

On the performance side, MICROSERVICE_GROUP (#4262) runs a group of targets' microservices in two shared processes instead of one or more per target, which cut the demo's memory use from about 897 MB to 231 MB. The time series database moves to QuestDB 10.2.0 (#4268), with a faster ingest protocol and writes that survive a power loss. Command Sender is redesigned so the Send button is the only way to send a command (#4411), and Script Runner gets a file explorer (#4208) and a clearer Goto (#4231).

Migration Notes

With the addition of the compose.override.yaml and .env.local (first in 7.3.0) you should move all of your compose.yaml and .env updates into these new files. COSMOS now ships compose.override.example.yaml instead of compose.override.yaml, so your compose.override.yaml is never replaced by an upgrade. Rename your existing compose.yaml to compose.override.yaml and .env to .env.local. Get the newly released compose.yaml and .env files from the release. Then diff with these files to determine your project specific modifications and remove any defaults or other settings that you're not explicitly overriding. This will make upgrading much easier going forward because you don't have to sync with our defaults.

🛑 Breaking Changes from 6.x

  • S3 Backend Migration: Migrated from MINIO to versitygw.

🛑 Breaking Changes from 7.5.1

  • Limits groups: LIMITS_GROUP is now a reserved telemetry packet name. Rename any such packet and reinstall its plugin before upgrading, or the upgrade stops and lists the targets. Group names must follow item naming rules, and invalid or duplicate groups are removed on upgrade with a warning; reinstall the plugin to restore them (#4264)
  • QuestDB 10.2.0: the database can't be downgraded once 10.2.0 has started on it, so back it up first. Set OPENC3_TSDB_INGEST_PROTOCOL=http to go back to ILP ingest (#4268)
  • Upgrading: COSMOS now ships compose.override.example.yaml and never touches your compose.override.yaml. The first upgrade from 7.3.0 through 7.5.1 deletes compose.override.yaml; if you committed edits, restore it with git checkout HEAD -- compose.override.yaml (#4391)
  • Valkey ACLs: if you keep a copy of openc3-redis/users.acl, merge the new file. KEYS, FLUSHALL, EVAL and other dangerous commands now return NOPERM, and the admin user is off; re-enable it with a new password if you use it (#4343)
  • ROUTE_PREFIX: prefixes starting with a segment COSMOS uses (openc3-api, tools, files, js, ...) or containing characters other than letters, numbers, _ and - now fail to install. /myapi no longer matches /myapiother (#4325)
  • Plugin install: a STRING or BLOCK default that doesn't fit its bit size now fails unless the parameter uses OVERFLOW TRUNCATE (#4397). Item and parameter names over 124 bytes are rejected (#4365)
  • Accessors: INT and UINT strings with leading zeros read as decimal, so "010" is 10 in Ruby instead of 8. Python now raises an error for non-integer strings like "3.7" instead of truncating (#4442)
  • Critical commanding: with Critical Commanding set to NORMAL, Command Sender commands sent with Ignore Range Checks or Disable Parameter Conversions now need approval. cmd_no_range_check and cmd_raw in scripts are unchanged (#4431)
  • HTTP Client interface: 3xx responses are returned instead of followed. Point the interface at the final URL if you relied on redirects (#4280)
  • Script environment variables named like ones COSMOS sets (OPENC3_*, PATH, RUBY*, PYTHON*, ...) are rejected, and saved ones are skipped. Rename them (#4301)
  • CLI: the tool_angular, tool_react and tool_svelte generators are removed. Use cli generate tool (Vue) or the archived tool_templates repo (#4287)

See the COSMOS 7.0.0 release notes for all the amazing new features in COSMOS 7!

🚀 Performance and scalability

  • Microservice groups: the new MICROSERVICE_GROUP target keyword runs grouped targets' microservices as threads in two shared processes. The demo plugin uses it by default (#4262, #4429)
  • QuestDB 10.2.0: ingest uses QuestDB's QWP binary protocol, acknowledged writes survive a power loss, and the write batch grows to 5,000 rows (#4268)
  • Queued decom writes: decom batches its decom stream and current value table writes every 0.1s, like interfaces do since 7.5.1 (#4247)
  • Limits: a decom with many disabled limits no longer gets stuck in a resync loop, and per-packet Redis reads are gone (#4246, #4363)
  • TCP/IP Server interface: each client is written to independently, so a slow client no longer delays the others (#4320)
  • Limits Monitor: the events table is virtualized and no longer freezes the browser during a flood of limits events (#4418)

🛠 Enhancements

  • Dashboards (beta): a new tool for at-a-glance dashboards built from telemetry, limits, commands and screens, saved as text files in a target (#4180, #4267)
  • Limits groups as telemetry: each target gets a <TARGET> LIMITS_GROUP packet with each group's state and enabled flag. Groups can nest and are now per target (#4264, #4457)
  • Change limits: SEQUENCE, CHANGE and STATIC limits check expected increments, changing values or unchanged values (#4266)
  • Packet or received time: Data Extractor, Telemetry Grapher and Data Viewer can select and show data by either time (#4360, #4361, #4362)
  • Discover Hardware: scans hosts connected through openc3-cosmos-app for devices and proposes matching plugins (#4230)
  • Plugin variables: new VARIABLE_FILE uploads, PRE_INSTALL_SCRIPT / POST_INSTALL_SCRIPT, and variable types, validation and groups (#4230)
  • Shared resources: SHARED_RESOURCE lets interfaces, routers, microservices and targets in several scopes share hardware that only one scope uses at a time (#4250)
  • Command Sender: read-only history, a paste box that fills in the form, and hazardous warnings shown before you press Send (#4411)
  • Command Sender: state parameter drop downs are searchable (#4203), and the Mode menu can disable command validators (#4171)
  • Critical commands: a scope can require 1 to 10 distinct approvers, and the new critical_cmd_info returns approval status (#4207)
  • Script Runner: new file explorer with searchable file and procedure views, plus a help dialog with keyboard shortcuts (#4208, #4347, #4392)
  • Script Runner: choose a starting line before running, and Goto works from the toolbar and the debug prompt (#4231, #4278)
  • Telemetry Viewer: TABBOOK SETTING LIMITS_STATE TRUE shows each tab's worst limits state (#4354)
  • Item Details: shows Packet Time and Received Time, and which packet a LATEST item came from (#4233)
  • Commands: the new extra argument to cmd passes per-command metadata through to the interface (#3777)
  • Python: API clients can authenticate with Keycloak client credentials by setting OPENC3_API_CLIENT_SECRET (#4167)
  • Python plugins: cli generate target --python creates pyproject.toml. requirements.txt still works but is deprecated (#4423)
  • CLI: openc3.sh cli warns when a path argument is outside the current directory and won't reach the host (#4416)

🔒 Security

  • Script Runner: scripts receive their credentials over stdin instead of environment variables, and control messages are signed (#4205, #4201)
  • Script Runner: environment variable names are validated, and names COSMOS sets such as OPENC3_* and PATH are rejected (#4301)
  • File writes from Script Runner, Table Manager and Bucket Explorer require script_edit (#4193, #4228)
  • Storage endpoints only accept OPENC3_*_VOLUME volume names (#4194)
  • Raw Redis and TSDB queries in Admin require superadmin. Tokens in the WebSocket URL are deprecated and log a warning (#4353)
  • Valkey ACLs: the openc3 and scriptrunner users can no longer run dangerous commands, and the admin user is disabled by default (#4343)
  • Login rate limits ignore the Client-IP and Forwarded headers when finding the client address (#4348)
  • HTTP Client interface: request paths are validated and redirects are no longer followed (#4280)
  • ROUTE_PREFIX is validated and microservice routes are anchored so they can't take over COSMOS routes (#4325)
  • Reingest sanitizes QuestDB table names (#4192)
  • Python API clients redact passwords, client secrets and refresh tokens from logs (#4167)
  • Traefik 3.7.20 (#4199, #4381, #4443), Versitygw 1.11.0 (#4241), Valkey 9.2.0 (#4443), Node.js 24.22.3 and npm 12.2.3 (#4357, #4240, #4443), Ruby 3.4.13 with the Debian image pinned to the exact version (#4368, #4443), anycable-go 1.6.21 with Go 1.27.4 (#4279), plus general dependency updates (#4273, #4357, #4443)

📚 Documentation

  • New Metadata guide on recording metadata with inject_tlm. The metadata_* APIs are deprecated and warn when used (#4174)
  • Context diagrams for test and satellite operations, and architecture diagrams redrawn as SVG (#4227)
  • Command queues: the queue argument and OPENC3_DEFAULT_QUEUE routing (#4232)
  • Screen layout, token lifespans, extending container images, and roles and permissions (#4341)
  • Scripting API: badges showing which module each method comes from, and deprecated APIs now warn (#4139)
  • .env.local requires COSMOS 7.3.0 or later (#4406)

🪲 Bug Fixes

Tools

  • Command Queues: hazardous commands are sent when a queue is released. Since 6.9.1 they were dropped with a HazardousError (#4460)
  • Command Sender: REQUIRED parameters show a Required placeholder and report "not given" instead of a size error (#4397)
  • Data Extractor: values containing the delimiter, quotes or newlines are quoted correctly in CSV and TSV output (#3371)
  • Packet Viewer: stops polling a target or packet that was removed (#4417)
  • CmdTlmServer: Data Flows keeps updating when an interface is disconnected or slow to respond (#4244)
  • Notifications: acknowledging an alert clears it in every open browser tab (#4430)

Interfaces and microservices

  • The bucket startup check keeps retrying while S3 returns 503 (#4156)
  • Python decom sends an empty limits state instead of "None", matching Ruby (#4407)

Plugins, config and build

  • Item and parameter names are limited to 124 bytes so their extra database columns fit (#4365)
  • inject_tlm keeps a VARIABLE_BIT_SIZE length item in sync with its data (#4218)
  • Variable sized FLOAT arrays can be written, and variable sized INT/UINT arrays keep correct lengths (#4223)
  • Python JSON accessors preserve exact 64-bit integers (#4433)

Scripting and API

  • Scripting API methods use the caller's scope instead of DEFAULT in multi-scope deployments (#4390, #4382, #4383)
  • Python: set_tlm writes to the right scope, get_cmd_hazardous no longer raises KeyError, and cmd(..., manual=True) works (#4382)
  • Python suites: result handling, Group.current_suite() and custom suite detection fixed (#4383)
  • API logs again include the user, request id, path and status, which had been missing since 7.0.0 (#4427)

What's Changed

  • fix(ci): extend Docker Hub token for post-release ClamAV scan by @jmthomas in #4190
  • fix(test): restore OPENC3_CLOUD after target_model dynamic_update specs by @EmilyRagan in #4189
  • fix(docs) Add the Command Validator to the Command Sender mode menu by @jmthomas in #4171
  • chore(traefik) Bump traefik verison to 3.7.17 by @jmthomas in #4199
  • feat(cmd-sender): make state parameter drop downs searchable by @jmthomas in #4203
  • refactor(python): return tuples from command validator checks by @devteamaegis in #4170
  • fix(reingest): sanitize QuestDB table names in DEDUP ALTER statements by @jmthomas in #4192
  • fix(script-runner): share script process env handling with suite analysis by @jmthomas in #4201
  • docs: add context diagrams and rebuild architecture diagrams as SVG by @jmthomas in #4227
  • fix(cmd-tlm-api): require script_edit to write files by @jmthomas in #4193
  • fix(dataextractor): RFC 4180 quote fields containing delimiter, quote, or newline by @ryanmelt-agent in #3371
  • chore(deps): remove unused npm deps by @EmilyRagan in #4222
  • fix(api): restrict storage volume parameters to OPENC3_*_VOLUME variables by @jmthomas in #4194
  • fix(inject-tlm): keep VARIABLE_BIT_SIZE length in sync with data by @calmonroe in #4218
  • docs: document queue argument and OPENC3_DEFAULT_QUEUE routing for cmd by @jmthomas in #4232
  • chore(trivy) Bump trivy version and harden post release scan by @jmthomas in #4195
  • COSMOS Dashboards Tool by @clayandgen in #4180
  • feat(sr) File Tree Explorer by @clayandgen in #4208
  • feat(vue-common): show packet and received time in item details by @jmthomas in #4233
  • docs(scripting-api): deprecate metadata apis in favor of inject_tlm by @jmthomas in #4174
  • fix(binary-accessor): support writing variable sized FLOAT arrays by @calmonroe in #4223
  • chore: update npm and comment, remove manual unidici upgrade by @EmilyRagan in #4240
  • Bump versitygw by @jmthomas in #4241
  • test(bucket-explorer): make tests more resilient to changes by @EmilyRagan in #4248
  • build(deps): bump the github-actions group across 1 directory with 7 updates by @dependabot[bot] in #4260
  • build(deps): bump the github-actions-major group across 1 directory with 2 updates by @dependabot[bot] in #4220
  • feat(critical-cmd): support multiple critical command approvers by @calmonroe in #4207
  • chore(docker): improve Dockerfile caching by @EmilyRagan in #4235
  • python: allow Keycloak client credentials auth by @321github123 in #4167
  • Add per-command metadata propagation to interfaces by @jwalters2 in #3777
  • fix(cmd-tlm-api): require script_edit for all Table Manager writes by @jmthomas in #4228
  • chore(copyright/license): improve pre-commit hook, remove license files by @EmilyRagan in #4251
  • chore(sonarqube): prefer-optional-chaining eslint rule by @EmilyRagan in #4252
  • test(cmd-tlm): add command states and a large state list to generator by @jmthomas in #4204
  • chore(sonarqube): add no-lonely-if eslint rule to match sonarqube rule by @EmilyRagan in #4271
  • Fix S3 readiness check accepting HTTP 503 by @suhaslord in #4156
  • fix(sonarqube) Address the SonarQube highs by @clayandgen in #4274
  • test(cmd-api): wait for handler thread before sending commands by @EmilyRagan in #4140
  • fix(scriptrunner): address goto review findings by @mcosgriff in #4278
  • feat(tsdb): upgrade QuestDB to 10.2.0 with QWP ingest and adaptive mode by @jmthomas in #4268
  • docs(notebooks) Document plugin packageable by @clayandgen in #4277
  • feature(dashboards) Various improvements in UI/UX by @clayandgen in #4267
  • chore(eslint): add no-await-in-loop eslint rule to match sonarqube rule by @EmilyRagan in #4276
  • build: commit Gemfile.lock files and enforce them in Docker builds and CI by @mcosgriff in #4243
  • chore(copyright): Improve pre commit hook by @EmilyRagan in #4269
  • ci(deps): move tool pins dependabot can see out of tool_version_check by @mcosgriff in #4206
  • feat(python): add docstrings and type hints to the Python API by @mcosgriff in #4300
  • Add PR Deck Skill by @ryanmelt in #4238
  • fix(cmd-tlm-server): data flows handle disconnected interfaces by @EmilyRagan in #4244
  • fix(sr): Improve File Explorer tree for screen sizes + Remove Back-Arrow by @clayandgen in #4347
  • build(python): switch the openc3 build backend to uv_build by @mcosgriff in #4346
  • feat(python): add docstrings and type hints to the script API by @mcosgriff in #4321
  • feat(cli)!: remove angular, react, and svelte tool generators by @jmthomas in #4287
  • build(openc3-anycable): update anycable-go binaries to v1.6.21 with go1.27.4 by @jmthomas in #4279
  • Feat/script runner goto by @jmthomas in #4231
  • ci: skip Build UBI on fork pull requests by @ryanmelt in #4261
  • build(deps): resolve Dependabot alerts in frontend and docs lockfiles by @ryanmelt in #4273
  • fix(limits): send limits control events to new db_shards by @jmthomas in #4363
  • Remove stream complete messages by @ryanmelt in #4237
  • chore(eslint): add no-sequences, no-case-declaration to match SonarQube rule by @EmilyRagan in #4286
  • Fix DEFAULT bridge migration failing on upgrades by @suhaslord in #4157
  • feat(limits): add SEQUENCE, CHANGE, and STATIC change limits by @calmonroe in #4266
  • docs(general): Address Documentation gaps by @clayandgen in #4341
  • fix(target-model): leave room for the column suffix in item names by @jmthomas in #4365
  • feat(docs): add shared consent and tracking to docs.openc3.com by @jmthomas in #4364
  • feat(tlm-viewer): show tab limits state with TABBOOK LIMITS_STATE by @jmthomas in #4354
  • Chore/audit vendored packages by @jmthomas in #4357
  • docs(security): link directly to the private vulnerability report form by @ryanmelt in #4371
  • ci(tool-version-check): recreate the bump branch when its base changed workflows by @ryanmelt in #4369
  • fix(interfaces): validate HTTP client request paths by @jmthomas in #4280
  • fix(test): fix failing ruby unit tests by @EmilyRagan in #4379
  • feat(script-runner): validate script environment variable names by @jmthomas in #4301
  • docs(scripting): add badges, update parameters by @EmilyRagan in #4139
  • fix(api): ignore Client-IP and Forwarded headers for remote_ip by @jmthomas in #4348
  • cleaning up open threads by @EmilyRagan in #4380
  • chore(traefik) Bump to 3.7.19 by @jmthomas in #4381
  • ci(build-ubi): remove redundant openc3-build-ubi-skipped job by @jmthomas in #4385
  • build(deps-dev): bump the uv group across 1 directory with 5 updates by @dependabot[bot] in #4374
  • build(deps): bump astral-sh/setup-uv from 10.0.1 to 10.3.3 in /.github/actions/setup-uv-python in the github-actions group across 1 directory by @dependabot[bot] in #4326
  • chore(deps): bump the tool pins dependabot cannot see by @github-actions[bot] in #4370
  • chore: merge main into fix/code-scanning-alerts by @jmthomas in #4378
  • align use of xtrim with ruby and fix related tests by @EmilyRagan in #4398
  • fix: forward scope through scripting API methods by @mcosgriff in #4390
  • fix(traefik)!: validate ROUTE_PREFIX and anchor microservice routes by @jmthomas in #4325
  • fix(script-runner): skip explorer split observer when inline by @jmthomas in #4392
  • fix(python): fix Python API bugs found while adding type hints by @mcosgriff in #4382
  • fix(python): fix script API and suite bugs found while adding type hints by @mcosgriff in #4383
  • fix(store): only send XTRIM LIMIT with approximate trims in Ruby by @jmthomas in #4403
  • test(playwright): save only auth keys from global setup storage state by @jmthomas in #4402
  • test(python): accept scope in critical_cmd_status mocks by @jmthomas in #4404
  • build(ruby): pin the Debian Ruby base image to an exact patch version by @ryanmelt in #4368
  • test(playwright): suppress clock out of sync dialog in every context by @jmthomas in #4405
  • ci(trivy): report image scan findings as a neutral check run by @jmthomas in #4393
  • docs(security): note that .env.local requires COSMOS 7.3.0+ by @jmthomas in #4406
  • fix: resolve open code scanning alerts by @ryanmelt in #4366
  • perf(decom): queue decom stream and CVT writes like interfaces by @ryanmelt in #4247
  • test(playwright): add signIn and switchUser helpers to Utilities by @jmthomas in #4408
  • fix(vue-common): let clicks pass through version history tooltips by @jmthomas in #4410
  • refactor(script-runner): deliver script credentials via stdin and sign control messages by @jmthomas in #4205
  • test(playwright): read limits resync log messages from the cable by @jmthomas in #4412
  • feat(skills): add reuse-review and parity-review skills by @mcosgriff in #4400
  • build(python): add just audit and audit-fix recipes by @mcosgriff in #4401
  • fix(commands): report missing REQUIRED parameters before defaults by @jmthomas in #4397
  • fix(models): prune stale packet counts when the interface starts by @mcosgriff in #4415
  • fix(scripts): warn when cli paths are outside the mounted directory by @mcosgriff in #4416
  • add promise/no-nesting eslint rule to match sonarqube rule by @EmilyRagan in #4350
  • feat(tsdb): archive, restore and release TSDB partitions by @jmthomas in #4275
  • fix(limits-monitor): load event history and virtualize the events table by @jmthomas in #4418
  • feat(skills): add release-notes skill and PR template release notes section by @jmthomas in #4342
  • feat: Discover Hardware and plugin install variables by @ryanmelt in #4230
  • fix(api): log request tags and upgrade to rails_semantic_logger 5.3 by @jmthomas in #4427
  • feat: add SHARED_RESOURCE to share a resource between scopes by @ryanmelt in #4250
  • feat(data-extractor): select data by packet or received time by @jmthomas in #4360
  • feat(tlm-grapher): graph by packet or received time by @jmthomas in #4361
  • feat(data-viewer): show and select by packet or received time by @jmthomas in #4362
  • test(playwright): move most serial specs into the parallel batch by @jmthomas in #4413
  • chore(deps): bump the tool pins dependabot cannot see by @github-actions[bot] in #4414
  • fix(limits): stop decom limits resync loop and per-packet Redis reads by @ryanmelt in #4246
  • fix(microservices): require critical approval for no-range-check cmds by @jmthomas in #4431
  • test(playwright): wait for renamed plugin row before opening its menu by @jmthomas in #4438
  • fix: match Ruby nil.to_s for None limits states, CVT and state lookups by @jmthomas in #4407
  • fix(plugins): run plugin upgrade diff in a child process by @jmthomas in #4338
  • fix(packetviewer): stop polling a target that no longer exists by @mcosgriff in #4417
  • fix(interfaces): write to each tcpip server client independently by @jmthomas in #4320
  • fix: harden microservice groups against races and lost state by @jmthomas in #4429
  • feat: add MICROSERVICE_GROUP to share target microservice processes by @ryanmelt in #4262
  • Require superadmin for raw Redis/TSDB queries; deprecate WebSocket URL token by @jmthomas in #4353
  • fix(redis): harden Valkey ACLs and disable admin user by default by @jmthomas in #4343
  • fix(plugins): correct uv/Python plugin docs, stop generating requirements.txt by @mcosgriff in #4423
  • test(microservices): shut down leaked MultiMicroservice in test by @jmthomas in #4441
  • fix(notifications): sync alert acknowledgements across browser tabs by @shonigmann in #4430
  • fix(python): preserve exact integers in accessors by @heathsanchez in #4433
  • feat(cmd-sender): read-only history, paste box and Send-only commanding by @jmthomas in #4411
  • fix(upgrade): ship compose override as example so upgrades keep it by @jmthomas in #4391
  • feat: allow disabling a scope to stop all its microservices by @ryanmelt in #4440
  • fix(accessors): match INT/UINT string parsing in Ruby and Python by @jmthomas in #4442
  • feat(limits): publish limits groups as per-target LIMITS_GROUP telemetry by @jmthomas in #4264
  • Bump dependencies by @jmthomas in #4443
  • fix(limits): leave LIMITS_GROUP items out of the LATEST item list by @ryanmelt in #4457
  • fix(tool-base): give the navigation app its own element id prefix by @jmthomas in #4458
  • fix(tool-base): fall back to the default tool when none is shown by @jmthomas in #4459
  • fix(queue): send hazardous commands when a queue is released by @jmthomas in #4460
  • test(playwright): fix flaky global setup and limits group specs by @jmthomas in #4461
  • ci(playwright): cache pw-group plugin gem in firefox nightly by @jmthomas in #4462

New Contributors

Full Changelog: v7.5.1...v7.6.0

Don't miss a new cosmos release

NewReleases is sending notifications on new releases.