Self-host StackStorm
v3.9.0Event-driven automation platform for DevOps and SREs
- Stars
- 6 560
- CPU
- Dual CPU (testing) / Quad core CPU (production)
- RAM
- 2GB RAM (testing) / >16GB RAM (production)
- Storage
- 10GB storage (testing) / 40GB storage (production)
- Ports
- 9100 (Authentication service (st2auth)), 9101 (API server (st2api)), 9102 (Stream API server (st2stream))
- Requires
- MongoDB, RabbitMQ, Redis
stackstorm/st2apiWhat is StackStorm?
StackStorm is an event-driven automation platform that connects services and tools, triggering actions when events occur. It provides a rules engine, workflow engine, over 160 integration packs with thousands of actions, and ChatOps for team collaboration. The platform runs on Ubuntu, RHEL, or RockyLinux via native packages, Docker, Docker Compose, Ansible, Puppet, or Kubernetes. It depends on MongoDB, RabbitMQ, and Redis as external services. StackStorm offers a REST API, command-line interface, and web UI for managing automations, with authentication options including LDAP, PAM, and SAML, plus role-based access control.
StackStorm alternatives
cloudstackOpen-source IaaS software that deploys large networks of virtual machines for public clouds, private clouds, or hybrid solutions.Comparecloudstack with StackStorm
KestraSelf-hosted, open-source (Apache-2.0) engine that schedules and chains data, AI and infrastructure jobs from YAML or a visual editor, with 2,200+ plugins.CompareKestra with StackStorm
pneumaticworkflowSelf-hosted workflow platform with visual process design, AI template generation, task buckets, and API/Zapier integrations — Apache 2.0 licensed.Comparepneumaticworkflow with StackStorm
prefectPrefect is a self-hosted, open-source workflow orchestration framework turning Python functions into production data pipelines with scheduling, retries, and caching.Compareprefect with StackStorm
stoatchat-platformSelf-hosted deployment platform for Stoatchat (Discord alternative) using Helmfile on Kubernetes with Docker Compose fallback, featuring deterministic secret derivation.Comparestoatchat-platform with StackStorm
netdataNetdata is an open-source, self-hosted infrastructure monitoring platform with per-second metrics, automated dashboards, ML anomaly detection, and zero-config deployment.Comparenetdata with StackStorm
corootSelf-hosted, open-source APM and observability platform where eBPF agents capture every telemetry signal without code changes, with service maps and SLO alerting.Comparecoroot with StackStorm
RundeckEnable Self-Service Operations: Give specific users access to your existing tools, services, and scriptsCompareRundeck with StackStorm
Should you self-host StackStorm?
StackStorm scores 70/100 on selfhost.directory (how scoring works) and ranks #5 of 26 in Automation. It has 6 560 GitHub stars, +15 in the last 30 days.
It shipped 1 stable release in the past year. The latest, v3.9.0, came out on 12 January 2026.
Setup is advanced: plan for several services and some ongoing maintenance. An official Docker image is available. It is Apache-2.0-licensed and written mostly in Python.
Its closest alternative on selfhost.directory is Huginn (82/100, 50 526 stars). It scores higher overall, so compare the two before you pick. See StackStorm vs Huginn side by side.
Features
- API Keys
- Audit Trail
- Chatops
- CLI Client
- Event-driven automation
- Horizontal Scaling
- Integration packs
- LDAP Authentication
- Pack Management
- REST API
- Role-Based Access Control (RBAC)
- Rules Engine
- SAML SSO
- Web UI
- Workflow Engine
StackStorm README
StackStorm is a platform for integration and automation across services and tools, taking actions in response to events. Learn more at www.stackstorm.com.
How to install StackStorm
Install StackStorm with Docker Compose
ST2_VERSION, ST2_IMAGE_REPO, ST2_EXPOSE_HTTP, ST2_PACKS_DEVgit clone https://github.com/stackstorm/st2-docker cd st2-docker docker-compose up -d
Requires Docker engine and docker-compose installed. Uses pre-built images from Docker Hub.
Install StackStorm with Linux
curl -sSL https://stackstorm.com/packages/install.sh | bash -s -- --user=st2admin --password=Ch@ngeMe
Supports RHEL/RockyLinux 8.x and 9.x (64-bit only).
Install StackStorm with Debian
curl -sSL https://stackstorm.com/packages/install.sh | bash -s -- --user=st2admin --password=Ch@ngeMe
Supports Ubuntu 20.04 and 22.04 LTS (64-bit only).
StackStorm releases & version history
Python 3.6 is no longer supported; Stackstorm requires at least Python 3.8.
This release adds support for Python 3.10 and 3.11, so StackStorm supports python 3.8 - 3.11.
Newer MongoDB versions are now supported. CI uses MongoDB 7.0.
Several st2.conf database options have been renamed or deprecated. Most of the options will continue to work using their old name.
However, if you use [database].ssl_keyfile and/or [database].ssl_certfile, you MUST migrate to [database].tls_certificate_key_file.
This new option expects the key and certificate in the same file. Use something like the following to create that file from your old files:
cat path/to/ssl_keyfile path/to/ssl_certfile > path/to/tls_certificate_key_file
Other options that were renamed under [database] are (more details available in st2.conf.sample):
ssl->tlsssl_cert_reqs->tls_allow_invalid_certificates(opt type change: string -> boolean)ssl_ca_certs->tls_ca_filessl_match_hostnames->tls_allow_invalid_hostnames(meaning is inverted: the new option is the opposite of the old)
Fixed
- Fixed #6021 and #5327 by adding max_page_size to api_opts and added limit and offset to list_values() methods of
both action_service and sensor_service - Fix
packs.getaction. Assumedmasteris primary branch on all packs. #6225 - Restore Pack integration testing (it was inadvertently skipped) and stop testing against
bionicandel7. #6135 - Fix Popen.pid typo in st2tests. #6184
- Bump tooz package to
6.2.0to fix TLS. #6220 (@jk464) - Shells via
pywinrmare initialized with the 65001 codepage to ensure raw string responses are UTF-8. #6034 (@stealthii)
Changed
-
Removed code in all dist_utils.py that was sanitizing the
python_versionenvironment marker that limited packages in the requirements.txt only being installed on lower python versions. (by @skiedude) -
Bumped
jsonschema2.6.0 -> 3.2.0 now that python3.6 is not supported. #6118 -
Bumped many deps based on the lockfiles generated by pants+pex. #6181 #6227 #6200 #6252 #6268 #6329 (by @cognifloyd and @nzlosh)
-
Switch to python3's standard lib unittest from unittest2, a backport of python3 unittest features for python2. #6187 (by @nzlosh)
-
Drop Python 3.6 testing in CircleCI. #6080
Contributed by (@philipphomberger Schwarz IT KG) -
Refactor
tools/launchdev.shto usetmuxinstead ofscreen. #6186 (by @nzlosh and @cognifloyd) -
Updated package build container environment to use py3.8 and mongo4.4 #6129
-
Fix misc DeprecationWarnings to prepare for python 3.10 support. #6188 (by @nzlosh)
-
Update st2client deps: editor and prompt-toolkit. #6189 (by @nzlosh)
-
Updated dependency oslo.config to prepare for python 3.10 support. #6193 (by @nzlosh)
-
Updated unit tests to use redis for coordination instead of the NoOp driver. This will hopefully make CI more stable. #6245
Contributed by @FileMagic, @guzzijones, and @cognifloyd -
Renamed
[database].ssl*options to support pymongo 4, which we have to update to support newer MongoDB servers.
Please see the note above about migrating to the newer options, especially if you use[database].ssl_keyfile
and/or[database].ssl_certfile, as those options are ignored in StackStorm 3.9.0. #6250
Contributed by @cognifloyd -
Update mongoengine to 0.29 and pymongo to 4.6.3. The pymongo bump (from 3.x to 4.x) is a major update. #6252
Contributed by @cognifloyd -
Update CI from testing with mongo 4.4 to testing with MongoDB 7.0. #6246
Contributed by @guzzijones -
Relaxed
dnspythonpinning for compatibility with python 3.10 and greater. #6265
Contributed by @nzlosh -
Switched tests from
nosetesttopytest.st2-run-pack-testsalso uses pytest.
So, all pack tests must be runnable bypytest, which may require migration. #6291
Contributed by @nzlosh, @FileMagic, @guzzijones, and @cognifloyd. Pinned pytest-cov
to 5.0.0 for python 3.8 support. -
Migrated github actions from image ubunutu 20.04 with python 3.8.10 to image ubuntu 22.04 with python 3.8.12. #6301
Contributed by @nzlosh -
Regenerate pants lockfiles and drop passlib requirement. #6350
Contributed by @nzlosh
Added
-
Continue introducing
pants <https://www.pantsbuild.org/docs>_ to improve DX (Developer Experience)
working on StackStorm, improve our security posture, and improve CI reliability thanks in part
to pants' use of PEX lockfiles. This is not a user-facing addition.
#6118 #6141 #6133 #6120 #6181 #6183 #6200 #6237 #6229 #6240 #6241 #6244 #6251 #6253
#6254 #6258 #6259 #6260 #6269 #6275 #6279 #6278 #6282 #6283 #6273 #6287 #6306 #6307
#6311 #6314 #6315 #6317 #6319 #6312 #6320 #6321 #6323 #6324 #6325 #6326 #6327 #6328
#6329 #6330 #6337 #6356
Contributed by @cognifloyd -
Ensure
.pthfiles in the st2 virtualenv get loaded by pack virtualenvs. #6183
Contributed by @cognifloyd -
Allow
st2-rule-testerto run without a mongo connection if user is testing against localrule/trigger-instancefiles. #6208
Contributed by @jk464 -
Added a
get_resultmethod to theExecutionResourceManagerClass for st2client
Contributed by @skiedude -
Added new env var for tests:
ST2TESTS_SYSTEM_USER. When set, this will overridesystem_user.userin st2 conf
so that you can run tests on systems that do not have thestanleyuser. When running tests locally, use the
following to set system user to the current user:export ST2TESTS_SYSTEM_USER=$(id -un)#6242
Contributed by @cognifloyd -
Added experimental support for setting conf vars via environment variables. All settings in
st2.confcan be
overriden via enviornment vars in the format:ST2_<conf section>__<option name>(env vars are upper cased)
For example, the[database].passwordsetting inst2.confcould be overriden usingST2_DATABASE__PASSWORD.
This new feature is based on oslo_config's environment support, but patches it to use theST2_prefix.
If you experience any issues when using this experimental feature, please file an issue. #6277
Contributed by @cognifloyd -
Add new option
[messaging].prefixto configure the prefix used in RabbitMQ exchanges and queues.
The default isst2(resulting in exchange names likest2.executionandst2.sensor).
This is primarily designed to support safely running tests in parallel where creating a vhost for
each parallel test run would be a maintenance burden. #6282
Contributed by @cognifloyd -
Add python 3.10 and 3.11 to the GitHub Actions test matrix.
Contributed by @nzlosh, @guzzijones12, and @cognifloyd -
Copy systemd files and rpm/deb scriptlets from st2-packages.git for future packaging via pants. #6303 #6313
Cherry-picked by @cognifloyd -
Cherry-pick changes to runners.sh from st2-packages git repo. #6302
Cherry-picked by @cognifloyd -
Pinned DOCKER_API_VERSION in the circleci build to make sure the docker-cli api version does not exceed what
cicrleci docker24 <https://circleci.com/docs/guides/execution-managed/building-docker-images/>_ supports
https://stackstorm.com/2021/06/29/stackstorm-v3-5-0-released/
Added
-
Added web header settings for additional security hardening to nginx.conf: X-Frame-Options,
Strict-Transport-Security, X-XSS-Protection and server-tokens. #5183Contributed by @Shital.
-
Added support for
limitandoffsetargument to thelist_valuesdata store
service method (#5097 and #5171).Contributed by @anirudhbagri.
-
Various additional metrics have been added to the action runner service to provide for better
operational visibility. (improvement) #4846Contributed by @Kami.
-
Added sensor model to list of JSON schemas auto-generated by
make schemasgenthat can be used
by development tools to validate pack contents. (improvement) -
Added the command line utility
st2-validate-packthat can be used by pack developers to
validate pack contents. (improvement) -
Fix a bug in the API and CLI code which would prevent users from being able to retrieve resources
which contain non-ascii (utf-8) characters in the names / references. (bug fix) #5189Contributed by @Kami.
-
Fix a bug in the API router code and make sure we return correct and user-friendly error to the
user in case we fail to parse the request URL / path because it contains invalid or incorrectly
URL encoded data.Previously such errors weren't handled correctly which meant original exception with a stack
trace got propagated to the user. (bug fix) #5189Contributed by @Kami.
-
Make redis the default coordinator backend.
-
Fix a bug in the pack config loader so that objects covered by an additionalProperties schema
can use encrypted datastore keys and have their default values applied correctly. #5225Contributed by @cognifloyd.
-
Add new
database.compressorsanddatabase.zlib_compression_levelconfig option which
specifies compression algorithms client supports for network / transport level compression
when talking to MongoDB.Actual compression algorithm used will be then decided by the server and depends on the
algorithms which are supported by the server + client.Possible / valid values include: zstd, zlib. Keep in mind that zstandard (zstd) is only supported
by MongoDB >= 4.2.Our official Debian and RPM packages bundle
zstandarddependency by default which means
setting this value tozstdshould work out of the box as long as the server runs
MongoDB >= 4.2. #5177Contributed by @Kami.
-
Add support for compressing the payloads which are sent over the message bus. Compression is
disabled by default and user can enable it by settingmessaging.compressionconfig option
to one of the following values:zstd,lzma,bz2,gzip.In most cases we recommend using
zstd(zstandard) since it offers best trade off between
compression ratio and number of CPU cycles spent for compression and compression.How this will affect the deployment and throughput is very much user specific (workflow and
resources available). It may make sense to enable it when generic action trigger is enabled
and when working with executions with large textual results. #5241Contributed by @Kami.
-
Mask secrets in output of an action execution in the API if the action has an output schema
defined and one or more output parameters are marked as secret. #5250Contributed by @mahesh-orch.
Changed
-
All the code has been refactored using black and black style is automatically enforced and
required for all the new code. (#5156)Contributed by @Kami.
-
Default nginx config (
conf/nginx/st2.conf) which is used by the installer and Docker
images has been updated to only support TLS v1.2 and TLS v1.3 (support for TLS v1.0 and v1.1
has been removed).Keep in mind that TLS v1.3 will only be used when nginx is running on more recent distros
where nginx is compiled against OpenSSL v1.1.1 which supports TLS 1.3. #5183 #5216 -
Add new
-xargument to thest2 execution getcommand which allows
resultfield to be excluded from the output. (improvement) #4846 -
Update
st2 execution get <id>command to also display executionlogattribute which
includes execution state transition information.By default
end_timestampattribute anddurationattribute displayed in the command
output only include the time it took action runner to finish running actual action, but it
doesn't include the time it it takes action runner container to fully finish running the
execution - this includes persisting execution result in the database.For actions which return large results, there could be a substantial discrepancy - e.g.
action itself could finish in 0.5 seconds, but writing data to the database could take
additional 5 seconds after the action code itself was executed.For all purposes until the execution result is persisted to the database, execution is
not considered as finished.While writing result to the database action runner is also consuming CPU cycles since
serialization of large results is a CPU intensive task.This means that "elapsed" attribute and start_timestamp + end_timestamp will make it look
like actual action completed in 0.5 seconds, but in reality it took 5.5 seconds (0.5 + 5 seconds).Log attribute can be used to determine actual duration of the execution (from start to
finish). (improvement) #4846Contributed by @Kami.
-
Various internal improvements (reducing number of DB queries, speeding up YAML parsing, using
DB object cache, etc.) which should speed up pack action registration between 15-30%. This is
especially pronounced with packs which have a lot of actions (e.g. aws one).
(improvement) #4846Contributed by @Kami.
-
Underlying database field type and storage format for the
Execution,LiveAction,
WorkflowExecutionDB,TaskExecutionDBandTriggerInstanceDBdatabase models has
changed.This new format is much faster and efficient than the previous one. Users with larger executions
(executions with larger results) should see the biggest improvements, but the change also scales
down so there should also be improvements when reading and writing executions with small and
medium sized results.Our micro and end to benchmarks have shown improvements up to 15-20x for write path (storing
model in the database) and up to 10x for the read path.To put things into perspective - with previous version, running a Python runner action which
returns 8 MB result would take around ~18 seconds total, but with this new storage format, it
takes around 2 seconds (in this context, duration means the from the time the execution was
scheduled to the time the execution model and result was written and available in the database).The difference is even larger when working with Orquesta workflows.
Overall performance improvement doesn't just mean large decrease in those operation timings, but
also large overall reduction of CPU usage - previously serializing large results was a CPU
intensive time since it included tons of conversions and transformations back and forth.The new format is also around 10-20% more storage efficient which means that it should allows
for larger model values (MongoDB document size limit is 16 MB).The actual change should be fully opaque and transparent to the end users - it's purely a
field storage implementation detail and the code takes care of automatically handling both
formats when working with those object.Same field data storage optimizations have also been applied to workflow related database models
which should result in the same performance improvements for Orquesta workflows which pass larger
data sets / execution results around.Trigger instance payload field has also been updated to use this new field type which should
result in lower CPU utilization and better throughput of rules engine service when working with
triggers with larger payloads.This should address a long standing issue where StackStorm was reported to be slow and CPU
inefficient with handling large executions.If you want to migrate existing database objects to utilize the new type, you can use
st2common/bin/migrations/v3.5/st2-migrate-db-dict-field-valuesmigration
script. (improvement) #4846Contributed by @Kami.
-
Add new
result_sizefield to theActionExecutionDBmodel. This field will only be
populated for executions which utilize new field storage format.It holds the size of serialzed execution result field in bytes. This field will allow us to
implement more efficient execution result retrieval and provide better UX since we will be
able to avoid loading execution results in the WebUI for executions with very large results
(which cause browser to freeze). (improvement) #4846Contributed by @Kami.
-
Add new
/v1/executions/<id>/result[?download=1&compress=1&pretty_format=1]API endpoint
which can be used used to retrieve or download raw execution result as (compressed) JSON file.This endpoint will primarily be used by st2web when executions produce very large results so
we can avoid loading, parsing and formatting those very large results as JSON in the browser
which freezes the browser window / tab. (improvement) #4846Contributed by @Kami.
-
Update
jinja2dependency to the latest stable version (2.11.3). #5195 -
Update
pyyamldependency to the latest stable version (5.4). #5207 -
Update various dependencies to latest stable versions (
bcrypt,appscheduler,pytz,
python-dateutil,psutil,passlib,gunicorn,flex,cryptography.
eventlet,greenlet,webob,mongoengine,pymongo,requests,
pyyaml,kombu,amqp,python-ldap).#5215, StackStorm/st2-auth-ldap#94
Contributed by @Kami.
-
Update code and dependencies so it supports Python 3.8 and Mongo DB 4.4 #5177
-
StackStorm Web UI (
st2web) has been updated to not render and display execution results
larger than 200 KB directly in the history panel in the right side bar by default anymore.
Instead a link to view or download the raw result is displayed.Execution result widget was never optimized to display very large results (especially for
executions which return large nested dictionaries) so it would freeze and hang the whole
browser tab / window when trying to render / display large results.If for some reason you want to revert to the old behavior (this is almost never a good idea
since it will cause browser to freeze when trying to display large results), you can do that by
settingmax_execution_result_size_for_renderoption in the config to a very large value (e.g.
max_execution_result_size_for_render: 16 * 1024 * 1024).Contributed by @Kami.
-
Some of the config option registration code has been refactored to ignore "option already
registered" errors. That was done as a work around for an occasional race in the tests and
also to make all of the config option registration code expose the same consistent API. #5234Contributed by @Kami.
-
Update
pyywinrmdependency to the latest stable version (0.4.1). #5212Contributed by @chadpatt .
-
Monkey patch on st2stream earlier in flow #5240
Contributed by Amanda McGuinness (@amanda11 Ammeon Solutions)
-
Support % in CLI arguments by reading the ConfigParser() arguments with raw=True.
This removes support for '%' interpolations on the configuration arguments.
See https://docs.python.org/3.8/library/configparser.html#configparser.ConfigParser.get for
further details. #5253Contributed by @winem.
-
Remove duplicate host header in the nginx config for the auth endpoint.
-
Update orquesta to v1.4.0.
Improvements
-
CLI has been updated to use or
orjsonwhen parsing API response and C version of the YAML
safe dumper when formatting execution result for display. This should result in speed up when
displaying execution result (st2 execution get, etc.) for executions with large results.When testing it locally, the difference for execution with 8 MB result was 18 seconds vs ~6
seconds. (improvement) #4846Contributed by @Kami.
-
Update various Jinja functiona to utilize C version of YAML
safe_{load,dump}functions and
orjson for better performance. (improvement) #4846Contributed by @Kami.
-
For performance reasons, use
udatetimelibrary for parsing ISO8601 / RFC3339 date strings
where possible. (improvement) #4846Contributed by @Kami.
-
Speed up service start up time by speeding up runners registration on service start up by
re-using existing stevedoreExtensionManagerinstance instead of instantiating new
DriverManagerinstance per extension which is not necessary and it's slow since it requires
disk / pkg resources scan for each extension. (improvement) #5198Contributed by @Kami.
-
Add new
?max_result_sizequery parameter filter to theGET /v1/executiond/<id>API
endpoint.This query parameter allows clients to implement conditional execution result retrieval and
only retrieve the result field if it's smaller than the provided value.This comes handy in the various client scenarios (such as st2web) where we don't display and
render very large results directly since it allows to speed things up and decrease amount of
data retrieved and parsed. (improvement) #5197Contributed by @Kami.
-
Update default nginx config which is used for proxying API requests and serving static
content to only allow HTTP methods which are actually used by the services (get, post, put,
delete, options, head).If a not-allowed method is used, nginx will abort the request early and return 405 status
code. #5193Contributed by @ashwini-orchestral
-
Update default nginx config which is used for proxying API requests and serving static
content to not allow range requests. #5193Contributed by @ashwini-orchestral
-
Drop unused python dependencies: prometheus_client, python-gnupg, more-itertools, zipp. #5228
Contributed by @cognifloyd.
-
Update majority of the "resource get" CLI commands (e.g.
st2 execution get,
st2 action get,st2 rule get,st2 pack get,st2 apikey get,st2 trace get,
st2 key get,st2 webhook get,st2 timer get, etc.) so they allow for retrieval
and printing of information for multiple resources using the following notation:
st2 <resource> get <id 1> <id 2> <id n>, e.g.st2 action.get pack.show packs.get packs.deleteThis change is fully backward compatible when retrieving only a single resource (aka single
id is passed to the command).When retrieving a single source the command will throw and exit with non-zero if a resource is
not found, but when retrieving multiple resources, command will just print an error and
continue with printing the details of any other found resources. (new feature) #4912Contributed by @Kami.
Fixed
-
Refactor spec_loader util to use yaml.load with SafeLoader. (security)
Contributed by @ashwini-orchestral -
Import ABC from collections.abc for Python 3.10 compatibility. (#5007)
Contributed by @tirkarthi -
Updated to use virtualenv 20.4.0/PIP20.3.3 and fixate-requirements to work with PIP 20.3.3 #512
Contributed by Amanda McGuinness (@amanda11 Ammeon Solutions) -
Fix
st2 execution get --with-schemaflag. (bug fix) #4846Contributed by @Kami.
-
Fix SensorTypeAPI schema to use class_name instead of name since documentation for pack
development uses class_name and registrar used to load sensor to database assign class_name
to name in the database model. (bug fix) -
Updated paramiko version to 2.7.2, to go with updated cryptography to prevent problems
with ssh keys on remote actions. #5201Contributed by Amanda McGuinness (@amanda11 Ammeon Solutions)
-
Update rpm package metadata and fix
Providessection for RHEL / CentOS 8 packages.In the previous versions, RPM metadata would incorrectly signal that the
st2package
provides various Python libraries which it doesn't (those Python libraries are only used
internally for the package local virtual environment).Contributed by @Kami.
-
Make sure
st2common.util.green.shell.run_command()doesn't leave stray / zombie processes
laying around in some command timeout scenarios. #5220Contributed by @r0m4n-z.
-
Fix support for skipping notifications for workflow actions. Previously if action metadata
specified an empty list fornotifyparameter value, that would be ignored / not handled
correctly for workflow (orquesta, action chain) actions. #5221 #5227Contributed by @khushboobhatia01.
-
Clean up to remove unused methods in the action execution concurrency policies. #5268
3.8.0 - November 18, 2022
https://stackstorm.com/2022/12/v3-8-0-released/
Fixed
-
Fix redis SSL problems with sentinel #5660
-
Fix a bug in the pack config loader so that objects covered by an
patternPropertiesschema
or arrays usingadditionalItemsschema(s) can use encrypted datastore keys and have their
default values applied correctly. #5321Contributed by @cognifloyd
-
Fixed
st2client/st2client/base.pyfile to check for http_proxy and https_proxy environment variables for both lower and upper cases.Contributed by @S-T-A-R-L-O-R-D
-
Fixed a bug where calling 'get_by_name' on client for getting key details was not returning any results despite key being stored. #5677
Contributed by @bharath-orchestral
-
Fixed
st2client/st2client/base.pyfile to usehttps_proxy(nothttp_proxy) to check HTTPS_PROXY environment variables.Contributed by @wfgydbu
-
Fixed schema utils to more reliably handle schemas that define nested arrays (object-array-object-array-string) as discovered in some
of the ansible installer RBAC tests (see #5684). This includes a test that reproduced the error so we don't hit this again. #5685 -
Fixed eventlet monkey patching so more of the unit tests work under pytest. #5689
-
Fix and reenable prance-based openapi spec validation, but make our custom
x-api-modelvalidation optional as the spec is out-of-date. #5709
Contributed by @cognifloyd -
Fixed generation of
st2.conf.sampleto show correct syntax for[sensorcontainer].partition_provider(space separatedkey:valuepairs). #5710
Contributed by @cognifloyd -
Fix access to key-value pairs in workflow and action execution where RBAC rules did not get applied #5764
Contributed by @m4dcoder
-
Add backward compatibility to secret masking introduced in #5319 to prevent security-relative issues.
Migration to the new schema is required to take advantage of the full output schema validation. #5783Contributed by @m4dcoder
Added
-
Added graceful shutdown for workflow engine. #5463
Contributed by @khushboobhatia01 -
Add
ST2_USE_DEBUGGERenv var as alternative to the--use-debuggercli flag. #5675
Contributed by @cognifloyd -
Added purging of old tokens. #5679
Contributed by Amanda McGuinness (@amanda11 intive) -
Begin introducing
pants <https://www.pantsbuild.org/docs>_ to improve DX (Developer Experience)
working on StackStorm, improve our security posture, and improve CI reliability thanks in part
to pants' use of PEX lockfiles. This is not a user-facing addition. #5713 #5724 #5726 #5725 #5732 #5733 #5737 #5738 #5758 #5751 #5774 #5776 #5777 #5782
Contributed by @cognifloyd
Changed
-
BREAKING CHANGE for anyone that uses
output_schema, which is disabled by default.
If you have[system].validate_output_schema = Truein st2.conf AND you have added
output_schemato any of your packs, then you must update your action metadata.output_schemamust be a full jsonschema now. If a schema is not well-formed, we ignore it.
Now,outputcan be types other than object such as list, bool, int, etc.
This also means that all of an action's output can be masked as a secret.To get the same behavior, you'll need to update your output schema.
For example, this schema:
output_schema:
property1:
type: bool
property2:
type: str
should be updated like this:
output_schema:
type: object
properties:
property1:
type: bool
property2:
type: str
additionalProperties: false
Contributed by @cognifloyd
-
Changed the
X-XSS-ProtectionHTTP header from1; mode=blockto0in theconf/nginx/st2.confto align with the OWASP security standards. #5298Contributed by @LiamRiddell
-
Use PEP 440 direct reference requirements instead of legacy PIP VCS requirements. Now, our
*.requirements.txtfiles use
package-name@ git+https://url@version ; markersinstead ofgit+https://url@version#egg=package-name ; markers. #5673
Contributed by @cognifloyd -
Move from udatetime to ciso8601 for date functionality ahead of supporting python3.9 #5692
Contributed by Amanda McGuinness (@amanda11 intive) -
Refactor tests to use python imports to identify test fixtures. #5699 #5702 #5703 #5704 #5705 #5706
Contributed by @cognifloyd -
Refactor
st2-generate-schemasso that logic is in an importable module. #5708
Contributed by @cognifloyd
Removed
- Removed st2exporter service. It is unmaintained and does not get installed. It was
originally meant to help with analytics by exporting executions as json files that
could be imported into something like elasticsearch. Our code is now instrumented
to make a wider variety of stats available to metrics drivers. #5676
Contributed by @cognifloyd
3.8.1 - December 13, 2023
https://stackstorm.com/2023/12/v3-8-1-released/
Fixed
-
Fix proxy auth mode in HA environments #5766 #6049
Contributed by @floatingstatic -
Fix issue with linux pack actions failed to run remotely due to incorrect python shebang. #5983 #6042
Contributed by Ronnie Hoffmann (@ZoeLeah Schwarz IT KG) -
Fix CI usses #6015
Contributed by Amanda McGuinness (@amanda11 intive) -
Bumped
paramikoto2.10.5to fix an issue with SSH Certs - paramiko/paramiko#2017 (security)
Contributed by @jk464 -
Avoid logging sensitive information in debug (fix #5977)
-
Fix codecov failures for stackstorm/st2 tests. #6035, #6046, #6048
-
Fix #4676, edge case where --inherit-env is skipped if the action has no parameters
-
Fix ST2 Client for Windows Clients. PWD is a Unix only Libary. #6071
Contributed by (@philipphomberger Schwarz IT KG) -
Fix Snyk Security Finding Cross-site Scripting (XSS) in contrib/examples/sensors/echo_flask_app.py #6070
Contributed by (@philipphomberger Schwarz IT KG) -
Update cryptography 3.4.7 -> 39.0.1, pyOpenSSL 21.0.0 -> 23.1.0, paramiko 2.10.5 -> 2.11.0 (security). #6055
-
Bumped
eventletto0.33.3andgunicornto21.2.0to fixRecursionErrorbug in settingSSLContextminimum_versionproperty. (security) #6061
Contributed by @jk464 -
Update orquesta to v1.6.0 to fix outdated dependencies (security). #6050
-
Fix KV value lookup in actions when RBAC is enabled #5934
-
Update version 3.1.15 of
gitpythonto 3.1.18 for py3.6 and to 3.1.37 for py3.8 (security). #6063 -
Update importlib-metadata from 3.10.1 to 4.8.3 for py3.6 and to 4.10.1 for py3.8 (security). #6072
Contributed by @jk464 -
For "local-shell-script" runner, on readonly filesystems, don't attempt to run chmod +x on script_action. Fixes #5591
Contributed by @jk464
Added
-
Move
git clonetouser_home/.st2packs#5845 -
Error on
st2ctl statuswhen running in Kubernetes. #5851
Contributed by @mamercad -
Continue introducing
pants <https://www.pantsbuild.org/docs>_ to improve DX (Developer Experience)
working on StackStorm, improve our security posture, and improve CI reliability thanks in part
to pants' use of PEX lockfiles. This is not a user-facing addition.
#5778 #5789 #5817 #5795 #5830 #5833 #5834 #5841 #5840 #5838 #5842 #5837 #5849 #5850
#5846 #5853 #5848 #5847 #5858 #5857 #5860 #5868 #5871 #5864 #5874 #5884 #5893 #5891
#5890 #5898 #5901 #5906 #5899 #5907 #5909 #5922 #5926 #5927 #5925 #5928 #5929 #5930
#5931 #5932 #5948 #5949 #5950
Contributed by @cognifloyd -
Added a joint index to solve the problem of slow mongo queries for scheduled executions. #5805
-
Added publisher to ActionAlias to enable streaming ActionAlias create/update/delete events. #5763
Contributed by @ubaumann -
Expose environment variable ST2_ACTION_DEBUG to all StackStorm actions.
Contributed by @maxfactor1 -
Python 3.9 support. #5730
Contributed by Amanda McGuinness (@amanda11 intive) -
Run the st2 self-check in Github Actions and support the environment variable
TESTS_TO_SKIPto skip tests when running st2-self-check. #5609
Contributed by @winem
Changed
- Remove
distutilsdependencies across the project. #5992
Contributed by @AndroxxTraxxon
https://stackstorm.com/2022/05/10/stackstorm-3-7-0-released/
3.7.0 - May 05, 2022
Added
-
Added st2 API get action parameters by ref. #5509
API endpoint/api/v1/actions/views/parameters/{action_id}acceptsref_or_id.
Contributed by @DavidMeu -
Enable setting ttl for MockDatastoreService. #5468
Contributed by @ytjohn -
Added st2 API and CLI command for actions clone operation.
API endpoint
/api/v1/actions/{ref_or_id}/clonetakesref_or_idof source action.Request method body takes destination pack and action name. Request method body also takes optional parameteroverwrite.overwrite = truein case of destination action already exists and to be overwritten.CLI command
st2 action clone <ref_or_id> <dest_pack> <dest_action>takes sourceref_or_id, destination pack name and destination action name as mandatory arguments. In case destination already exists then command takes optional argument-for--forceto overwrite destination action. #5345Contributed by @mahesh-orch.
-
Implemented RBAC functionality for existing
KEY_VALUE_VIEW, KEY_VALUE_SET, KEY_VALUE_DELETEand new permission typesKEY_VALUE_LIST, KEY_VALUE_ALL. RBAC is enabled in thest2.conffile. Access to a key value pair is checked in the KeyValuePair API controller. #5354
Contributed by @m4dcoder and @ashwini-orchestral -
Added service deregistration on shutdown of a service. #5396
Contributed by @khushboobhatia01 -
Added pysocks python package for SOCKS proxy support. #5460
Contributed by @kingsleyadam -
Added support for multiple LDAP hosts to st2-auth-ldap. #5535, StackStorm/st2-auth-ldap#100
Contributed by @ktyogurt -
Implemented graceful shutdown for action runner. Enabled
graceful_shutdowninst2.conffile. #5428
Contributed by @khushboobhatia01 -
Enhanced 'search' operator to allow complex criteria matching on payload items. #5482
Contributed by @erceth -
Added cancel/pause/resume requester information to execution context. #5554
Contributed by @khushboobhatia01 -
Added
trigger.headers_lowerto webhook trigger payload. This allows rules to match webhook triggers without dealing with the case-sensitive nature oftrigger.headers, astriggers.headers_lowerproviders the same headers, but with the header name lower cased. #5038
Contributed by @Rand01ph -
Added support to override enabled parameter of resources. #5506
Contributed by Amanda McGuinness (@amanda11 Intive) -
Add new
api.auth_cookie_secureandapi.auth_cookie_same_siteconfig options which specify values which are set forsecureandSameSiteattribute for the auth cookie we set when authenticating via token / api key in query parameter value (e.g. via st2web).For security reasons,
api.auth_cookie_securedefaults toTrue. This should only be changed toFalseif you have a valid reason to not run StackStorm behind HTTPs proxy.Default value for
api.auth_cookie_same_siteislax. If you want to disable this functionality so it behaves the same as in the previous releases, you can set that option toNone. -
Add new
st2 action-alias test <message string>CLI command which allows users to easily test action alias matching and result formatting.This command will first try to find a matching alias (same as
st2 action-alias matchcommand) and if a match is found, trigger an execution (same asst2 action-alias executecommand) and format the execution result.This means it uses exactly the same flow as commands on chat, but the interaction avoids chat and hubot which should make testing and developing aliases easier and faster. #5143
-
Add new
credentials.basic_auth = username:passwordCLI configuration option.This argument allows client to use additional set of basic auth credentials when talking to the StackStorm API endpoints (api, auth, stream) - that is, in addition to the token / api key native StackStorm auth.
This allows for simple basic auth based multi factor authentication implementation for installations which don't utilize SSO.
-
Add new audit message when a user has decrypted a key whether manually in the container (st2 key get [] --decrypt)
or through a workflow with a defined config. #5594
Contributed by @dmork123 -
Added garbage collection for rule_enforcement and trace models #5596/5602
Contributed by Amanda McGuinness (@amanda11 intive) -
Added garbage collection for workflow execution and task execution objects #4924
Contributed by @srimandaleeka01 and @amanda11
Changed
-
Minor updates for RockyLinux. #5552
Contributed by Amanda McGuinness (@amanda11 intive)
-
Bump black to v22.3.0 - This is used internally to reformat our python code. #5606
-
Updated paramiko version to 2.10.3 to add support for more key verification algorithms. #5600
Fixed
-
Fix deserialization bug in st2 API for url encoded payloads. #5536
Contributed by @sravs-dev -
Fix issue of WinRM parameter passing fails for larger scripts.#5538
Contributed by @ashwini-orchestral -
Fix Type error for
time_diffcritera comparison. convert the timediff value as float to matchtimedelta.total_seconds()return. #5462
Contributed by @blackstrip -
Fix issue with pack option not working when running policy list cli #5534
Contributed by @momokuri-3 -
Fix exception thrown if action parameter contains {{ or {% and no closing jinja characters. #5556
contributed by @guzzijones12 -
Link shutdown routine and sigterm handler to main thread #5555
Contributed by @khushboobhatia01 -
Change compound index for ActionExecutionDB to improve query performance #5568
Contributed by @khushboobhatia01 -
Fix build issue due to MarkUpSafe 2.1.0 removing soft_unicode
Contributed by Amanda McGuinness (@amanda11 intive) #5581 -
Fixed regression caused by #5358. Use string lock name instead of object ID. #5484
Contributed by @khushboobhatia01 -
Fix
st2-self-checkscript reporting falsey success when the nested workflows runs failed. #5487 -
Fix actions from the contrib/linux pack that fail on CentOS-8 but work on other operating systems and distributions. (bug fix) #4999 #5004
Reported by @blag and @dove-young contributed by @winem. -
Use byte type lock name which is supported by all tooz drivers. #5529
Contributed by @khushboobhatia01 -
Fixed issue where pack index searches are ignoring no_proxy #5497
Contributed by @minsis -
Fixed trigger references emitted by
linux.file_watch.line. #5467Prior to this patch multiple files could be watched but the rule reference of last registered file
would be used for all trigger emissions causing rule enforcement to fail. References are now tracked
on a per file basis and used in trigger emissions.Contributed by @nzlosh
-
Downgrade tenacity as tooz dependency on tenacity has always been < 7.0.0 #5607
Contributed by @khushboobhatia01 -
Pin
typing-extensions<4.2(used indirectly by st2client) to maintain python 3.6 support. #5638
@ Every self-hosted release, weekly
One Monday email with the week's stable releases across the directory.
More in Automation
Stirling-PDFStirling PDF is a self-hosted, open-source PDF editor with 60+ tools for editing, signing, redacting, converting, and automating PDFs. Runs via Docker or JAR.
StoneforgeSelf-hosted platform for running multiple AI coding agents with automatic task dispatch, worktree isolation, merge review, and a live dashboard.
subarrSelf-hosted open-source service coordinating subtitle coverage, audio-language verification, and Whisper transcription across Sonarr, Radarr, Bazarr, and subgen.
SuggestArrSelf-hosted, open-source automation that turns Plex, Jellyfin or Emby watch history into TMDb or LLM suggestions and files requests in Jellyseerr or Overseerr.
SuperAGIOpen-source, self-hosted framework for building, deploying and running autonomous AI agents, with a web GUI, action console, toolkits and multiple vector databases.
supercronicOpen-source, crontab-compatible job runner built for containers: env-var inheritance, stdout/stderr logging, graceful SIGTERM handling and second-resolution schedules.
sutandoSutando is a self-hosted, open-source AI agent for macOS using Claude Code or Codex CLI. Handles voice, calls, meetings, screen interaction, and self-improvement locally.
swarm-cronjobOpen-source, self-hosted cron scheduler for Docker Swarm that turns services into recurring jobs via labels, with automatic discovery and time-zone support.
syncarrSyncarr is a self-hosted, open-source Python tool that synchronizes media libraries between two Radarr, Sonarr, or Lidarr instances.
TdarrSelf-hosted Tdarr runs media library transcode and remux automation with FFmpeg or HandBrake across distributed nodes, with GPU workers, plugin stacks and a web UI.
terrateamOpen-source Terraform and OpenTofu orchestration that plans every pull request and applies on merge, self-hosted with Docker Compose against PostgreSQL.- Torrents ManagerA small Next.js web app that adjusts qBittorrent's max active uploads by time of day, with a per-day weekly schedule and manual override, self-hosted via Docker Compose.


0 comments