Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Unsupported cnspec configuration format (YAML) #71

Closed
afiune opened this issue Nov 17, 2024 · 0 comments · Fixed by #72
Closed

🐛 Unsupported cnspec configuration format (YAML) #71

afiune opened this issue Nov 17, 2024 · 0 comments · Fixed by #72
Assignees

Comments

@afiune
Copy link
Contributor

afiune commented Nov 17, 2024

The configuration file for cnspec can be provided in two formats, JSON and YAML.

https://mondoo.com/docs/cnspec/cnspec-adv-install/registration/

We currently only support JSON, we need to fix the signer to also load YAML files.

Acceptance Criteria

When creating a Mondoo client, we should be able to load the configuration file in YAML format.

@afiune afiune self-assigned this Nov 17, 2024
afiune added a commit that referenced this issue Nov 17, 2024
Closes #71

Signed-off-by: Salim Afiune Maya <afiune@mondoo.com>
afiune added a commit that referenced this issue Nov 17, 2024
Closes #71

Signed-off-by: Salim Afiune Maya <afiune@mondoo.com>
chris-rock pushed a commit that referenced this issue Nov 18, 2024
* 🐛 Load configuration files in YAML format

Closes #71

Signed-off-by: Salim Afiune Maya <afiune@mondoo.com>

* ↪️  swap yaml package to sigs.k8s.io/yaml

Signed-off-by: Salim Afiune Maya <afiune@mondoo.com>

---------

Signed-off-by: Salim Afiune Maya <afiune@mondoo.com>
afiune added a commit to mondoohq/terraform-provider-mondoo that referenced this issue Nov 19, 2024
Because of mondoohq/mondoo-go#71

Signed-off-by: Salim Afiune Maya <afiune@mondoo.com>
afiune added a commit to mondoohq/terraform-provider-mondoo that referenced this issue Nov 19, 2024
Because of mondoohq/mondoo-go#71

Signed-off-by: Salim Afiune Maya <afiune@mondoo.com>
chris-rock pushed a commit to mondoohq/terraform-provider-mondoo that referenced this issue Nov 19, 2024
* 🧹 update mondoo-go to loading YAML config files

Because of mondoohq/mondoo-go#71

Signed-off-by: Salim Afiune Maya <afiune@mondoo.com>

* 📝 fix typo

Signed-off-by: Salim Afiune Maya <afiune@mondoo.com>

---------

Signed-off-by: Salim Afiune Maya <afiune@mondoo.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant