FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
stackrox/pkg/env/node_index.go at master · stackrox/stackrox · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
stackrox
/
stackrox
Public
Notifications
You must be signed in to change notification settings
Fork
191
Star
1.3k
Code
Issues
54
Pull requests
604
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
stackrox
/
pkg
/
env
/
node_index.go
Copy path
More file actions
More file actions
Latest commit
History
History
History
22 lines (20 loc) · 1.49 KB
Breadcrumbs
stackrox
/
pkg
/
env
/
node_index.go
Copy path
File metadata and controls
22 lines (20 loc) · 1.49 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package
env
import
"time"
var
(
// NodeIndexHostPath sets the path where the R/O host node filesystem is mounted to the container.
// that should be scanned by Scanners NodeIndexer
NodeIndexHostPath
=
RegisterSetting
(
"ROX_NODE_INDEX_HOST_PATH"
,
WithDefault
(
"/host"
))
// NodeIndexOSReleasePath sets the path where os-release can be found for RHCOS detection.
// This may differ from NodeIndexHostPath when the RPM database is mounted separately.
NodeIndexOSReleasePath
=
RegisterSetting
(
"ROX_NODE_INDEX_OSRELEASE_PATH"
,
WithDefault
(
"/host"
))
// NodeIndexMappingURL defines the endpoint for the RepositoryScanner to download mapping information from.
// If left empty, the URL will be computed based on Sensor's ROX_SENSOR_ENDPOINT (see SensorEndpointSetting).
// The default "https://sensor.stackrox.svc/scanner/definitions?file=repo2cpe" is not set here to not hardcode the namespace of Sensor.
NodeIndexMappingURL
=
RegisterSetting
(
"ROX_NODE_INDEX_MAPPING_URL"
,
AllowEmpty
())
// NodeIndexCacheDuration defines the time a cached node index will be considered fresh and served from file.
// Defaults to 75% of the default rescan interval.
NodeIndexCacheDuration
=
registerDurationSetting
(
"ROX_NODE_INDEX_CACHE_DURATION"
,
3
*
time
.
Hour
)
// NodeIndexCachePath defines the path to the file where the node index wrap cache will be written to.
// This path is expected to be writable inside the Compliance container.
NodeIndexCachePath
=
RegisterSetting
(
"ROX_NODE_INDEX_CACHE_PATH"
,
WithDefault
(
"/tmp/node-index"
))
)
Back
|
FazBrowse Home
|
New Git URL