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

Additional zrok config Options #224

Closed
michaelquigley opened this issue Feb 8, 2023 · 4 comments
Closed

Additional zrok config Options #224

michaelquigley opened this issue Feb 8, 2023 · 4 comments
Assignees
Labels
enhancement Enhancement of an existing feature
Milestone

Comments

@michaelquigley
Copy link
Collaborator

Incorporate additional zrok config options to allow additional personalization and customization of environment behaviors.

  • default parsing substitutions
  • headless mode
  • etc.
@michaelquigley michaelquigley added the enhancement Enhancement of an existing feature label Feb 8, 2023
@michaelquigley michaelquigley added this to the v0.4 milestone Feb 8, 2023
@qrkourier
Copy link
Member

This issue sounds like it might encompass what I'm looking for in zrok: flexibility in defining controller and frontend configuration. For example, providing a function or env var that returns a secret value instead of hard-coding the plaintext secret in the config file. This mitigates a variety of attacks and enables graceful secret rotation, e.g. the admin token, the ziti admin pw.

This isn't a blocker to deployment because I can still templatize the config YAML files and re-declare their contents with a configuration management system like Helm or Ansible.

Use case example: let's say I like to keep my secrets in AWS Secrets Manager or Hashicorp Vault. If zrok allowed me to provide a function instead of the plaintext secret, then I could provide an executable function that returns the correct secret value. zrok would invoke the function whenever it needs to cache the secret in memory.

@michaelquigley michaelquigley self-assigned this Feb 13, 2023
@qrkourier
Copy link
Member

I'll leave this link in case it helps. I stumbled across Viper, a Go library for flexible configuration.

@qrkourier
Copy link
Member

qrkourier commented Apr 5, 2023

Is there any alternative to storing the admin secret and ziti mgmt password in the config file in 0.4?

@qrkourier
Copy link
Member

My preference is to provide secrets to zrok as files, e.g.,

      influx:
          url:            http://influxdb.zrok.svc
          bucket:         zrok
          org:            zrok
          token_file:     /var/run/secrets/zrok.io/influxdb.admin-token

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement of an existing feature
Projects
Development

No branches or pull requests

2 participants