v3.7.0
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}/clone
takesref_or_id
of source action.Request method body takes destination pack and action name. Request method body also takes optional parameteroverwrite
.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 sourceref_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. #5345Contributed by @mahesh-orch.
-
Implemented RBAC functionality for existing
KEY_VALUE_VIEW, KEY_VALUE_SET, KEY_VALUE_DELETE
and new permission typesKEY_VALUE_LIST, KEY_VALUE_ALL
. RBAC is enabled in thest2.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, StackStorm/st2-auth-ldap#100
Contributed by @ktyogurt -
Implemented graceful shutdown for action runner. Enabled
graceful_shutdown
inst2.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 oftrigger.headers
, astriggers.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
andapi.auth_cookie_same_site
config options which specify values which are set forsecure
andSameSite
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 toTrue
. This should only be changed toFalse
if you have a valid reason to not run StackStorm behind HTTPs proxy.Default value for
api.auth_cookie_same_site
islax
. 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 match
command) and if a match is found, trigger an execution (same asst2 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
-
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.
-
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 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-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
. #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