Commit Graph

70 Commits

Author SHA1 Message Date
Paweł Żak c4dbe65732
chore(linters): Bump golangci-lint to v1.56.1 (#14759) 2024-02-12 23:26:10 +01:00
Paweł Żak ae7fbc5082
chore(linters): Replace 'fmt.Errorf' with 'errors.New' wherever possible (#14698) 2024-02-08 11:32:30 -06:00
Paweł Żak 3786cf2d72
chore(linters): Enable equalFold, preferStringWriter, and stringXbytes checkers for gocritic. (#14452) 2023-12-15 06:25:10 -07:00
Paweł Żak 8fbea28ab3
chore(linters): Fix findings found by testifylint: expected-actual (#14229) 2023-11-01 14:09:55 -06:00
Paweł Żak 34ae468a8c
chore(linters): Fix findings found by testifylint: len (#14203) 2023-10-31 10:29:53 +01:00
Paweł Żak 97f47c11dd
chore(linters): Fix findings found by testifylint: empty (#14179) 2023-10-25 15:09:13 -06:00
r3inbowari 19c4316694
chore: Update README.md (#12989) 2023-04-04 13:43:49 +02:00
Joshua Powers 3415cc8c80
chore: Fix gosec G102 issues (#12923) 2023-03-28 11:40:29 +02:00
Paweł Żak e2a510f157
chore: Fix linter findings for errorlint (part7) (#12772)
Co-authored-by: Pawel Zak <Pawel Zak>
2023-03-03 10:11:54 +01:00
Thomas Casteleyn 6a2f6f301f
chore: eliminate unnecessary use of quoted strings in printf (#12722) 2023-02-23 06:49:36 -07:00
Joshua Powers 29916dfee0
test(inputs.x509_cert): fix missing tag (#12720) 2023-02-22 07:33:34 -07:00
Sven Rebhan d1d9737da6
feat(inputs.x509_cert): Add tag for certificate type-classification (#12656) 2023-02-22 13:39:15 +01:00
Jarno Huuskonen 54c091977c
feat(inputs.x509_cert): Add OCSP stapling information for leaf certificates (#10550) (#12444)
Co-authored-by: Josh Powers <powersj@fastmail.com>
2023-02-17 09:47:54 +01:00
Sven Rebhan ff89b7778b
fix(inputs.x509_cert): Fix Windows path handling (#12629) 2023-02-13 09:22:39 +01:00
Paweł Żak e84bc0c590
chore: clean up import shadowing issues (#12588) 2023-02-01 11:21:38 -07:00
Sven Rebhan 6f33711c38
chore(inputs.x509_cert): fix linter warning (#12577) 2023-01-31 12:05:05 -07:00
Thomas Casteleyn 61523bd4b9
feat(tools/readme_linter): Check for global configuration section (#12426) 2023-01-12 16:55:21 +01:00
Sven Rebhan d9820bfd7b
fix(inputs.x509_cert): fix off-by-one when adding intermediate certificates (#12404) 2022-12-15 07:52:36 -07:00
Sven Rebhan d3eec6166a
chore(inputs.x509_cert): Cleanup code (#12250) 2022-11-18 16:23:07 +01:00
Sven Rebhan 404c0475d0
docs(inputs.x509_cert): Add documentation for 'exclude_root_certs' option. (#12249) 2022-11-16 06:37:13 -07:00
Paweł Żak b98a76372a
chore: wrap long lines in plugins/inputs/[t-z]* (#12218) 2022-11-10 11:41:43 -07:00
Joshua Powers 49ac03fa80
docs: add global configuration header (#12107) 2022-10-26 14:58:36 -05:00
Sebastian Spaink d67f75e557
docs: Remove warning not to remove go:embed (#11797)
Co-authored-by: Joshua Powers <powersj@fastmail.com>
2022-09-13 12:47:58 -05:00
Sven Rebhan 7bd9c91ebe
fix(inputs.x509): Multiple sources with non-overlapping DNS entries. (#11613) 2022-08-05 12:54:23 -06:00
Sebastian Spaink 6700f0ba49
docs: Sync sample.conf for recent features (#11348) 2022-06-22 08:01:56 -05:00
Alexander Krantz 65a60855a0
feat(x509_cert): add proxy support (#9319) 2022-06-21 15:50:06 -05:00
Joshua Powers 3f65217f5e
test: mark integration tests correctly (#11317) 2022-06-16 14:10:11 -06:00
skillor 05285a1fdb
feat(inputs.x509_cert): add smtp protocol (#11271)
Co-authored-by: dreiekk <dreiekk@users.noreply.github.com>
2022-06-15 11:46:26 -05:00
reimda f7aab29381
chore: Fix readme linter errors for input plugins M-Z (#11274) 2022-06-08 15:22:56 -06:00
Joshua Powers 2fc19fa308
chore: correctly spell embed (#11200) 2022-05-27 07:13:47 -06:00
Sven Rebhan 56eb914998
chore: Embed sample configurations into README for inputs (#11136) 2022-05-24 08:49:47 -05:00
Joshua Powers deb0c6e207
test: update mongodb output to use test containers (#11137) 2022-05-19 14:14:02 -06:00
Sebastian Spaink 0f5dc9946c
chore(inputs_m-z): migrate sample configs into separate files (#11133) 2022-05-18 11:31:34 -05:00
Sebastian Spaink b355be5ccb
feat: migrate input plugins to new sample config format (M-Z) (#10926) 2022-04-11 16:32:25 -05:00
Jarno Huuskonen e906698bba
feat: add exclude_root_certs option to x509_cert plugin (#9822) 2021-12-22 13:39:36 -07:00
Sebastian Spaink 68233c5934
fix: mark TestGatherUDPCert as an integration test (#10279) 2021-12-15 18:48:18 -06:00
Mya 7d3531a29b
chore: clean up markdown lint errors input plugins w to z (#10166) 2021-11-24 11:50:22 -07:00
Paweł Żak 146fff3183
fix: Linter fixes for plugins/inputs/[t-z]* (#10105) 2021-11-18 07:22:43 -07:00
Eng Zer Jun 6a3b27126a
refactor: move from io/ioutil to io and os package (#9811) 2021-09-28 15:16:32 -06:00
Alexander Krantz 32d4234ae4
Prevent x509_cert from hanging on UDP connection (#9323) 2021-07-22 17:44:36 -07:00
Sven Rebhan d63a7010d9
Fix messing up the 'source' tag for https sources. (#9400) 2021-06-22 13:45:03 -05:00
Jarno Huuskonen ac9bf5a0ec
Fix x509_cert input plugin SNI support (#9289) 2021-06-22 11:41:45 -05:00
Sven Rebhan 9853bf6c54
Get rid of deprecated internal.{Duration,Size,Number} (#8969) 2021-04-09 13:15:04 -04:00
Sven Rebhan 8e7da355b3
Linter fixes (unhandled errors) -- Part 1 (#8992) 2021-04-08 11:43:39 -05:00
Paweł Żak 099ccda3f9
Linter fixes - gosimple (#9046) 2021-03-25 13:57:01 -04:00
jaroug b2b361356e
Wildcard support for x509_cert files (#6952)
* Accept standard unix glob matching rules

* comply with indentation

* update readme

* move globing expand and url parsing into Init()

* chore: rebase branch on upstream master

* rename refreshFilePaths to expandFilePaths
* expandFilePaths handles '/path/to/*.pem' and 'files:///path/to/*.pem'
* update sample config

* fix: recompile files globing pattern at every gather tic

 * add var globFilePathsToUrls to stack files path
 * add var globpaths to stack compiled globpath
 * rework sourcesToURLs to compile files path and stack them
 * rename expandFilePaths to expandFilePathsToUrls
 * rework expandFilePathsToUrls to only match compiled globpath
 * rework the `Gather` ticker to match globpath at each call

* fix: comply with requested changes

 * add specifics regarding relative paths in sample config
 * add logger and use it in expandFilePathsToUrls()
 * precompile glob for `files://`, `/` and `://`

* fix: update README to match last changes

* fix: comply with last requested changes

 * rename expandFilePathsToUrls() to collectCertURLs()
 * collectCertURLs() now returns []*url.URL to avoid extra field
globFilePathsToUrls in structure
 * update the Gather() ticker accordingly

* fix(windows): do not try to compile glopath for windows path as it's not supposed to be supported by the OS

* fix(ci): apply go fmt

* fix(ci): empty-lines/import-shadowing

Co-authored-by: Anthony LE BERRE <aleberre@vente-privee.com>
2021-03-23 17:31:15 -04:00
Paweł Żak 38c61c07ef
Revive fixes - part 4: (#8981)
empty-lines

Co-authored-by: Pawel Zak <Pawel Zak>
2021-03-12 14:21:51 -06:00
viperstars fe16d56a3e
inputs.x509_cert: Fix timeout issue (#8824)
* reproduce timeout issue #8809

* fix timeout issue #8809

* set default timeout to 5s

* closes #8809

Co-authored-by: 彭浩 <penghao@qiyi.com>
2021-02-16 12:11:53 -05:00
Helen Weller d41569caed
Integration test audit (#8725) 2021-01-26 11:06:12 -07:00
viperstars eda1dbc4dc
fix x509 cert timeout issue (#8741) 2021-01-26 13:02:23 -05:00