turbot / steampipe-plugin-jira

Use SQL to instantly query Jira. Open source CLI. No DB required.
https://hub.steampipe.io/plugins/turbot/jira
Apache License 2.0
22 stars 14 forks source link

Connection configuration is not available through env variables #74

Closed vm-diegocruz closed 1 year ago

vm-diegocruz commented 1 year ago

Describe the bug To add the connection configuration using env variables is not available as in other plugins, the documentation only defines through the jira.spc. Environment variables should be an option.

Steampipe version (steampipe -v) v0.17.4

Plugin version (steampipe plugin list) v0.8.0

To reproduce The documentation is not defining the env variables available to be exported, also, there is no reference in the code docs.

Expected behavior Passing the configuration (base_url, username and password) using env variables should be an option like in other plugins like AWS, Azure, GCP, Github, etc.

e-gineer commented 1 year ago

Adding support for environment variables is fairly straight forward if anyone would like to attempt it:

  1. Choose env var names similar to those used in other Jira applications / terraform / etc.
  2. Update this function to grab the env var data. See this function as an example to follow.
  3. Update the docs/index.md to detail the env var settings.
github-actions[bot] commented 1 year ago

'This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.'

cbruno10 commented 1 year ago

Removing stale label to keep the issue available as a good first issue.

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.