Skip to content

Commit

Permalink
pkg/config: Update binary configs
Browse files Browse the repository at this point in the history
Change-Id: Idf2a91124f842ed2083d8d81b74be4540b4b7a07
  • Loading branch information
dlamarmorgan committed Aug 6, 2024
1 parent a1b3138 commit 550b134
Show file tree
Hide file tree
Showing 6 changed files with 401 additions and 31 deletions.
5 changes: 5 additions & 0 deletions pkg/config/authservice.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ func authserviceConfig() []Option {
Description: "comma separated list of public urls for the server TLS certificates (e.g. https://auth.example.com,https://auth.us1.example.com)",
Default: "",
},
{
Name: "STORJ_RETRIEVE_PUBLIC_PROJECT_ID",
Description: "retrieve and store public project ID when registering access grant",
Default: "true",
},
{
Name: "STORJ_CERT_MAGIC_ENABLED",
Description: "use CertMagic to handle TLS certificates",
Expand Down
10 changes: 10 additions & 0 deletions pkg/config/linksharing.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,16 @@ func linksharingConfig() []Option {
Description: "",
Default: "",
},
{
Name: "STORJ_HANDLER_ASSETS",
Description: "",
Default: "",
},
{
Name: "STORJ_HANDLER_DYNAMIC_ASSETS",
Description: "",
Default: "",
},
{
Name: "STORJ_HANDLER_URLBASES",
Description: "",
Expand Down
135 changes: 125 additions & 10 deletions pkg/config/satellite-admin.go
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,21 @@ func satelliteadminConfig() []Option {
Description: "max bucket count for a project.",
Default: "100",
},
{
Name: "STORJ_METAINFO_SUCCESS_TRACKER_KIND",
Description: "success tracker kind, bitshift or percent",
Default: "percent",
},
{
Name: "STORJ_METAINFO_SUCCESS_TRACKER_TICK_DURATION",
Description: "how often to bump the generation in the node success tracker",
Default: "10m",
},
{
Name: "STORJ_METAINFO_SUCCESS_TRACKER_TRUSTED_UPLINKS",
Description: "list of trusted uplinks for success tracker",
Default: "",
},
{
Name: "STORJ_METAINFO_SERVER_SIDE_COPY",
Description: "enable code for server-side copy, deprecated. please leave this to true.",
Expand All @@ -506,6 +521,11 @@ func satelliteadminConfig() []Option {
Description: "switch to iterator based implementation.",
Default: "false",
},
{
Name: "STORJ_METAINFO_NODE_ALIAS_CACHE_FULL_REFRESH",
Description: "node alias cache does a full refresh when a value is missing",
Default: "false",
},
{
Name: "STORJ_METAINFO_USE_BUCKET_LEVEL_OBJECT_VERSIONING",
Description: "enable the use of bucket level object versioning",
Expand All @@ -516,11 +536,36 @@ func satelliteadminConfig() []Option {
Description: "list of projects which will have UseBucketLevelObjectVersioning feature flag enabled",
Default: "",
},
{
Name: "STORJ_METAINFO_USE_BUCKET_LEVEL_OBJECT_LOCK",
Description: "enable the use of bucket-level Object Lock",
Default: "false",
},
{
Name: "STORJ_METAINFO_USE_BUCKET_LEVEL_OBJECT_LOCK_PROJECTS",
Description: "list of project IDs for which bucket-level Object Lock functionality is enabled",
Default: "",
},
{
Name: "STORJ_METAINFO_TEST_LISTING_QUERY",
Description: "test the new query for non-recursive listing",
Default: "false",
},
{
Name: "STORJ_METAINFO_TEST_COMMIT_SEGMENT_MODE",
Description: "which code path use for commit segment step, empty means default. Other options: transaction, no-pending-object-check",
Default: "",
},
{
Name: "STORJ_METAINFO_TEST_OPTIMIZED_INLINE_OBJECT_UPLOAD",
Description: "enables optimization for uploading objects with single inline segment",
Default: "false",
},
{
Name: "STORJ_METAINFO_TESTING_PRECOMMIT_DELETE_MODE",
Description: "which code path to use for precommit delete step for unversioned objects, 1 is the default (old) code path.",
Default: "1",
},
{
Name: "STORJ_ORDERS_ENCRYPTION_KEYS_DEFAULT_ID",
Description: "",
Expand Down Expand Up @@ -1251,11 +1296,6 @@ func satelliteadminConfig() []Option {
Description: "whether to use idempotency for create/update requests",
Default: "false",
},
{
Name: "STORJ_PAYMENTS_STRIPE_COIN_PAYMENTS_ENABLE_FREE_TRIAL_LOGIC",
Description: "whether to use users upgrade time and skip free tier status in billing process",
Default: "false",
},
{
Name: "STORJ_PAYMENTS_STRIPE_COIN_PAYMENTS_RETRIES_INITIAL_BACKOFF",
Description: "the duration of the first retry interval",
Expand Down Expand Up @@ -1591,6 +1631,11 @@ func satelliteadminConfig() []Option {
Description: "whether new application setup flow should be used",
Default: "false",
},
{
Name: "STORJ_CONSOLE_NO_LIMITS_UI_ENABLED",
Description: "whether to show unlimited-limits UI for pro users",
Default: "false",
},
{
Name: "STORJ_CONSOLE_OAUTH_CODE_EXPIRY",
Description: "how long oauth authorization codes are issued for",
Expand Down Expand Up @@ -1716,11 +1761,6 @@ func satelliteadminConfig() []Option {
Description: "indicates whether invitation emails can be sent to unregistered email addresses",
Default: "true",
},
{
Name: "STORJ_CONSOLE_CONFIG_FREE_TIER_INVITES_ENABLED",
Description: "indicates whether free tier users can send project invitations",
Default: "false",
},
{
Name: "STORJ_CONSOLE_CONFIG_USER_BALANCE_FOR_UPGRADE",
Description: "amount of base units of US micro dollars needed to upgrade user's tier status",
Expand Down Expand Up @@ -1786,6 +1826,21 @@ func satelliteadminConfig() []Option {
Description: "indicates if billing information tab should be enabled",
Default: "false",
},
{
Name: "STORJ_CONSOLE_CONFIG_SATELLITE_MANAGED_ENCRYPTION_ENABLED",
Description: "indicates whether satellite managed encryption projects can be created.",
Default: "false",
},
{
Name: "STORJ_CONSOLE_CONFIG_EMAIL_CHANGE_FLOW_ENABLED",
Description: "whether change user email flow is enabled",
Default: "false",
},
{
Name: "STORJ_CONSOLE_CONFIG_SELF_SERVE_ACCOUNT_DELETE_ENABLED",
Description: "whether self-serve account delete flow is enabled",
Default: "false",
},
{
Name: "STORJ_CONSOLE_CONFIG_USAGE_LIMITS_STORAGE_FREE",
Description: "the default free-tier storage usage limit",
Expand Down Expand Up @@ -2141,6 +2196,21 @@ func satelliteadminConfig() []Option {
Description: "whether to exclude storjscan-paying users from automatic warn/freeze",
Default: "false",
},
{
Name: "STORJ_ACCOUNT_FREEZE_EMAILS_ENABLED",
Description: "whether to freeze event emails from this chore",
Default: "false",
},
{
Name: "STORJ_ACCOUNT_FREEZE_BILLING_WARNING_EMAIL_INTERVALS",
Description: "how long to wait between the billing freeze warning emails",
Default: "240h,96h",
},
{
Name: "STORJ_ACCOUNT_FREEZE_BILLING_FREEZE_EMAIL_INTERVALS",
Description: "how long to wait between the billing freeze emails",
Default: "720h,480h,216h",
},
{
Name: "STORJ_VERSION_CLIENT_CONFIG_SERVER_ADDRESS",
Description: "server address to check its version against",
Expand Down Expand Up @@ -2301,6 +2371,21 @@ func satelliteadminConfig() []Option {
Description: "the default timeout for the hubspot http client",
Default: "10s",
},
{
Name: "STORJ_ANALYTICS_HUB_SPOT_EVENT_PREFIX",
Description: "the prefix for the event name",
Default: "",
},
{
Name: "STORJ_ANALYTICS_HUB_SPOT_SIGNUP_FORM_ID",
Description: "the hubspot form ID for signup",
Default: "",
},
{
Name: "STORJ_ANALYTICS_HUB_SPOT_LIFE_CYCLE_STAGE",
Description: "the hubspot lifecycle stage for new accounts",
Default: "",
},
{
Name: "STORJ_ANALYTICS_PLAUSIBLE_DOMAIN",
Description: "the domain set up on plausible for the satellite",
Expand Down Expand Up @@ -2331,6 +2416,36 @@ func satelliteadminConfig() []Option {
Description: "whether to enable durability report (rangedloop observer)",
Default: "true",
},
{
Name: "STORJ_KEY_MANAGEMENT_KEY_INFOS_VALUES",
Description: "",
Default: "",
},
{
Name: "STORJ_KEY_MANAGEMENT_DEFAULT_MASTER_KEY",
Description: "the key ID to use for passphrase encryption.",
Default: "1",
},
{
Name: "STORJ_KEY_MANAGEMENT_TEST_MASTER_KEY",
Description: "[DEPRECATED] For testing, use --kms.mock-client and --kms.key-infos. A fake master key to be used for the purpose of testing.",
Default: "",
},
{
Name: "STORJ_KEY_MANAGEMENT_MOCK_CLIENT",
Description: "whether to use mock google secret manager service.",
Default: "",
},
{
Name: "STORJ_HEALTH_CHECK_ENABLED",
Description: "Whether the health check server is enabled",
Default: "false",
},
{
Name: "STORJ_HEALTH_CHECK_ADDRESS",
Description: "The address to listen on for health check server",
Default: ":10500",
},
{
Name: "STORJ_TAG_AUTHORITIES",
Description: "comma-separated paths of additional cert files, used to validate signed node tags",
Expand Down
Loading

0 comments on commit 550b134

Please sign in to comment.