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

Support specifying credentials via a path #124

Open
preslavgerchev opened this issue Jul 30, 2024 · 0 comments
Open

Support specifying credentials via a path #124

preslavgerchev opened this issue Jul 30, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@preslavgerchev
Copy link
Contributor

Is your feature request related to a problem? Please describe.
A follow-up to #78, we should provide a way to specify the Mondoo creds via a file (path). currently, the mondoo creds are only supported by specifying them directly as a JSON input.

We should update the provider to support both:

provider "mondoo" {
  region = "us"
  credentials = "{....}" // if set, we read this
  credentials_path = "/tmp/mondoo-creds" // if set, we read this
}

We need to only define behaviour when both are specified. Do we throw an error or do we have a defined order of precedence?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant