StackStorm v3.7.0 Release Notes
Release Date: 2022-05-05 // almost 2 years ago-
โ Added
* โ Added st2 API get action parameters by ref. #5509 API endpoint ``/api/v1/actions/views/parameters/{action_id}`` accepts ``ref_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}/clone`` takes ``ref_or_id`` of source action. Request method body takes destination pack and action name. Request method body also takes optional parameter ``overwrite``. ``overwrite = true`` in case of destination action already exists and to be overwritten. CLI command ``st2 action clone <ref_or_id> <dest_pack> <dest_action>`` takes source ``ref_or_id``, destination pack name and destination action name as mandatory arguments. In case destination already exists then command takes optional argument ``-f`` or ``--force`` to overwrite destination action. #5345 Contributed by @mahesh-orch. * Implemented RBAC functionality for existing ``KEY_VALUE_VIEW, KEY_VALUE_SET, KEY_VALUE_DELETE`` and new permission types ``KEY_VALUE_LIST, KEY_VALUE_ALL``. RBAC is enabled in the ``st2.conf`` file. 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, https://github.com/StackStorm/st2-auth-ldap/pull/100 Contributed by @ktyogurt * Implemented graceful shutdown for action runner. Enabled ``graceful_shutdown`` in ``st2.conf`` file. #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_lower` to webhook trigger payload. This allows rules to match webhook triggers without dealing with the case-sensitive nature of `trigger.headers`, as `triggers.headers_lower` providers 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_secure`` and ``api.auth_cookie_same_site`` config options which specify values which are set for ``secure`` and ``SameSite`` attribute 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_secure`` defaults to ``True``. This should only be changed to ``False`` if you have a valid reason to not run StackStorm behind HTTPs proxy. Default value for ``api.auth_cookie_same_site`` is ``lax``. If you want to disable this functionality so it behaves the same as in the previous releases, you can set that option to ``None``. #5248 Contributed by @Kami. * โ 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 match`` command) and if a match is found, trigger an execution (same as ``st2 action-alias execute`` command) 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 #5143 Contributed by @Kami. * โ Add new ``credentials.basic_auth = username:password`` CLI 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. #5152 Contributed by @Kami. * โ 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_diff`` critera comparison. convert the timediff value as float to match ``timedelta.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-check`` script 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``. #5467 Prior 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