Benjamin Yang and GitHub
c67775c1a0
feat: clean tokenization system implementation ( #1874 )
...
Core tokenization functionality with minimal file changes:
✅ Core Features:
- Intelligent tokenization engine (tokenizer.go)
- Context-aware secret classification (PASSWORD, APIKEY, DATABASE, etc.)
- Cross-file correlation with deterministic HMAC-SHA256 tokens
- Optional encrypted mapping for token→original value resolution
✅ Integration:
- CLI flags: --tokenize, --redaction-map, --encrypt-redaction-map
- Updated all redactor types: literal, single-line, multi-line, YAML
- Support bundle integration with auto-upload compatibility
- Backward compatibility: preserves ***HIDDEN*** when disabled
✅ Production Ready:
- Only 11 essential files (vs 31 in original PR)
- No excessive test files or documentation
- Clean build, all functionality verified
- Maintains existing redaction behavior by default
Token format: ***TOKEN_<TYPE>_<HASH>*** (e.g., ***TOKEN_PASSWORD_A1B2C3***)
2025-09-30 15:04:23 -05:00
9bca9c5245
chore(deps): bump github.com/distribution/distribution/v3 from 3.0.0-rc.3 to 3.0.0 ( #1771 )
...
* chore(deps): bump github.com/distribution/distribution/v3
Bumps [github.com/distribution/distribution/v3](https://github.com/distribution/distribution ) from 3.0.0-rc.3 to 3.0.0.
- [Release notes](https://github.com/distribution/distribution/releases )
- [Commits](https://github.com/distribution/distribution/compare/v3.0.0-rc.3...v3.0.0 )
---
updated-dependencies:
- dependency-name: github.com/distribution/distribution/v3
dependency-version: 3.0.0
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
* update go
* use constant format strings
* f
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Andrew Lavery <laverya@umich.edu >
2025-04-21 16:45:47 +00:00
Xav Paice and GitHub
86b7e54466
Revert "feat: save YAML spec used to generate support bundle/preflight" ( #1715 )
...
Revert "feat: save YAML spec used to generate support bundle/preflight (#1713 )"
This reverts commit f6f51acbd5 .
2025-01-06 09:42:58 +11:00
Gerard Nguyen and GitHub
f6f51acbd5
feat: save YAML spec used to generate support bundle/preflight ( #1713 )
...
* save YAML spec of support bundle
* save YAML spec of preflight
* add unit test
* redact TLS private key by default in output spec
* update YAML path for HTTP TLS redactor
2025-01-04 11:35:43 +11:00
Diamon Wiggins and GitHub
06506ed95d
Fix remote host collection RBAC checks ( #1672 )
...
* fix remote host collection rbac checks
* move saveNodeList into collectRemoteHost function
* fix resource attribute list and retrieve namespace from kubeconfig
* revert change to set a default namespace from kubeconfig
* remove duplicate code
2024-11-07 10:07:27 -05:00
Gerard Nguyen and GitHub
c1c4b612a4
feat: [sc-113128] Create node list file before running remote host collector ( #1632 )
...
* create node list
2024-10-01 14:43:24 +10:00
Dexter Yan and GitHub
e97b9613a5
feat(support-bundle): add runHostCollectorsInPod in spec ( #1608 )
2024-09-20 11:57:58 -05:00
Evans Mungai and GitHub
aea4f7c87c
feat: Optionally save preflight bundles to disk ( #1612 )
...
* feat: Optionally save preflight bundles to disk
Signed-off-by: Evans Mungai <evans@replicated.com >
* Add e2e test of saving preflight bundle
Signed-off-by: Evans Mungai <evans@replicated.com >
* Update cli docs
Signed-off-by: Evans Mungai <evans@replicated.com >
* Expose GetVersionFile function publicly
Signed-off-by: Evans Mungai <evans@replicated.com >
* Store analysis.json file in preflight bundle
Signed-off-by: Evans Mungai <evans@replicated.com >
* Run go fmt when running lint fixers
Signed-off-by: Evans Mungai <evans@replicated.com >
* Always generate a preflight bundle in CLI
Signed-off-by: Evans Mungai <evans@replicated.com >
* Print saving bundle message to stderr
Signed-off-by: Evans Mungai <evans@replicated.com >
* Revert changes in docs directory
Signed-off-by: Evans Mungai <evans@replicated.com >
* Use NewResult constructor
Signed-off-by: Evans Mungai <evans@replicated.com >
* Log always when preflight bundle is saved to disk
Signed-off-by: Evans Mungai <evans@replicated.com >
---------
Signed-off-by: Evans Mungai <evans@replicated.com >
2024-09-16 23:36:52 +01:00
Evans Mungai and GitHub
e4363a1e50
fix (supportbundle): Add default collectors when expected ( #1418 )
...
* fix (supportbundle): Add default collectors when expected
* Remove unnecessary change
* Add default collectors to a empty spec
* Add more tests
2024-01-08 11:32:04 +00:00
Evans Mungai and GitHub
e5e26eea14
fix(support-bundle): default in-cluster collectors in host support bundle ( #1394 )
...
* fix(support-bundle): default in-cluster collectors in host support bundle
Ensure cluster-resources and cluster-info collectors are present only
when a support bundle spec contains in-cluster collectors.
* Various improvements
* Improve error messages
* Util function appending elements to a nil slice that allows adding
specs to an empty slice of collectors/analysers/redactors
* Fix failing test
2023-11-27 18:33:02 +00:00
Evans Mungai and GitHub
15a4802cd2
feat: Add dry run flag to print support bundle specs to std out ( #1337 )
...
* Add dry-run flag
* No traces on dry run
* More refactoring
* More updates to support bundle binary
* More refactoring changes
* Different approach of loading specs from URIs
* Self review
* More changes after review and testing
* fix how we parse oci image uri
* Remove unnecessary comment
* Add missing file
* Fix failing tests
* Better error check for no collectors
* Add default collectors when parsing support bundle specs
* Add missed test fixture
* Download specs with correct headers
* Fix typo
2023-10-10 18:43:32 +01:00
Dexter Yan and GitHub
8fe5bffae4
feat(analyzer): remove duplicated analyzers ( #1056 )
...
feat(analyzer): add DedupAnalyzers
2023-03-22 11:45:41 -04:00
Evans Mungai and GitHub
546ffde14b
feat: use klog as the default logging library ( #1008 )
2023-02-24 18:24:51 +00:00
Evans Mungai and GitHub
100f9a13b6
feat: Record summary of execution times of support bundle operations (collect/redact/analyse) ( #935 )
...
When running a support bundle, we want to know how long each operation
(collect, redact, analyze) takes. This commit adds a new trace exporter
that records the start and end times of each operation, and then prints
a summary of the execution. The summary is also stored in the support
bundle.
Related to #923
2023-02-07 09:50:21 +00:00
yunju.lly and GitHub
1114902707
refactor: keep support bundle concat logic to be consistent with Preflight concat ( #1002 )
...
* refactor: keep support bundle concat logic to be consistent with Preflight
* test: add tests for support bundle spec concat function
2023-02-03 11:05:11 +00:00
Evans Mungai and GitHub
a523551da9
feat(redactors): Run redactors on an existing support bundle ( #887 )
...
* feat(redactors): Run redactors on an existing support bundle
Add redact subcommand to support-bundle to allow running redactors on an
existing bundle to creating a new redacted bundle.
The command will be launched like so
support-bundle redact <redactor urls> --bundle support-bundle.tar.gz
Fixes : #705
2023-01-03 18:05:15 +00:00
Evans Mungai and GitHub
fbbcf87405
feat(collectors): Store all pod logs in cluster-resources directory ( #821 )
...
* feat(collectors): Store all pod logs in cluster-resources directory
All pod logs collected by the logs collector will now be stored in
/cluster-resources/pods/logs/[namespace]/[pod]/[container].log. This
will provide consistency and allow sbctl to find the logs when we run
`kubectl logs <pod>`. To allow backwards compatibility, symlinks of the
log files will be created in the current expected locations.
Closes : #744
2022-11-22 07:10:34 +13:00
ada mancini and GitHub
eb40b9422f
implement uri: field ( #702 )
2022-10-05 15:35:55 +13:00
Dan Jones
b5a56e5239
Remove redundant loops
...
Signed-off-by: Dan Jones <danj@replicated.com >
2022-09-07 09:14:09 +01:00
Dan Jones
b6f8ac211e
Format
...
Signed-off-by: Dan Jones <danj@replicated.com >
2022-09-05 15:54:54 +01:00
Dan Jones
63510fc89d
Moved ConcatSpec to supportbundle package and clean up dead code
...
Signed-off-by: Dan Jones <danj@replicated.com >
2022-09-05 14:12:29 +01:00
Diamon Wiggins
114749d5b7
always attempt to generate a support bundle when host collectors exists
2022-07-30 18:57:24 -04:00
Diamon Wiggins
a1533d5ec5
adding host analyzers to kind analyzer and supportbundle
2022-07-06 12:19:44 -04:00
Diamon Wiggins and GitHub
cab3fc7f4e
Redact Host Collectors in Support Bundles ( #614 )
...
Add redactors for Host Collectors
2022-07-01 18:57:58 -04:00
diamonwiggins
17fe3db79f
adding host collectors to support bundles
2022-05-11 22:50:03 +00:00
Craig O'Donnell and GitHub
0a2ed01a46
improvement: added --output flag for preflight and support bundle ( #538 )
...
* improvement: added --output flag for preflight and support bundle
* improvement: added datetime to preflight default file name
2022-02-17 17:28:28 -05:00
111396eb39
fix: pass redact flag when running support-bundle ( #406 )
...
Co-authored-by: Salah Aldeen Al Saleh <sg.alsaleh@gmail.com >
2021-10-20 10:47:27 -07:00
divolgin
0e8bedc281
Save collector data to disk directly
2021-09-29 00:15:02 +00:00
Salah Aldeen Al Saleh and GitHub
465a533640
store analysis in the support bundle ( #417 )
...
* store analysis in the support bundle
2021-09-10 11:58:16 -07:00
Dan Stough
0dd24c702c
fix: use temp directory for storing bundles
2021-05-04 20:29:21 +00:00
Dan Stough
b8622a65ad
chore(support-bundle): refactor out support bundle pkg
2021-05-04 14:41:54 +00:00