Skip to content

Commit d319e19

Browse files
committed
docs: add clear information about token requirement
1 parent 1e98107 commit d319e19

File tree

7 files changed

+41
-40
lines changed

7 files changed

+41
-40
lines changed

docs/docs/references/configuration/cli/trivy_config.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ trivy config [flags] DIR
1414
--cf-params strings specify paths to override the CloudFormation parameters files
1515
--check-namespaces strings Rego namespaces
1616
--checks-bundle-repository string OCI registry URL to retrieve checks bundle from (default "mirror.gcr.io/aquasec/trivy-checks:1")
17-
--cloud-api-url string API URL for Trivy Cloud platform (default "https://api.trivy.dev")
18-
--cloud-server-scanning Use server-side image scanning in Trivy Cloud platform (default true)
17+
--cloud-api-url string API URL for Trivy Cloud platform, requires the token to be provided to have an effect (default "https://api.trivy.dev")
18+
--cloud-server-scanning Use server-side image scanning in Trivy Cloud platform, requires the token to be provided to have an effect (default true)
1919
--cloud-token string Token used to athenticate with Trivy Cloud platform
20-
--cloud-trivy-server-url string Trivy Server URL for Trivy Cloud platform (default "https://scan.trivy.dev")
21-
--cloud-upload-results Upload results to Trivy Cloud platform (default true)
22-
--cloud-use-secret-config Use secret configurations from Trivy Cloud platform (default true)
20+
--cloud-trivy-server-url string Trivy Server URL for Trivy Cloud platform, requires the token to be provided to have an effect (default "https://scan.trivy.dev")
21+
--cloud-upload-results Upload results to Trivy Cloud platform, requires the token to be provided to have an effect (default true)
22+
--cloud-use-secret-config Use secret configurations from Trivy Cloud platform, requires the token to be provided to have an effect (default true)
2323
--compliance string compliance report to generate
2424
--config-check strings specify the paths to the Rego check files or to the directories containing them, applying config files
2525
--config-data strings specify paths from which data for the Rego checks will be recursively loaded

docs/docs/references/configuration/cli/trivy_filesystem.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ trivy filesystem [flags] PATH
2424
--cf-params strings specify paths to override the CloudFormation parameters files
2525
--check-namespaces strings Rego namespaces
2626
--checks-bundle-repository string OCI registry URL to retrieve checks bundle from (default "mirror.gcr.io/aquasec/trivy-checks:1")
27-
--cloud-api-url string API URL for Trivy Cloud platform (default "https://api.trivy.dev")
28-
--cloud-server-scanning Use server-side image scanning in Trivy Cloud platform (default true)
27+
--cloud-api-url string API URL for Trivy Cloud platform, requires the token to be provided to have an effect (default "https://api.trivy.dev")
28+
--cloud-server-scanning Use server-side image scanning in Trivy Cloud platform, requires the token to be provided to have an effect (default true)
2929
--cloud-token string Token used to athenticate with Trivy Cloud platform
30-
--cloud-trivy-server-url string Trivy Server URL for Trivy Cloud platform (default "https://scan.trivy.dev")
31-
--cloud-upload-results Upload results to Trivy Cloud platform (default true)
32-
--cloud-use-secret-config Use secret configurations from Trivy Cloud platform (default true)
30+
--cloud-trivy-server-url string Trivy Server URL for Trivy Cloud platform, requires the token to be provided to have an effect (default "https://scan.trivy.dev")
31+
--cloud-upload-results Upload results to Trivy Cloud platform, requires the token to be provided to have an effect (default true)
32+
--cloud-use-secret-config Use secret configurations from Trivy Cloud platform, requires the token to be provided to have an effect (default true)
3333
--compliance string compliance report to generate
3434
--config-check strings specify the paths to the Rego check files or to the directories containing them, applying config files
3535
--config-data strings specify paths from which data for the Rego checks will be recursively loaded

