constants

package
v0.16.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 19, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const SNYK_DEFAULT_ALLOWED_HOST_REGEXP = `^(https?://)?api(\.(.+))?\.(snyk|snykgov)\.io$`

SNYK_DEFAULT_ALLOWED_HOST_REGEXP is inert, no longer read anywhere in this module. It's internal (unreachable outside this repo), so it's kept only so the pkg/app default-registration wiring that still references it continues to compile; will be removed alongside the exported symbols it backs (CONFIG_KEY_ALLOWED_HOST_REGEXP, IsValidAuthHost) once those are confirmed unused downstream.

Deprecated: use SNYK_DEFAULT_ALLOWED_HOST_DOMAINS (with auth.CONFIG_KEY_ALLOWED_HOSTS) via auth.IsValidSnykHost instead.

View Source
const SNYK_DEFAULT_API_URL = "https://api.snyk.io"
View Source
const SNYK_DEFAULT_API_VERSION = "2024-04-22"
View Source
const SNYK_DEFAULT_IN_MEMORY_THRESHOLD_MB = 512 * 1024 * 1024
View Source
const SNYK_DOCS_ERROR_CATALOG_PATH = "/scan-with-snyk/error-catalog"
View Source
const SNYK_DOCS_URL = "https://docs.snyk.io"

Variables

View Source
var SNYK_DEFAULT_ALLOWED_HOST_DOMAINS = []string{"snyk.io", "snykgov.io"}

SNYK_DEFAULT_ALLOWED_HOST_DOMAINS is the default allowlist of registrable domains that an OAuth callback instance host is permitted to belong to.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL