Commit Graph

211 Commits

Author SHA1 Message Date
Mark Stemm 2caa1c9838 Return success on partial eof in NextBatch
If fetching a block of events stopped due to an eof, the old version
of NextBatch would return those events + an eof. This led to not
reading the last block of events at all.

Change this to return no error. Presumably, the next call to
NextBatch() would return EOF.

Signed-off-by: Mark Stemm <mark.stemm@gmail.com>
2022-01-26 16:00:27 -08:00
Leonardo Grasso f6b32ee762 update(cloudtrail): bump verstion to 0.2.2
Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
2022-01-24 12:57:12 +01:00
Mark Stemm 3762a4a2ab Fix off-by-one error in NextBatch
NextBatch is presented a long array of sdk.EventWriters and associates
events with them until the first error (which could include
eof/timeout).

If the last event results in an error, the loop would increment n,
then check the error, then return. n would be one bigger than
expected.

Fix this by checking for error + breaking inside the loop instead of
checking for error in the loop condition.

Signed-off-by: Mark Stemm <mark.stemm@gmail.com>
2022-01-24 12:57:12 +01:00
Jason Dellaluce d64038c8f6 update: improve readme contents
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
Co-authored-by: Leonardo Grasso <me@leonardograsso.com>
2022-01-21 12:32:04 +01:00
Jason Dellaluce 390ff303ab chore(readme): add badges
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
Co-authored-by: Leonardo Grasso <me@leonardograsso.com>
2022-01-21 12:32:04 +01:00
Jason Dellaluce 6d7483a41c update(registry): generate table selectively depending on content type
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
Co-authored-by: Leonardo Grasso <me@leonardograsso.com>
2022-01-21 12:32:04 +01:00
Jason Dellaluce 1195077d3a docs: update readme to explain repo contents and the plugin registry
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
Co-authored-by: Leonardo Grasso <me@leonardograsso.com>
2022-01-21 12:32:04 +01:00
Jason Dellaluce 679e2fadb9 update(registry): change the title level of generated table
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
2022-01-21 12:32:04 +01:00
poiana 4d25cf2ec5 docs(README.md): update plugin registry table
Signed-off-by: poiana <51138685+poiana@users.noreply.github.com>
2022-01-19 15:20:46 +01:00
Jason Dellaluce 3355519ca8 update(registry.yaml): improve documentation and add license fields
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
Co-authored-by: Leonardo Grasso <me@leonardograsso.com>
2022-01-19 15:15:47 +01:00
Jason Dellaluce fc5c3b4fa1 update(registry): support url and license in registry tool, add aestetic changes
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
Co-authored-by: Leonardo Grasso <me@leonardograsso.com>
2022-01-19 15:15:47 +01:00
Jason Dellaluce 519ff01c4b docs(plugins): update the license in every plugin
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
Co-authored-by: Leonardo Grasso <me@leonardograsso.com>
2022-01-19 15:15:47 +01:00
Jason Dellaluce a7c8160550 update(.github): add registry kind in PR template and unify plugins area
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
2022-01-19 14:34:46 +01:00
Jason Dellaluce 399a8f1bef chore(registry): fix spacing
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
2022-01-19 13:15:39 +01:00
Jason Dellaluce bc4537ec5e update(makefile): add check-registry as part of all target
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
2022-01-19 13:10:39 +01:00
Jason Dellaluce 8f726daeee update: remove build.sh from reposiroty
This is not needed anymore as the CI takes care of it.

Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
2022-01-19 13:10:39 +01:00
Jason Dellaluce 2c63387b89 update(.github): remove release note from PR template
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
2022-01-19 13:06:40 +01:00
Jason Dellaluce 8381b8156e update(plugins): bump version of all plugins
This is needed to rebuilt all the artifacts, so that the platform gets included in the names.

Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
Co-authored-by: Leonardo Grasso <me@leonardograsso.com>
2022-01-19 11:29:38 +01:00
Jason Dellaluce 70c55a37a6 update(makefile): include platform in artifacts name
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
Co-authored-by: Leonardo Grasso <me@leonardograsso.com>
2022-01-19 11:29:38 +01:00
Jason Dellaluce 5b8a558119 chore(registry): fix name column in source plugin table
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
2022-01-19 11:09:38 +01:00
Jason Dellaluce 65ca81e9da update(registry): update readme, run linter, update go sum
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
2022-01-19 11:09:38 +01:00
Andrea Bonanno b939aa7864 chore (README.MD) updates comment
Signed-off-by: Andrea Bonanno <andrea@bonanno.cloud>
Co-authored-by: Jason Dellaluce <jasondellaluce@gmail.com>
Co-authored-by: Leonardo Grasso <me@leonardograsso.com>
2022-01-19 11:09:38 +01:00
Andrea Bonanno 10cf7ea980 update (build/registry): reads reserverd sources names from registry.yaml
Signed-off-by: Andrea Bonanno <andrea@bonanno.cloud>
Co-authored-by: Jason Dellaluce <jasondellaluce@gmail.com>
Co-authored-by: Leonardo Grasso <me@leonardograsso.com>
2022-01-19 11:09:38 +01:00
Jason Dellaluce 2ac70d32de update(build/utils/version): adjust version tool with new plugin name regex
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
Co-authored-by: Leonardo Grasso <me@leonardograsso.com>
Co-authored-by: Andrea Bonanno <andrea@bonanno.cloud>
2022-01-19 11:09:38 +01:00
Jason Dellaluce 232556f077 update(build): include new registry tool in makefile
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
Co-authored-by: Leonardo Grasso <me@leonardograsso.com>
Co-authored-by: Andrea Bonanno <andrea@bonanno.cloud>
2022-01-19 11:09:38 +01:00
Jason Dellaluce a287105951 update(readme): adjust readme to new registry tool
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
Co-authored-by: Leonardo Grasso <me@leonardograsso.com>
Co-authored-by: Andrea Bonanno <andrea@bonanno.cloud>
2022-01-19 11:09:38 +01:00
Jason Dellaluce 1b80d95806 refactor: move registry to project root and re-implement registry tool in GO
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
Co-authored-by: Leonardo Grasso <me@leonardograsso.com>
Co-authored-by: Andrea Bonanno <andrea@bonanno.cloud>
2022-01-19 11:09:38 +01:00
Andrea Bonanno e53af9dd05 chore(README.md): changes reference to registry.yaml instead of PLUGINS-REGISTRY.md
Signed-off-by: Andrea Bonanno <andrea@bonanno.cloud>
2022-01-19 11:09:38 +01:00
Andrea Bonanno 4e20a8c406 update: re-generate readme
Signed-off-by: Andrea Bonanno <andrea@bonanno.cloud>
2022-01-19 11:09:38 +01:00
Andrea Bonanno d9b6fdb2be new(registry): add script for readme generation starting from a template
Signed-off-by: Andrea Bonanno <andrea@bonanno.cloud>
2022-01-19 11:09:38 +01:00
Andrea Bonanno 9c81922dc9 new(registry): add script for plugin table registry generation
Signed-off-by: Andrea Bonanno <andrea@bonanno.cloud>
2022-01-19 11:09:38 +01:00
Andrea Bonanno 3a070906f9 new(registry): add script for plugin id and source consistency check
Signed-off-by: Andrea Bonanno <andrea@bonanno.cloud>
2022-01-19 11:09:38 +01:00
Andrea Bonanno 8956b01f02 refactor(registry): move plugin registry in ad-hoc directory and reformat it to yaml
Signed-off-by: Andrea Bonanno <andrea@bonanno.cloud>
2022-01-19 11:09:38 +01:00
Gerald Combs e639c28fc3 Cloudtrail: Fixup some field display names.
Fix the ct.user.accountid and ct.request.policy names and expand the
s3.bytes name.

Signed-off-by: Gerald Combs <gerald@zing.org>
2022-01-19 10:24:38 +01:00
Federico Di Pierro a9cfad3811 build: moved to use plugin-sdk-cpp repository.
Signed-off-by: Federico Di Pierro <nierro92@gmail.com>

Co-authored-by: Leonardo Grasso <me@leonardograsso.com>
2022-01-18 14:45:03 +01:00
Jason Dellaluce c91c2cc72c update(dummy): bump plugin version to 0.2.0
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
2022-01-17 14:35:11 +01:00
Jason Dellaluce e200fde2c5 update(dummy): bump plugin version to 0.2.0
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
2022-01-17 14:35:11 +01:00
Jason Dellaluce e5e605a611 update(cloudtrail): bump plugin version to 0.2.0
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
2022-01-17 14:35:11 +01:00
Jason Dellaluce b00c6205ea update(plugins): bump Go SDK version in Go plugins to 0.1.0
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
2022-01-17 14:35:11 +01:00
Jason Dellaluce 90a3007acf fix(build): exclude `.` from build packages
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
Co-authored-by: Leonardo Grasso <me@leonardograsso.com>
2022-01-17 13:13:11 +01:00
Jason Dellaluce 50526edb73 update(dummy): support init config schema in dummy plugin
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
2022-01-17 12:12:01 +01:00
Jason Dellaluce 840689d93d update(cloudtrail): support init config schema in cloudtrail plugin
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
2022-01-17 12:12:01 +01:00
Jason Dellaluce fa6b7e55a8 build: remove debug flags from release go plugins
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
Co-authored-by: Leonardo Grasso <me@leonardograsso.com>
2022-01-17 11:36:01 +01:00
Leonardo Grasso ac90db1916 docs(release.md): add release instructions
Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
2022-01-17 11:36:01 +01:00
Jason Dellaluce 9d7001ed1c update(makefile): add rules for release builds
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
Co-authored-by: Leonardo Grasso <me@leonardograsso.com>
2022-01-17 11:36:01 +01:00
Jason Dellaluce fa68f4c5fc update(build/utils): apply defensive checks on user-controllable values
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
Co-authored-by: Leonardo Grasso <me@leonardograsso.com>
2022-01-17 11:36:01 +01:00
Jason Dellaluce b6a5b3bca0 chore(build/utils): create ad-hoc makefile for build/utils
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
Co-authored-by: Leonardo Grasso <me@leonardograsso.com>
2022-01-17 11:36:01 +01:00
Leonardo Grasso cf1c6b674d build(Makefile): new version mechanism for dev packages
Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
2022-01-17 11:36:01 +01:00
Leonardo Grasso 7e5e6464db chore(build/utils): version fallback
Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
2022-01-17 11:36:01 +01:00
Leonardo Grasso 1b924a112c build(utils): version checker
Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
2022-01-17 11:36:01 +01:00