Commit Graph

67 Commits (81f2efb96b1e3cad4132c31030519b3877acc465)

Author SHA1 Message Date
Martin Guibert dc58f94ce9
chore: extract enumeration to it's own submodule 2022-07-07 16:16:03 +02:00
sundowndev-snyk de675f21b7
fix: add date to serialized analysis
Some outputs need the scanning date, which is missing when the analysis is serialized. So there's an invalid date when outputing to HTML with the fmt command.
2022-04-08 10:56:15 +04:00
Elie 69b9702d5d
feat: add options in analysis serialization 2022-03-04 17:12:55 +01:00
sundowndev 981a2aa84f refactor(analyzer): ScanDuration field in analysis
Add omitempty struct tag, rename the field to ScanDuration for consistency and make it uint instead of int.
2022-03-04 17:56:53 +04:00
sundowndev 56d57afb57 feat: add scan_duration json field 2022-03-04 15:16:28 +04:00
sundowndev 3a9195258b feat: add total_iac_source_count json field 2022-03-04 14:43:16 +04:00
William Beuil d2cc564494
fix: deep at true when only-managed 2022-02-28 12:27:59 +01:00
William Beuil 3b9f6c6a99
feat: only-managed / only-unmanaged flags 2022-02-28 12:27:59 +01:00
Elie 3e550b6a68
chore: allow deserialise resource sources 2022-02-22 14:51:14 +01:00
sundowndev 117bd9bd90
Revert "refactor: avoid reading unmanaged resources"
This reverts commit 18eea35b4f.
2021-12-22 13:34:14 +04:00
sundowndev 18eea35b4f
refactor: avoid reading unmanaged resources 2021-12-14 19:03:23 +04:00
Elie 1cdccb0be0
Move to @snyk 2021-12-06 14:29:39 +01:00
Samuel Maftoul 572e39170e Change NewAnalysis signature to return a pointer, update occurences accordingly 2021-11-25 17:39:47 +01:00
Samuel Maftoul 972eddcd79 Introduce NewAnalysis(), use it in analyzer, update fakeAnalyzer accordingly 2021-11-25 15:12:14 +01:00
Samuel Maftoul 7476cfa081 fix: display out of sync drifts only in deep mode 2021-11-25 12:56:21 +01:00
Craig Furman 612118d646 gen-driftignore defaults to writing to a file
Users can still print to stdout by passing `-o -`.
2021-11-08 10:43:18 +00:00
sundowndev 1a063f1d41 feat: implement discriminant func 2021-10-15 16:52:45 +02:00
Elie e6557938e2
Add deep mode flag on resource schema 2021-09-20 10:33:13 +02:00
sundowndev 5f72640db0 refactor: normalize resource method names 2021-08-25 14:38:51 +02:00
Elie dada7a4b50
Remove `Resource` interface 2021-08-09 16:03:04 +02:00
Elie c1ea0a8067
Add source in JSON output 2021-08-04 14:29:48 +02:00
Martin Guibert 89d34eb96a add provider name and update tests 2021-07-29 11:57:07 +02:00
Martin Guibert fac05b70c3 show provider version in json and html report 2021-07-28 17:36:56 +02:00
Elie 4c824fb8ad
Move driftignore init outside driftctl 2021-07-26 14:27:07 +02:00
Elie 4f44039fb9
Split suppliers to add deep mode 2021-06-22 18:25:47 +02:00
Raphaël 9ead8d1523
Merge branch 'main' into feat/htmlOutput 2021-06-22 17:17:15 +02:00
Elie e0de54f30d
Add limitation link in computed field alert 2021-06-22 15:00:04 +02:00
sundowndev 76613149c1 refactor: add date to analysis struct 2021-06-21 14:44:54 +02:00
Elie b5c48dbbfc
Finished refacto 2021-05-31 18:46:20 +02:00
sundowndev 613f4cf556 feat: create gen-driftignore 2021-05-26 11:19:28 +02:00
Martin Guibert 11b412b9a2
migrate security_group_rules 2021-05-24 17:43:15 +02:00
sundowndev 0232696ace Revert "Merge pull request #433 from cloudskiff/feat/genDriftIgnore"
This reverts commit 829967170090f9825896df96a256ff88b84db529, reversing
changes made to 5e1f9f8746e2d05ec80a69096285dbd27dfa7423.
2021-05-10 15:02:42 +02:00
Elie 7d903fd6e9 Add analysis duration for telemetry 2021-05-10 15:02:41 +02:00
sundowndev 87ad272856 feat: create gen-driftignore 2021-05-10 14:45:44 +02:00
Martin Guibert 80687e5029
Add hybrid resource behavior 2021-04-23 17:07:35 +02:00
Raphaël b93ed4ef16
fix: rename total_drifted to total_changed 2021-04-13 17:19:30 +02:00
sundowndev 1924900e9a chore: fix conflicts with main branch 2021-04-13 14:55:10 +02:00
sundowndev 4f77dc4034 chore: use deep link in alert message 2021-04-13 14:47:08 +02:00
sundowndev c542a4063d refactor(analyser): rename total_drifted to total_changed 2021-04-13 14:40:07 +02:00
sundowndev b8113671d8 test(analyser): fix sorting in expected result 2021-04-13 14:02:50 +02:00
sundowndev a637de6f8c refactor: sort difference's changelogs 2021-04-13 14:02:50 +02:00
sundowndev fa9132f14c fix: resource diff sorting 2021-04-13 14:02:50 +02:00
sundowndev 753dd50286 test(analyser): enable slice ordering 2021-04-13 14:01:35 +02:00
sundowndev 01a637f494 refactor(cmd): rename deleted to missing in json output 2021-04-13 14:01:35 +02:00
sundowndev a348019115 chore: fix lint errors 2021-04-13 14:01:35 +02:00
Raphaël ff0ffcb5d7 fix(analyser): link to docs about limitations 2021-04-13 14:01:35 +02:00
William Beuil 0881b44577
Refactoring to filter on Cty.Value 2021-03-29 10:28:39 +02:00
sundowndev 06f7d4f110
test: analyser package 2021-03-22 12:08:53 +01:00
sundowndev b36fdaea1c
test: analyser package 2021-03-22 12:02:06 +01:00
sundowndev 7c7d24f76a
test: sorting resources by type & id 2021-03-22 11:35:23 +01:00