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 hujson for ACL files #37

Merged
merged 1 commit into from
Aug 30, 2021
Merged

Support hujson for ACL files #37

merged 1 commit into from
Aug 30, 2021

Conversation

davidsbond
Copy link
Collaborator

This commit swaps all uses of encoding/json with tailscale/hujson. This allows users of the provider
to have a hujson file locally that contains all the features such as comments and trailing commas.

When the ACL is pushed to tailscale via the provider, the comments will be lost when encoding/decoding
is done into the ACL type. However, the source of truth for the ACL will be local along with the terraform
configuration files, so this should not be a problem.

Closes #17

Signed-off-by: David Bond davidsbond93@gmail.com

@davidsbond davidsbond added the enhancement New feature or request label Aug 30, 2021
@davidsbond davidsbond self-assigned this Aug 30, 2021
This commit swaps all uses of `encoding/json` with `tailscale/hujson`. This allows users of the provider
to have a hujson file locally that contains all the features such as comments and trailing commas.

When the ACL is pushed to tailscale via the provider, the comments will be lost when encoding/decoding
is done into the `ACL` type. However, the source of truth for the ACL will be local along with the terraform
configuration files, so this should not be a problem.

Closes #17

Signed-off-by: David Bond <davidsbond93@gmail.com>
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

Successfully merging this pull request may close these issues.

Support for both JSON and HuJSON ACL configuration
1 participant