mondoohq / cnquery

open source, cloud-native, graph-based asset inventory

Home Page:https://cnquery.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`sshd.config.blocks` doesn't return list types, splitting not possible

mm-weber opened this issue · comments

Describe the bug

For parse-ability those parameters should return lists instead of CSVs.

cnspec> sshd.config.blocks {params.Ciphers}
cnspec> sshd.config.blocks {params.KexAlgorithms}
cnspec> sshd.config.blocks {params.MACs}

image

Also, splitting the strings returns an error, so there's no workaround possible at the moment:

sshd.config.blocks {params.MACs.split(',')}

image

To Reproduce
Steps to reproduce the behavior:

Run the queries above

cnspec v10.3.0 (5ea8660, unknown)
cnquery v10.3.0 (8b8b0299, unknown)
os 10.2.0 with connectors: local, ssh, winrm, vagrant, container, docker, filesystem