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

malformed xbar.var format (name needs VAR_ prefix) #656

Closed
picatz opened this issue Mar 20, 2021 · 4 comments
Closed

malformed xbar.var format (name needs VAR_ prefix) #656

picatz opened this issue Mar 20, 2021 · 4 comments
Labels

Comments

@picatz
Copy link

picatz commented Mar 20, 2021

After updating to the latest version, I ran into 7c935c5 which impacted a Vault xbar plugin I've been tinkering with. The plugin still worked, but the plugin page in the xbar app now throws an error due to a malformed format. The plugin continued to function thanks to the JSON config saved on disk from the old version, but I can no longer edit the value from the app because the variables don't have the VAR_ prefix.

# <xbar.var>string(VAULT_ADDR="http://localhost:8200"): Vault address.</xbar.var>
# <xbar.var>string(VAULT_TOKEN=""): Vault API token.</xbar.var>
# <xbar.var>string(VAULT_CACERT=""): Full path to the Vault CA cert.</xbar.var>
# <xbar.var>string(VAULT_CLIENT_CERT=""): Full path to the Vault client cert.</xbar.var>
# <xbar.var>string(VAULT_CLIENT_KEY=""): Full path to the Vault client key.</xbar.var>

Screen Shot 2021-03-20 at 7 00 54 PM

These environment variables were helpful/easy as a plugin developer, since they are naturally supported by the vault binary on the system.

🤔 Would it make sense to continue supporting setting any environment variables from the config as a feature?

@matryer
Copy link
Owner

matryer commented Mar 21, 2021

@picatz I think you're right. The VAR_ prefix was supposed to prevent clashes but maybe we can trust plugin developers a little more than this. I'll remove this constraint.

@matryer
Copy link
Owner

matryer commented Mar 22, 2021

@picatz please try the latest release and let me know how that is for you.

@picatz
Copy link
Author

picatz commented Mar 22, 2021

Works with the latest release ( v2.0.33-beta ). Thank you!

@picatz picatz closed this as completed Mar 22, 2021
@matryer
Copy link
Owner

matryer commented Mar 22, 2021

No @picatz thank you.

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

No branches or pull requests

2 participants