sentry-cli 2.33.0__tar.gz → 2.33.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/Cargo.lock +188 -42
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/Cargo.toml +2 -2
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/PKG-INFO +1 -1
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/sentry_cli.egg-info/PKG-INFO +1 -1
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/sentry_cli.egg-info/SOURCES.txt +1 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/api/errors/api_error.rs +2 -2
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/api/mod.rs +5 -1
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/derive_parser.rs +3 -3
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/mod.rs +31 -9
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/config.rs +6 -2
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/utils/auth_token/auth_token_impl.rs +14 -19
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/utils/auth_token/mod.rs +5 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/utils/auth_token/org_auth_token.rs +6 -4
- sentry_cli-2.33.1/src/utils/auth_token/redacting.rs +66 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/utils/auth_token/test.rs +9 -27
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/utils/auth_token/user_auth_token.rs +5 -5
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/utils/file_upload.rs +16 -3
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/utils/sourcemaps.rs +15 -1
- sentry_cli-2.33.1/src/utils/value_parsers.rs +20 -0
- sentry_cli-2.33.0/src/utils/value_parsers.rs +0 -8
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/LICENSE +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/MANIFEST.in +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/README.md +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/build.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/pyproject.toml +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/sentry_cli.egg-info/dependency_links.txt +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/sentry_cli.egg-info/top_level.txt +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/setup.cfg +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/setup.py +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/api/connection_manager.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/api/data_types/chunking/artifact.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/api/data_types/chunking/compression.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/api/data_types/chunking/dif.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/api/data_types/chunking/file_state.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/api/data_types/chunking/hash_algorithm.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/api/data_types/chunking/mod.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/api/data_types/chunking/upload/capability.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/api/data_types/chunking/upload/mod.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/api/data_types/chunking/upload/options.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/api/data_types/mod.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/api/encoding.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/api/envelopes_api.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/api/errors/mod.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/api/errors/sentry_error.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/api/pagination.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/bashsupport.sh +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/bash_hook.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/debug_files/bundle_jvm.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/debug_files/bundle_sources.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/debug_files/check.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/debug_files/find.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/debug_files/mod.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/debug_files/print_sources.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/debug_files/upload.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/deploys/list.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/deploys/mod.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/deploys/new.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/events/list.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/events/mod.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/files/delete.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/files/list.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/files/mod.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/files/upload.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/info.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/issues/list.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/issues/mod.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/issues/mute.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/issues/resolve.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/issues/unresolve.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/login.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/monitors/list.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/monitors/mod.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/monitors/run.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/organizations/list.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/organizations/mod.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/projects/list.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/projects/mod.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/react_native/appcenter.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/react_native/gradle.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/react_native/mod.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/react_native/xcode.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/releases/archive.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/releases/delete.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/releases/finalize.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/releases/info.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/releases/list.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/releases/mod.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/releases/new.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/releases/propose_version.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/releases/restore.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/releases/set_commits.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/repos/list.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/repos/mod.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/send_envelope.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/send_event.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/send_metric/common_args.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/send_metric/distribution.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/send_metric/gauge.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/send_metric/increment.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/send_metric/mod.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/send_metric/set.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/sourcemaps/explain.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/sourcemaps/inject.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/sourcemaps/mod.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/sourcemaps/resolve.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/sourcemaps/upload.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/uninstall.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/update.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/upload_dif.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/upload_dsym.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/commands/upload_proguard.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/constants.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/main.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/utils/android.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/utils/appcenter.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/utils/args.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/utils/auth_token/error.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/utils/chunks.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/utils/cordova.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/utils/dif.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/utils/dif_upload.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/utils/event.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/utils/file_search.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/utils/formatting.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/utils/fs.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/utils/http.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/utils/logging.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/utils/metrics.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/utils/mod.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/utils/progress.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/utils/releases.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/utils/retry.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/utils/snapshots/sentry_cli__utils__vcs__generate_patch_default_twenty.snap +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/utils/snapshots/sentry_cli__utils__vcs__generate_patch_ignore_missing.snap +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/utils/snapshots/sentry_cli__utils__vcs__generate_patch_set_base.snap +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/utils/snapshots/sentry_cli__utils__vcs__generate_patch_set_previous_commit.snap +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/utils/snapshots/sentry_cli__utils__vcs__get_commits_from_git.snap +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/utils/sourcemaps/inject.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/utils/system.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/utils/ui.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/utils/update.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/utils/vcs.rs +0 -0
- {sentry_cli-2.33.0 → sentry_cli-2.33.1}/src/utils/xcode.rs +0 -0
|
@@ -49,6 +49,18 @@ dependencies = [
|
|
|
49
49
|
"version_check",
|
|
50
50
|
]
|
|
51
51
|
|
|
52
|
+
[[package]]
|
|
53
|
+
name = "ahash"
|
|
54
|
+
version = "0.8.11"
|
|
55
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
56
|
+
checksum = "e89da841a80418a9b391ebaea17f5c112ffaaa96f621d2c285b5174da76b9011"
|
|
57
|
+
dependencies = [
|
|
58
|
+
"cfg-if",
|
|
59
|
+
"once_cell",
|
|
60
|
+
"version_check",
|
|
61
|
+
"zerocopy",
|
|
62
|
+
]
|
|
63
|
+
|
|
52
64
|
[[package]]
|
|
53
65
|
name = "aho-corasick"
|
|
54
66
|
version = "1.1.3"
|
|
@@ -142,6 +154,15 @@ dependencies = [
|
|
|
142
154
|
"regex",
|
|
143
155
|
]
|
|
144
156
|
|
|
157
|
+
[[package]]
|
|
158
|
+
name = "arbitrary"
|
|
159
|
+
version = "1.3.2"
|
|
160
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
161
|
+
checksum = "7d5a26814d8dcb93b0e5a0ff3c6d80a8843bafb21b39e8e18a6f05471870e110"
|
|
162
|
+
dependencies = [
|
|
163
|
+
"derive_arbitrary",
|
|
164
|
+
]
|
|
165
|
+
|
|
145
166
|
[[package]]
|
|
146
167
|
name = "arrayvec"
|
|
147
168
|
version = "0.7.4"
|
|
@@ -629,6 +650,17 @@ dependencies = [
|
|
|
629
650
|
"powerfmt",
|
|
630
651
|
]
|
|
631
652
|
|
|
653
|
+
[[package]]
|
|
654
|
+
name = "derive_arbitrary"
|
|
655
|
+
version = "1.3.2"
|
|
656
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
657
|
+
checksum = "67e77553c4162a157adbf834ebae5b415acbecbeafc7a74b0e886657506a7611"
|
|
658
|
+
dependencies = [
|
|
659
|
+
"proc-macro2",
|
|
660
|
+
"quote",
|
|
661
|
+
"syn 2.0.68",
|
|
662
|
+
]
|
|
663
|
+
|
|
632
664
|
[[package]]
|
|
633
665
|
name = "difflib"
|
|
634
666
|
version = "0.4.0"
|
|
@@ -687,6 +719,17 @@ dependencies = [
|
|
|
687
719
|
"winapi 0.3.9",
|
|
688
720
|
]
|
|
689
721
|
|
|
722
|
+
[[package]]
|
|
723
|
+
name = "displaydoc"
|
|
724
|
+
version = "0.2.5"
|
|
725
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
726
|
+
checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0"
|
|
727
|
+
dependencies = [
|
|
728
|
+
"proc-macro2",
|
|
729
|
+
"quote",
|
|
730
|
+
"syn 2.0.68",
|
|
731
|
+
]
|
|
732
|
+
|
|
690
733
|
[[package]]
|
|
691
734
|
name = "dlv-list"
|
|
692
735
|
version = "0.3.0"
|
|
@@ -1003,20 +1046,20 @@ dependencies = [
|
|
|
1003
1046
|
|
|
1004
1047
|
[[package]]
|
|
1005
1048
|
name = "gimli"
|
|
1006
|
-
version = "0.
|
|
1049
|
+
version = "0.29.0"
|
|
1050
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1051
|
+
checksum = "40ecd4077b5ae9fd2e9e169b102c6c330d0605168eb0e8bf79952b256dbefffd"
|
|
1052
|
+
|
|
1053
|
+
[[package]]
|
|
1054
|
+
name = "gimli"
|
|
1055
|
+
version = "0.30.0"
|
|
1007
1056
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1008
|
-
checksum = "
|
|
1057
|
+
checksum = "e2e1d97fbe9722ba9bbd0c97051c2956e726562b61f86a25a4360398a40edfc9"
|
|
1009
1058
|
dependencies = [
|
|
1010
1059
|
"fallible-iterator 0.3.0",
|
|
1011
1060
|
"stable_deref_trait",
|
|
1012
1061
|
]
|
|
1013
1062
|
|
|
1014
|
-
[[package]]
|
|
1015
|
-
name = "gimli"
|
|
1016
|
-
version = "0.29.0"
|
|
1017
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1018
|
-
checksum = "40ecd4077b5ae9fd2e9e169b102c6c330d0605168eb0e8bf79952b256dbefffd"
|
|
1019
|
-
|
|
1020
1063
|
[[package]]
|
|
1021
1064
|
name = "git2"
|
|
1022
1065
|
version = "0.18.3"
|
|
@@ -1051,13 +1094,13 @@ dependencies = [
|
|
|
1051
1094
|
|
|
1052
1095
|
[[package]]
|
|
1053
1096
|
name = "goblin"
|
|
1054
|
-
version = "0.
|
|
1097
|
+
version = "0.8.2"
|
|
1055
1098
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1056
|
-
checksum = "
|
|
1099
|
+
checksum = "1b363a30c165f666402fe6a3024d3bec7ebc898f96a4a23bd1c99f8dbf3f4f47"
|
|
1057
1100
|
dependencies = [
|
|
1058
1101
|
"log",
|
|
1059
1102
|
"plain",
|
|
1060
|
-
"scroll 0.
|
|
1103
|
+
"scroll 0.12.0",
|
|
1061
1104
|
]
|
|
1062
1105
|
|
|
1063
1106
|
[[package]]
|
|
@@ -1066,7 +1109,7 @@ version = "0.12.3"
|
|
|
1066
1109
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1067
1110
|
checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888"
|
|
1068
1111
|
dependencies = [
|
|
1069
|
-
"ahash",
|
|
1112
|
+
"ahash 0.7.8",
|
|
1070
1113
|
]
|
|
1071
1114
|
|
|
1072
1115
|
[[package]]
|
|
@@ -1074,6 +1117,10 @@ name = "hashbrown"
|
|
|
1074
1117
|
version = "0.14.5"
|
|
1075
1118
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1076
1119
|
checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1"
|
|
1120
|
+
dependencies = [
|
|
1121
|
+
"ahash 0.8.11",
|
|
1122
|
+
"serde",
|
|
1123
|
+
]
|
|
1077
1124
|
|
|
1078
1125
|
[[package]]
|
|
1079
1126
|
name = "heck"
|
|
@@ -1219,6 +1266,7 @@ checksum = "168fb715dda47215e360912c096649d23d58bf392ac62f73919e831745e40f26"
|
|
|
1219
1266
|
dependencies = [
|
|
1220
1267
|
"equivalent",
|
|
1221
1268
|
"hashbrown 0.14.5",
|
|
1269
|
+
"serde",
|
|
1222
1270
|
]
|
|
1223
1271
|
|
|
1224
1272
|
[[package]]
|
|
@@ -1416,6 +1464,12 @@ dependencies = [
|
|
|
1416
1464
|
"scopeguard",
|
|
1417
1465
|
]
|
|
1418
1466
|
|
|
1467
|
+
[[package]]
|
|
1468
|
+
name = "lockfree-object-pool"
|
|
1469
|
+
version = "0.1.6"
|
|
1470
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1471
|
+
checksum = "9374ef4228402d4b7e403e5838cb880d9ee663314b0a900d5a6aabf0c213552e"
|
|
1472
|
+
|
|
1419
1473
|
[[package]]
|
|
1420
1474
|
name = "log"
|
|
1421
1475
|
version = "0.4.22"
|
|
@@ -2258,8 +2312,14 @@ name = "scroll"
|
|
|
2258
2312
|
version = "0.11.0"
|
|
2259
2313
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2260
2314
|
checksum = "04c565b551bafbef4157586fa379538366e4385d42082f255bfd96e4fe8519da"
|
|
2315
|
+
|
|
2316
|
+
[[package]]
|
|
2317
|
+
name = "scroll"
|
|
2318
|
+
version = "0.12.0"
|
|
2319
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2320
|
+
checksum = "6ab8598aa408498679922eff7fa985c25d58a90771bd6be794434c5277eab1a6"
|
|
2261
2321
|
dependencies = [
|
|
2262
|
-
"scroll_derive 0.
|
|
2322
|
+
"scroll_derive 0.12.0",
|
|
2263
2323
|
]
|
|
2264
2324
|
|
|
2265
2325
|
[[package]]
|
|
@@ -2275,15 +2335,24 @@ dependencies = [
|
|
|
2275
2335
|
|
|
2276
2336
|
[[package]]
|
|
2277
2337
|
name = "scroll_derive"
|
|
2278
|
-
version = "0.
|
|
2338
|
+
version = "0.12.0"
|
|
2279
2339
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2280
|
-
checksum = "
|
|
2340
|
+
checksum = "7f81c2fde025af7e69b1d1420531c8a8811ca898919db177141a85313b1cb932"
|
|
2281
2341
|
dependencies = [
|
|
2282
2342
|
"proc-macro2",
|
|
2283
2343
|
"quote",
|
|
2284
2344
|
"syn 2.0.68",
|
|
2285
2345
|
]
|
|
2286
2346
|
|
|
2347
|
+
[[package]]
|
|
2348
|
+
name = "secrecy"
|
|
2349
|
+
version = "0.8.0"
|
|
2350
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2351
|
+
checksum = "9bd1c54ea06cfd2f6b63219704de0b9b4f72dcc2b8fdef820be6cd799780e91e"
|
|
2352
|
+
dependencies = [
|
|
2353
|
+
"zeroize",
|
|
2354
|
+
]
|
|
2355
|
+
|
|
2287
2356
|
[[package]]
|
|
2288
2357
|
name = "security-framework-sys"
|
|
2289
2358
|
version = "2.11.0"
|
|
@@ -2353,7 +2422,7 @@ dependencies = [
|
|
|
2353
2422
|
|
|
2354
2423
|
[[package]]
|
|
2355
2424
|
name = "sentry-cli"
|
|
2356
|
-
version = "2.33.
|
|
2425
|
+
version = "2.33.1"
|
|
2357
2426
|
dependencies = [
|
|
2358
2427
|
"anyhow",
|
|
2359
2428
|
"anylog",
|
|
@@ -2405,6 +2474,7 @@ dependencies = [
|
|
|
2405
2474
|
"rstest",
|
|
2406
2475
|
"runas",
|
|
2407
2476
|
"rust-ini",
|
|
2477
|
+
"secrecy",
|
|
2408
2478
|
"semver 1.0.23",
|
|
2409
2479
|
"sentry",
|
|
2410
2480
|
"serde",
|
|
@@ -2414,7 +2484,6 @@ dependencies = [
|
|
|
2414
2484
|
"sourcemap",
|
|
2415
2485
|
"symbolic",
|
|
2416
2486
|
"tempfile",
|
|
2417
|
-
"testing_logger",
|
|
2418
2487
|
"thiserror",
|
|
2419
2488
|
"trycmd",
|
|
2420
2489
|
"unix-daemonize",
|
|
@@ -2424,7 +2493,7 @@ dependencies = [
|
|
|
2424
2493
|
"walkdir",
|
|
2425
2494
|
"which",
|
|
2426
2495
|
"winapi 0.3.9",
|
|
2427
|
-
"zip",
|
|
2496
|
+
"zip 0.6.6",
|
|
2428
2497
|
]
|
|
2429
2498
|
|
|
2430
2499
|
[[package]]
|
|
@@ -2590,6 +2659,12 @@ dependencies = [
|
|
|
2590
2659
|
"outref",
|
|
2591
2660
|
]
|
|
2592
2661
|
|
|
2662
|
+
[[package]]
|
|
2663
|
+
name = "simd-adler32"
|
|
2664
|
+
version = "0.3.7"
|
|
2665
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2666
|
+
checksum = "d66dc143e6b11c1eddc06d5c423cfc97062865baf299914ab64caa38182078fe"
|
|
2667
|
+
|
|
2593
2668
|
[[package]]
|
|
2594
2669
|
name = "similar"
|
|
2595
2670
|
version = "2.5.0"
|
|
@@ -2710,9 +2785,9 @@ checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292"
|
|
|
2710
2785
|
|
|
2711
2786
|
[[package]]
|
|
2712
2787
|
name = "symbolic"
|
|
2713
|
-
version = "12.
|
|
2788
|
+
version = "12.9.2"
|
|
2714
2789
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2715
|
-
checksum = "
|
|
2790
|
+
checksum = "85aabcf85c883278298596217d678c8d3ca256445d732eac59303ce04863c46f"
|
|
2716
2791
|
dependencies = [
|
|
2717
2792
|
"symbolic-common",
|
|
2718
2793
|
"symbolic-debuginfo",
|
|
@@ -2735,9 +2810,9 @@ dependencies = [
|
|
|
2735
2810
|
|
|
2736
2811
|
[[package]]
|
|
2737
2812
|
name = "symbolic-debuginfo"
|
|
2738
|
-
version = "12.
|
|
2813
|
+
version = "12.9.2"
|
|
2739
2814
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2740
|
-
checksum = "
|
|
2815
|
+
checksum = "abdc791ca87a69a5d09913d87f1e5ac95229be414ec0ff6c0fe2ddff6199f3b6"
|
|
2741
2816
|
dependencies = [
|
|
2742
2817
|
"debugid",
|
|
2743
2818
|
"dmsort",
|
|
@@ -2745,7 +2820,7 @@ dependencies = [
|
|
|
2745
2820
|
"elsa",
|
|
2746
2821
|
"fallible-iterator 0.3.0",
|
|
2747
2822
|
"flate2",
|
|
2748
|
-
"gimli 0.
|
|
2823
|
+
"gimli 0.30.0",
|
|
2749
2824
|
"goblin",
|
|
2750
2825
|
"lazy_static",
|
|
2751
2826
|
"nom",
|
|
@@ -2754,7 +2829,7 @@ dependencies = [
|
|
|
2754
2829
|
"parking_lot",
|
|
2755
2830
|
"pdb-addr2line",
|
|
2756
2831
|
"regex",
|
|
2757
|
-
"scroll 0.
|
|
2832
|
+
"scroll 0.12.0",
|
|
2758
2833
|
"serde",
|
|
2759
2834
|
"serde_json",
|
|
2760
2835
|
"smallvec",
|
|
@@ -2762,14 +2837,15 @@ dependencies = [
|
|
|
2762
2837
|
"symbolic-ppdb",
|
|
2763
2838
|
"thiserror",
|
|
2764
2839
|
"wasmparser",
|
|
2765
|
-
"zip",
|
|
2840
|
+
"zip 2.1.1",
|
|
2841
|
+
"zstd 0.13.1",
|
|
2766
2842
|
]
|
|
2767
2843
|
|
|
2768
2844
|
[[package]]
|
|
2769
2845
|
name = "symbolic-il2cpp"
|
|
2770
|
-
version = "12.
|
|
2846
|
+
version = "12.9.2"
|
|
2771
2847
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2772
|
-
checksum = "
|
|
2848
|
+
checksum = "88cc2a0a415e3cb2dfb900f6f5b3abf5ccd356c236927b36b3d09046175acbde"
|
|
2773
2849
|
dependencies = [
|
|
2774
2850
|
"indexmap",
|
|
2775
2851
|
"serde_json",
|
|
@@ -2795,9 +2871,9 @@ dependencies = [
|
|
|
2795
2871
|
|
|
2796
2872
|
[[package]]
|
|
2797
2873
|
name = "symbolic-symcache"
|
|
2798
|
-
version = "12.
|
|
2874
|
+
version = "12.9.2"
|
|
2799
2875
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2800
|
-
checksum = "
|
|
2876
|
+
checksum = "1cb772d8bea63f0cc1cbb0690bbd3d955a27746e380954d7e1a30e88d7aaecd5"
|
|
2801
2877
|
dependencies = [
|
|
2802
2878
|
"indexmap",
|
|
2803
2879
|
"symbolic-common",
|
|
@@ -2863,15 +2939,6 @@ dependencies = [
|
|
|
2863
2939
|
"windows-sys 0.48.0",
|
|
2864
2940
|
]
|
|
2865
2941
|
|
|
2866
|
-
[[package]]
|
|
2867
|
-
name = "testing_logger"
|
|
2868
|
-
version = "0.1.1"
|
|
2869
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2870
|
-
checksum = "6d92b727cb45d33ae956f7f46b966b25f1bc712092aeef9dba5ac798fc89f720"
|
|
2871
|
-
dependencies = [
|
|
2872
|
-
"log",
|
|
2873
|
-
]
|
|
2874
|
-
|
|
2875
2942
|
[[package]]
|
|
2876
2943
|
name = "thiserror"
|
|
2877
2944
|
version = "1.0.61"
|
|
@@ -3208,12 +3275,16 @@ checksum = "af190c94f2773fdb3729c55b007a722abb5384da03bc0986df4c289bf5567e96"
|
|
|
3208
3275
|
|
|
3209
3276
|
[[package]]
|
|
3210
3277
|
name = "wasmparser"
|
|
3211
|
-
version = "0.
|
|
3278
|
+
version = "0.209.1"
|
|
3212
3279
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3213
|
-
checksum = "
|
|
3280
|
+
checksum = "07035cc9a9b41e62d3bb3a3815a66ab87c993c06fe1cf6b2a3f2a18499d937db"
|
|
3214
3281
|
dependencies = [
|
|
3282
|
+
"ahash 0.8.11",
|
|
3283
|
+
"bitflags 2.6.0",
|
|
3284
|
+
"hashbrown 0.14.5",
|
|
3215
3285
|
"indexmap",
|
|
3216
3286
|
"semver 1.0.23",
|
|
3287
|
+
"serde",
|
|
3217
3288
|
]
|
|
3218
3289
|
|
|
3219
3290
|
[[package]]
|
|
@@ -3505,6 +3576,32 @@ dependencies = [
|
|
|
3505
3576
|
"memchr",
|
|
3506
3577
|
]
|
|
3507
3578
|
|
|
3579
|
+
[[package]]
|
|
3580
|
+
name = "zerocopy"
|
|
3581
|
+
version = "0.7.35"
|
|
3582
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3583
|
+
checksum = "1b9b4fd18abc82b8136838da5d50bae7bdea537c574d8dc1a34ed098d6c166f0"
|
|
3584
|
+
dependencies = [
|
|
3585
|
+
"zerocopy-derive",
|
|
3586
|
+
]
|
|
3587
|
+
|
|
3588
|
+
[[package]]
|
|
3589
|
+
name = "zerocopy-derive"
|
|
3590
|
+
version = "0.7.35"
|
|
3591
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3592
|
+
checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e"
|
|
3593
|
+
dependencies = [
|
|
3594
|
+
"proc-macro2",
|
|
3595
|
+
"quote",
|
|
3596
|
+
"syn 2.0.68",
|
|
3597
|
+
]
|
|
3598
|
+
|
|
3599
|
+
[[package]]
|
|
3600
|
+
name = "zeroize"
|
|
3601
|
+
version = "1.8.1"
|
|
3602
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3603
|
+
checksum = "ced3678a2879b30306d323f4542626697a464a97c0a07c9aebf7ebca65cd4dde"
|
|
3604
|
+
|
|
3508
3605
|
[[package]]
|
|
3509
3606
|
name = "zip"
|
|
3510
3607
|
version = "0.6.6"
|
|
@@ -3522,7 +3619,38 @@ dependencies = [
|
|
|
3522
3619
|
"pbkdf2",
|
|
3523
3620
|
"sha1",
|
|
3524
3621
|
"time",
|
|
3525
|
-
"zstd",
|
|
3622
|
+
"zstd 0.11.2+zstd.1.5.2",
|
|
3623
|
+
]
|
|
3624
|
+
|
|
3625
|
+
[[package]]
|
|
3626
|
+
name = "zip"
|
|
3627
|
+
version = "2.1.1"
|
|
3628
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3629
|
+
checksum = "1dd56a4d5921bc2f99947ac5b3abe5f510b1be7376fdc5e9fce4a23c6a93e87c"
|
|
3630
|
+
dependencies = [
|
|
3631
|
+
"arbitrary",
|
|
3632
|
+
"crc32fast",
|
|
3633
|
+
"crossbeam-utils",
|
|
3634
|
+
"displaydoc",
|
|
3635
|
+
"flate2",
|
|
3636
|
+
"indexmap",
|
|
3637
|
+
"memchr",
|
|
3638
|
+
"thiserror",
|
|
3639
|
+
"zopfli",
|
|
3640
|
+
]
|
|
3641
|
+
|
|
3642
|
+
[[package]]
|
|
3643
|
+
name = "zopfli"
|
|
3644
|
+
version = "0.8.1"
|
|
3645
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3646
|
+
checksum = "e5019f391bac5cf252e93bbcc53d039ffd62c7bfb7c150414d61369afe57e946"
|
|
3647
|
+
dependencies = [
|
|
3648
|
+
"bumpalo",
|
|
3649
|
+
"crc32fast",
|
|
3650
|
+
"lockfree-object-pool",
|
|
3651
|
+
"log",
|
|
3652
|
+
"once_cell",
|
|
3653
|
+
"simd-adler32",
|
|
3526
3654
|
]
|
|
3527
3655
|
|
|
3528
3656
|
[[package]]
|
|
@@ -3531,7 +3659,16 @@ version = "0.11.2+zstd.1.5.2"
|
|
|
3531
3659
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3532
3660
|
checksum = "20cc960326ece64f010d2d2107537f26dc589a6573a316bd5b1dba685fa5fde4"
|
|
3533
3661
|
dependencies = [
|
|
3534
|
-
"zstd-safe",
|
|
3662
|
+
"zstd-safe 5.0.2+zstd.1.5.2",
|
|
3663
|
+
]
|
|
3664
|
+
|
|
3665
|
+
[[package]]
|
|
3666
|
+
name = "zstd"
|
|
3667
|
+
version = "0.13.1"
|
|
3668
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3669
|
+
checksum = "2d789b1514203a1120ad2429eae43a7bd32b90976a7bb8a05f7ec02fa88cc23a"
|
|
3670
|
+
dependencies = [
|
|
3671
|
+
"zstd-safe 7.1.0",
|
|
3535
3672
|
]
|
|
3536
3673
|
|
|
3537
3674
|
[[package]]
|
|
@@ -3544,6 +3681,15 @@ dependencies = [
|
|
|
3544
3681
|
"zstd-sys",
|
|
3545
3682
|
]
|
|
3546
3683
|
|
|
3684
|
+
[[package]]
|
|
3685
|
+
name = "zstd-safe"
|
|
3686
|
+
version = "7.1.0"
|
|
3687
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3688
|
+
checksum = "1cd99b45c6bc03a018c8b8a86025678c87e55526064e38f9df301989dce7ec0a"
|
|
3689
|
+
dependencies = [
|
|
3690
|
+
"zstd-sys",
|
|
3691
|
+
]
|
|
3692
|
+
|
|
3547
3693
|
[[package]]
|
|
3548
3694
|
name = "zstd-sys"
|
|
3549
3695
|
version = "2.0.11+zstd.1.5.6"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
authors = ["Armin Ronacher <armin.ronacher@active-4.com>"]
|
|
3
3
|
build = "build.rs"
|
|
4
4
|
name = "sentry-cli"
|
|
5
|
-
version = "2.33.
|
|
5
|
+
version = "2.33.1"
|
|
6
6
|
edition = "2021"
|
|
7
7
|
rust-version = "1.65"
|
|
8
8
|
|
|
@@ -80,6 +80,7 @@ zip = "0.6.4"
|
|
|
80
80
|
data-encoding = "2.3.3"
|
|
81
81
|
magic_string = "0.3.4"
|
|
82
82
|
chrono-tz = "0.8.4"
|
|
83
|
+
secrecy = "0.8.0"
|
|
83
84
|
|
|
84
85
|
[dev-dependencies]
|
|
85
86
|
insta = { version = "1.26.0", features = ["redactions", "yaml"] }
|
|
@@ -87,7 +88,6 @@ mockito = "0.31.1"
|
|
|
87
88
|
predicates = "2.1.5"
|
|
88
89
|
rstest = "0.18.2"
|
|
89
90
|
tempfile = "3.8.1"
|
|
90
|
-
testing_logger = "0.1.1"
|
|
91
91
|
trycmd = "0.14.11"
|
|
92
92
|
|
|
93
93
|
[features]
|
|
@@ -130,6 +130,7 @@ src/utils/auth_token/auth_token_impl.rs
|
|
|
130
130
|
src/utils/auth_token/error.rs
|
|
131
131
|
src/utils/auth_token/mod.rs
|
|
132
132
|
src/utils/auth_token/org_auth_token.rs
|
|
133
|
+
src/utils/auth_token/redacting.rs
|
|
133
134
|
src/utils/auth_token/test.rs
|
|
134
135
|
src/utils/auth_token/user_auth_token.rs
|
|
135
136
|
src/utils/snapshots/sentry_cli__utils__vcs__generate_patch_default_twenty.snap
|
|
@@ -24,9 +24,9 @@ pub(in crate::api) enum ApiErrorKind {
|
|
|
24
24
|
OrganizationNotFound,
|
|
25
25
|
#[error("resource not found")]
|
|
26
26
|
ResourceNotFound,
|
|
27
|
-
#[error("Project not found.
|
|
27
|
+
#[error("Project not found. Ensure that you configured the correct project and organization.")]
|
|
28
28
|
ProjectNotFound,
|
|
29
|
-
#[error("
|
|
29
|
+
#[error("Release not found. Ensure that you configured the correct release, project, and organization.")]
|
|
30
30
|
ReleaseNotFound,
|
|
31
31
|
#[error("chunk upload endpoint not supported by sentry server")]
|
|
32
32
|
ChunkUploadNotSupported,
|
|
@@ -37,6 +37,7 @@ use lazy_static::lazy_static;
|
|
|
37
37
|
use log::{debug, info, warn};
|
|
38
38
|
use parking_lot::Mutex;
|
|
39
39
|
use regex::{Captures, Regex};
|
|
40
|
+
use secrecy::ExposeSecret;
|
|
40
41
|
use sentry::protocol::{Exception, Values};
|
|
41
42
|
use serde::de::DeserializeOwned;
|
|
42
43
|
use serde::{Deserialize, Serialize};
|
|
@@ -1687,7 +1688,10 @@ impl ApiRequest {
|
|
|
1687
1688
|
}
|
|
1688
1689
|
Auth::Token(ref token) => {
|
|
1689
1690
|
debug!("using token authentication");
|
|
1690
|
-
self.with_header(
|
|
1691
|
+
self.with_header(
|
|
1692
|
+
"Authorization",
|
|
1693
|
+
&format!("Bearer {}", token.raw().expose_secret()),
|
|
1694
|
+
)
|
|
1691
1695
|
}
|
|
1692
1696
|
}
|
|
1693
1697
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
use crate::utils::auth_token::AuthToken;
|
|
2
|
-
use crate::utils::value_parsers::kv_parser;
|
|
3
|
-
use clap::{command,
|
|
2
|
+
use crate::utils::value_parsers::{auth_token_parser, kv_parser};
|
|
3
|
+
use clap::{command, ArgAction::SetTrue, Parser, Subcommand};
|
|
4
4
|
|
|
5
5
|
use super::send_metric::SendMetricArgs;
|
|
6
6
|
|
|
@@ -13,7 +13,7 @@ pub(super) struct SentryCLI {
|
|
|
13
13
|
#[arg(help = "Custom headers that should be attached to all requests{n}in key:value format")]
|
|
14
14
|
pub(super) headers: Vec<(String, String)>,
|
|
15
15
|
|
|
16
|
-
#[arg(global=true, long, value_parser=
|
|
16
|
+
#[arg(global=true, long, value_parser=auth_token_parser)]
|
|
17
17
|
#[arg(help = "Use the given Sentry auth token")]
|
|
18
18
|
pub(super) auth_token: Option<AuthToken>,
|
|
19
19
|
|
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
//! This module implements the root command of the CLI tool.
|
|
2
2
|
|
|
3
|
-
use std::env;
|
|
4
|
-
use std::io;
|
|
5
|
-
use std::process;
|
|
6
|
-
|
|
7
3
|
use anyhow::{bail, Result};
|
|
8
4
|
use clap::{value_parser, Arg, ArgAction, ArgMatches, Command};
|
|
9
5
|
use clap_complete::{generate, Generator, Shell};
|
|
10
6
|
use log::{debug, info, set_logger, set_max_level, LevelFilter};
|
|
7
|
+
use std::borrow::Cow;
|
|
8
|
+
use std::io;
|
|
9
|
+
use std::process;
|
|
10
|
+
use std::{env, iter};
|
|
11
11
|
|
|
12
12
|
use crate::api::Api;
|
|
13
13
|
use crate::config::{Auth, Config};
|
|
14
14
|
use crate::constants::{ARCH, PLATFORM, VERSION};
|
|
15
|
-
use crate::utils::auth_token::AuthToken;
|
|
15
|
+
use crate::utils::auth_token::{redact_token_from_string, AuthToken};
|
|
16
16
|
use crate::utils::logging::set_quiet_mode;
|
|
17
17
|
use crate::utils::logging::Logger;
|
|
18
18
|
use crate::utils::system::{init_backtrace, load_dotenv, print_error, QuietExit};
|
|
19
19
|
use crate::utils::update::run_sentrycli_update_nagger;
|
|
20
|
+
use crate::utils::value_parsers::auth_token_parser;
|
|
20
21
|
|
|
21
22
|
mod derive_parser;
|
|
22
23
|
|
|
@@ -81,6 +82,9 @@ const UPDATE_NAGGER_CMDS: &[&str] = &[
|
|
|
81
82
|
"sourcemaps",
|
|
82
83
|
];
|
|
83
84
|
|
|
85
|
+
/// The long auth token argument (--auth-token).
|
|
86
|
+
const AUTH_TOKEN_ARG: &str = "auth-token";
|
|
87
|
+
|
|
84
88
|
fn print_completions<G: Generator>(gen: G, cmd: &mut Command) {
|
|
85
89
|
generate(gen, cmd, cmd.get_name().to_string(), &mut io::stdout());
|
|
86
90
|
}
|
|
@@ -163,9 +167,9 @@ fn app() -> Command {
|
|
|
163
167
|
.arg(
|
|
164
168
|
Arg::new("auth_token")
|
|
165
169
|
.value_name("AUTH_TOKEN")
|
|
166
|
-
.long(
|
|
170
|
+
.long(AUTH_TOKEN_ARG)
|
|
167
171
|
.global(true)
|
|
168
|
-
.value_parser(
|
|
172
|
+
.value_parser(auth_token_parser)
|
|
169
173
|
.help("Use the given Sentry auth token."),
|
|
170
174
|
)
|
|
171
175
|
.arg(
|
|
@@ -280,8 +284,26 @@ pub fn execute() -> Result<()> {
|
|
|
280
284
|
info!(
|
|
281
285
|
"sentry-cli was invoked with the following command line: {}",
|
|
282
286
|
env::args()
|
|
283
|
-
|
|
284
|
-
.
|
|
287
|
+
// Check whether the previous argument is "--auth-token"
|
|
288
|
+
.zip(
|
|
289
|
+
iter::once(false)
|
|
290
|
+
.chain(env::args().map(|arg| arg == format!("--{AUTH_TOKEN_ARG}")))
|
|
291
|
+
)
|
|
292
|
+
.map(|(a, is_auth_token_arg)| {
|
|
293
|
+
let redact_replacement = "[REDACTED]";
|
|
294
|
+
|
|
295
|
+
// Redact anything that comes after --auth-token
|
|
296
|
+
let redacted = if is_auth_token_arg {
|
|
297
|
+
Cow::Borrowed(redact_replacement)
|
|
298
|
+
} else if a.starts_with(&format!("--{AUTH_TOKEN_ARG}=")) {
|
|
299
|
+
Cow::Owned(format!("--{AUTH_TOKEN_ARG}={redact_replacement}"))
|
|
300
|
+
} else {
|
|
301
|
+
redact_token_from_string(&a, redact_replacement)
|
|
302
|
+
};
|
|
303
|
+
|
|
304
|
+
format!("\"{redacted}\"")
|
|
305
|
+
})
|
|
306
|
+
.collect::<Vec<_>>()
|
|
285
307
|
.join(" ")
|
|
286
308
|
);
|
|
287
309
|
|
|
@@ -12,6 +12,7 @@ use ini::Ini;
|
|
|
12
12
|
use lazy_static::lazy_static;
|
|
13
13
|
use log::{debug, info, set_max_level, warn};
|
|
14
14
|
use parking_lot::Mutex;
|
|
15
|
+
use secrecy::ExposeSecret;
|
|
15
16
|
use sentry::types::Dsn;
|
|
16
17
|
|
|
17
18
|
use crate::constants::CONFIG_INI_FILE_PATH;
|
|
@@ -181,8 +182,11 @@ impl Config {
|
|
|
181
182
|
self.cached_base_url = token_url.to_string();
|
|
182
183
|
}
|
|
183
184
|
|
|
184
|
-
self.ini
|
|
185
|
-
|
|
185
|
+
self.ini.set_to(
|
|
186
|
+
Some("auth"),
|
|
187
|
+
"token".into(),
|
|
188
|
+
val.raw().expose_secret().clone(),
|
|
189
|
+
);
|
|
186
190
|
}
|
|
187
191
|
Some(Auth::Key(ref val)) => {
|
|
188
192
|
self.ini
|