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

feat(secretstores): Add http plugin #13150

Merged
merged 34 commits into from
May 24, 2023

Conversation

srebhan
Copy link
Member

@srebhan srebhan commented Apr 26, 2023

This PR adds a secret-store plugin to query secrets from a HTTP server. The data can be transmitted in an encrypted form if necessary.

@telegraf-tiger telegraf-tiger bot added the feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin label Apr 26, 2023
@srebhan srebhan changed the title feat(secretstores): Add `http plugin feat(secretstores): Add http plugin Apr 26, 2023
@srebhan srebhan requested a review from jdstrand April 26, 2023 20:23
Copy link
Contributor

@jdstrand jdstrand left a comment

Choose a reason for hiding this comment

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

In all, I think this looks good. I was asked to look at the AES options and they seem fine. I have quite a few comments, questions and suggestions inline. I mentioned a number of places where we lack test coverage and it would be nice to expand at least some of the tests for this.

@srebhan srebhan requested review from jdstrand and powersj May 16, 2023 19:32
@srebhan srebhan added the ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review. label May 16, 2023
Copy link
Contributor

@jdstrand jdstrand left a comment

Choose a reason for hiding this comment

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

Thanks for the updates and added tests! This is quite close. I think I answered the open questions. There's just a few places for 'wiping' strings by reassigning them something other than the token that I think would be a nice hardening measure.

@powersj powersj removed the ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review. label May 23, 2023
@powersj
Copy link
Contributor

powersj commented May 23, 2023

@srebhan re-assigning back to you, to go through Jamie's review

@powersj powersj removed their assignment May 23, 2023
@srebhan srebhan requested a review from jdstrand May 24, 2023 13:11
@srebhan
Copy link
Member Author

srebhan commented May 24, 2023

@jdstrand I wiped some more memory portions. I think we cannot do more here...

Copy link
Contributor

@jdstrand jdstrand left a comment

Choose a reason for hiding this comment

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

Thanks for the updates!

@srebhan srebhan added the ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review. label May 24, 2023
@telegraf-tiger
Copy link
Contributor

Download PR build artifacts for linux_amd64.tar.gz, darwin_amd64.tar.gz, and windows_amd64.zip.
Downloads for additional architectures and packages are available below.

🥳 This pull request decreases the Telegraf binary size by -8.98 % for linux amd64 (new size: 168.8 MB, nightly size 185.4 MB)

📦 Click here to get additional PR build artifacts

Artifact URLs

DEB RPM TAR GZ ZIP
amd64.deb aarch64.rpm darwin_amd64.tar.gz windows_amd64.zip
arm64.deb armel.rpm darwin_arm64.tar.gz windows_arm64.zip
armel.deb armv6hl.rpm freebsd_amd64.tar.gz windows_i386.zip
armhf.deb i386.rpm freebsd_armv7.tar.gz
i386.deb ppc64le.rpm freebsd_i386.tar.gz
mips.deb riscv64.rpm linux_amd64.tar.gz
mipsel.deb s390x.rpm linux_arm64.tar.gz
ppc64el.deb x86_64.rpm linux_armel.tar.gz
riscv64.deb linux_armhf.tar.gz
s390x.deb linux_i386.tar.gz
linux_mips.tar.gz
linux_mipsel.tar.gz
linux_ppc64le.tar.gz
linux_riscv64.tar.gz
linux_s390x.tar.gz

@srebhan srebhan assigned powersj and unassigned srebhan May 24, 2023
@powersj powersj merged commit 272add9 into influxdata:master May 24, 2023
@srebhan srebhan added this to the v1.27.0 milestone Jun 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin new plugin plugin/secretstores ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants