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

Added support for base64 encoded remote config, fixes #162 #163

Merged
merged 10 commits into from
Sep 19, 2024

Conversation

RongDuJiKsp
Copy link
Contributor

Description

Added support for the configuration item remote_config_encoding. When the configuration item is "plain", it will not be processed. When the configuration item is "base64", it will attempt to base64 decoding of the subscription address.

Linked Issues

fixes #162

Additional context

This is my first PR.I tested my code ,but I don't know the workflow. If I am at fault, please correct me :)

@RongDuJiKsp RongDuJiKsp changed the title Added support for " remote_config_encoding",fixes #62 Added support for " remote_config_encoding",fixes #162 Sep 7, 2024
@spencerwooo
Copy link
Owner

spencerwooo commented Sep 11, 2024

Thank you for this contribution! I will need some time to review your changes. In the meantime, please adjust your PR according to the format/style checks in the CI. ❤️

@spencerwooo spencerwooo changed the title Added support for " remote_config_encoding",fixes #162 Added support for remote_config_encoding, fixes #162 Sep 11, 2024
@spencerwooo spencerwooo changed the title Added support for remote_config_encoding, fixes #162 Added support for base64 encoded remote config, fixes #162 Sep 18, 2024
src/utils.rs Outdated Show resolved Hide resolved
Copy link
Owner

@spencerwooo spencerwooo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Considering the base64 file decoding fails silently and keeps the original file intact, I would prefer removing the requirement for enabling the decoding via remote_config_encoding configuration option, and always apply the base64 decoding regardless of the file format.

Could you please remove any related logic and update this PR? Thanks. ❤️

@spencerwooo spencerwooo merged commit 0a89322 into spencerwooo:main Sep 19, 2024
1 check passed
@spencerwooo
Copy link
Owner

Thanks again for the effort 🤩

@RongDuJiKsp
Copy link
Contributor Author

❤️

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

Successfully merging this pull request may close these issues.

[Subscription] Support decoding after fetching config.
2 participants