docs/docs/references/configuration/cli/trivy_image.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ trivy image [flags] IMAGE_NAME
3838
--cache-ttl duration cache TTL when using redis as cache backend
3939
--check-namespaces strings Rego namespaces
4040
--checks-bundle-repository string OCI registry URL to retrieve checks bundle from (default "mirror.gcr.io/aquasec/trivy-checks:1")
41-
--cloud-api-url string API URL for Trivy Cloud platform (default "https://api.trivy.dev")
42-
--cloud-server-scanning Use server-side image scanning in Trivy Cloud platform (default true)
41+
--cloud-api-url string API URL for Trivy Cloud platform, requires the token to be provided to have an effect (default "https://api.trivy.dev")
42+
--cloud-server-scanning Use server-side image scanning in Trivy Cloud platform, requires the token to be provided to have an effect (default true)
4343
--cloud-token string Token used to athenticate with Trivy Cloud platform
44-
--cloud-trivy-server-url string Trivy Server URL for Trivy Cloud platform (default "https://scan.trivy.dev")
45-
--cloud-upload-results Upload results to Trivy Cloud platform (default true)
46-
--cloud-use-secret-config Use secret configurations from Trivy Cloud platform (default true)
44+
--cloud-trivy-server-url string Trivy Server URL for Trivy Cloud platform, requires the token to be provided to have an effect (default "https://scan.trivy.dev")
45+
--cloud-upload-results Upload results to Trivy Cloud platform, requires the token to be provided to have an effect (default true)
46+
--cloud-use-secret-config Use secret configurations from Trivy Cloud platform, requires the token to be provided to have an effect (default true)
4747
--compliance string compliance report to generate (built-in compliance's: docker-cis-1.6.0)
4848
--config-check strings specify the paths to the Rego check files or to the directories containing them, applying config files
4949
--config-data strings specify paths from which data for the Rego checks will be recursively loaded

docs/docs/references/configuration/cli/trivy_repository.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ trivy repository [flags] (REPO_PATH | REPO_URL)
2424
--cf-params strings specify paths to override the CloudFormation parameters files
2525
--check-namespaces strings Rego namespaces
2626
--checks-bundle-repository string OCI registry URL to retrieve checks bundle from (default "mirror.gcr.io/aquasec/trivy-checks:1")
27-
--cloud-api-url string API URL for Trivy Cloud platform (default "https://api.trivy.dev")
28-
--cloud-server-scanning Use server-side image scanning in Trivy Cloud platform (default true)
27+
--cloud-api-url string API URL for Trivy Cloud platform, requires the token to be provided to have an effect (default "https://api.trivy.dev")
28+
--cloud-server-scanning Use server-side image scanning in Trivy Cloud platform, requires the token to be provided to have an effect (default true)
2929
--cloud-token string Token used to athenticate with Trivy Cloud platform
30-
--cloud-trivy-server-url string Trivy Server URL for Trivy Cloud platform (default "https://scan.trivy.dev")
31-
--cloud-upload-results Upload results to Trivy Cloud platform (default true)
32-
--cloud-use-secret-config Use secret configurations from Trivy Cloud platform (default true)
30+
--cloud-trivy-server-url string Trivy Server URL for Trivy Cloud platform, requires the token to be provided to have an effect (default "https://scan.trivy.dev")
31+
--cloud-upload-results Upload results to Trivy Cloud platform, requires the token to be provided to have an effect (default true)
32+
--cloud-use-secret-config Use secret configurations from Trivy Cloud platform, requires the token to be provided to have an effect (default true)
3333
--commit string pass the commit hash to be scanned
3434
--config-check strings specify the paths to the Rego check files or to the directories containing them, applying config files
3535
--config-data strings specify paths from which data for the Rego checks will be recursively loaded

docs/docs/references/configuration/cli/trivy_rootfs.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ trivy rootfs [flags] ROOTDIR
2727
--cf-params strings specify paths to override the CloudFormation parameters files
2828
--check-namespaces strings Rego namespaces
2929
--checks-bundle-repository string OCI registry URL to retrieve checks bundle from (default "mirror.gcr.io/aquasec/trivy-checks:1")
30-
--cloud-api-url string API URL for Trivy Cloud platform (default "https://api.trivy.dev")
31-
--cloud-server-scanning Use server-side image scanning in Trivy Cloud platform (default true)
30+
--cloud-api-url string API URL for Trivy Cloud platform, requires the token to be provided to have an effect (default "https://api.trivy.dev")
31+
--cloud-server-scanning Use server-side image scanning in Trivy Cloud platform, requires the token to be provided to have an effect (default true)
3232
--cloud-token string Token used to athenticate with Trivy Cloud platform
33-
--cloud-trivy-server-url string Trivy Server URL for Trivy Cloud platform (default "https://scan.trivy.dev")
34-
--cloud-upload-results Upload results to Trivy Cloud platform (default true)
35-
--cloud-use-secret-config Use secret configurations from Trivy Cloud platform (default true)
33+
--cloud-trivy-server-url string Trivy Server URL for Trivy Cloud platform, requires the token to be provided to have an effect (default "https://scan.trivy.dev")
34+
--cloud-upload-results Upload results to Trivy Cloud platform, requires the token to be provided to have an effect (default true)
35+
--cloud-use-secret-config Use secret configurations from Trivy Cloud platform, requires the token to be provided to have an effect (default true)
3636
--config-check strings specify the paths to the Rego check files or to the directories containing them, applying config files
3737
--config-data strings specify paths from which data for the Rego checks will be recursively loaded
3838
--config-file-schemas strings specify paths to JSON configuration file schemas to determine that a file matches some configuration and pass the schema to Rego checks for type checking

docs/docs/references/configuration/cli/trivy_vm.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ trivy vm [flags] VM_IMAGE
2424
--cache-backend string [EXPERIMENTAL] cache backend (e.g. redis://localhost:6379) (default "fs")
2525
--cache-ttl duration cache TTL when using redis as cache backend
2626
--checks-bundle-repository string OCI registry URL to retrieve checks bundle from (default "mirror.gcr.io/aquasec/trivy-checks:1")
27-
--cloud-api-url string API URL for Trivy Cloud platform (default "https://api.trivy.dev")
28-
--cloud-server-scanning Use server-side image scanning in Trivy Cloud platform (default true)
27+
--cloud-api-url string API URL for Trivy Cloud platform, requires the token to be provided to have an effect (default "https://api.trivy.dev")
28+
--cloud-server-scanning Use server-side image scanning in Trivy Cloud platform, requires the token to be provided to have an effect (default true)
2929
--cloud-token string Token used to athenticate with Trivy Cloud platform
30-
--cloud-trivy-server-url string Trivy Server URL for Trivy Cloud platform (default "https://scan.trivy.dev")
31-
--cloud-upload-results Upload results to Trivy Cloud platform (default true)
32-
--cloud-use-secret-config Use secret configurations from Trivy Cloud platform (default true)
30+
--cloud-trivy-server-url string Trivy Server URL for Trivy Cloud platform, requires the token to be provided to have an effect (default "https://scan.trivy.dev")
31+
--cloud-upload-results Upload results to Trivy Cloud platform, requires the token to be provided to have an effect (default true)
32+
--cloud-use-secret-config Use secret configurations from Trivy Cloud platform, requires the token to be provided to have an effect (default true)
3333
--compliance string compliance report to generate
3434
--config-file-schemas strings specify paths to JSON configuration file schemas to determine that a file matches some configuration and pass the schema to Rego checks for type checking
3535
--custom-headers strings custom headers in client mode

pkg/flag/cloud_flags.go

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,49 +16,50 @@ var (
1616
Name: "cloud-api-url",
1717
ConfigName: "cloud.api-url",
1818
Default: DefaultApiURL,
19-
Usage: "API URL for Trivy Cloud platform",
19+
Usage: "API URL for Trivy Cloud platform, requires the token to be provided to have an effect",
2020
TelemetrySafe: true,
2121
}
2222

2323
CloudTrivyServerURLFlag = Flag[string]{
2424
Name: "cloud-trivy-server-url",
2525
ConfigName: "cloud.trivy-server-url",
2626
Default: DefaultTrivyServerURL,
27-
Usage: "Trivy Server URL for Trivy Cloud platform",
27+
Usage: "Trivy Server URL for Trivy Cloud platform, requires the token to be provided to have an effect",
2828
TelemetrySafe: true,
2929
}
3030

3131
CloudUploadResultsFlag = Flag[bool]{
3232
Name: "cloud-upload-results",
3333
ConfigName: "cloud.upload-results",
3434
Default: true,
35-
Usage: "Upload results to Trivy Cloud platform",
35+
Usage: "Upload results to Trivy Cloud platform, requires the token to be provided to have an effect",
3636
TelemetrySafe: true,
3737
}
3838

3939
CloudSecretConfigFlag = Flag[bool]{
4040
Name: "cloud-use-secret-config",
4141
ConfigName: "cloud.use-secret-config",
4242
Default: true,
43-
Usage: "Use secret configurations from Trivy Cloud platform",
43+
Usage: "Use secret configurations from Trivy Cloud platform, requires the token to be provided to have an effect",
4444
TelemetrySafe: true,
4545
}
4646

4747
CloudUseServerSideScanningFlag = Flag[bool]{
4848
Name: "cloud-server-scanning",
4949
ConfigName: "cloud.server-scanning",
5050
Default: true,
51-
Usage: "Use server-side image scanning in Trivy Cloud platform",
51+
Usage: "Use server-side image scanning in Trivy Cloud platform, requires the token to be provided to have an effect",
5252
TelemetrySafe: true,
5353
}
5454
)
5555

5656
type CloudFlagGroup struct {
57-
CloudToken *Flag[string]
58-
CloudApiURL *Flag[string]
59-
CloudTrivyServerURL *Flag[string]
60-
CloudUploadResults *Flag[bool]
61-
CloudSecretConfig *Flag[bool]
57+
CloudToken *Flag[string]
58+
CloudApiURL *Flag[string]
59+
CloudTrivyServerURL *Flag[string]
60+
CloudUploadResults *Flag[bool]
61+
CloudSecretConfig *Flag[bool]
62+
6263
CloudUseServerSideScanning *Flag[bool]
6364
}
6465

0 commit comments

Comments
 (0)