15467: Added tests for KeepServices
[arvados.git] / lib / config / generated_config.go
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 package config
6
7 var DefaultYAML = []byte(`# Copyright (C) The Arvados Authors. All rights reserved.
8 #
9 # SPDX-License-Identifier: AGPL-3.0
10
11 # Do not use this file for site configuration. Create
12 # /etc/arvados/config.yml instead.
13 #
14 # The order of precedence (highest to lowest):
15 # 1. Legacy component-specific config files (deprecated)
16 # 2. /etc/arvados/config.yml
17 # 3. config.default.yml
18
19 Clusters:
20   xxxxx:
21     SystemRootToken: ""
22
23     # Token to be included in all healthcheck requests. Disabled by default.
24     # Server expects request header of the format "Authorization: Bearer xxx"
25     ManagementToken: ""
26
27     Services:
28
29       # In each of the service sections below, the keys under
30       # InternalURLs are the endpoints where the service should be
31       # listening, and reachable from other hosts in the cluster.
32       SAMPLE:
33         InternalURLs:
34           "http://example.host:12345": {}
35           SAMPLE: {}
36         ExternalURL: "-"
37
38       RailsAPI:
39         InternalURLs: {}
40         ExternalURL: "-"
41       Controller:
42         InternalURLs: {}
43         ExternalURL: ""
44       Websocket:
45         InternalURLs: {}
46         ExternalURL: ""
47       Keepbalance:
48         InternalURLs: {}
49         ExternalURL: "-"
50       GitHTTP:
51         InternalURLs: {}
52         ExternalURL: ""
53       GitSSH:
54         InternalURLs: {}
55         ExternalURL: ""
56       DispatchCloud:
57         InternalURLs: {}
58         ExternalURL: "-"
59       SSO:
60         InternalURLs: {}
61         ExternalURL: ""
62       Keepproxy:
63         InternalURLs: {}
64         ExternalURL: ""
65       WebDAV:
66         InternalURLs: {}
67         # Base URL for Workbench inline preview.  If blank, use
68         # WebDAVDownload instead, and disable inline preview.
69         # If both are empty, downloading collections from workbench
70         # will be impossible.
71         #
72         # It is important to properly configure the download service
73         # to migitate cross-site-scripting (XSS) attacks.  A HTML page
74         # can be stored in collection.  If an attacker causes a victim
75         # to visit that page through Workbench, it will be rendered by
76         # the browser.  If all collections are served at the same
77         # domain, the browser will consider collections as coming from
78         # the same origin and having access to the same browsing data,
79         # enabling malicious Javascript on that page to access Arvados
80         # on behalf of the victim.
81         #
82         # This is mitigating by having separate domains for each
83         # collection, or limiting preview to circumstances where the
84         # collection is not accessed with the user's regular
85         # full-access token.
86         #
87         # Serve preview links using uuid or pdh in subdomain
88         # (requires wildcard DNS and TLS certificate)
89         #   https://*.collections.uuid_prefix.arvadosapi.com
90         #
91         # Serve preview links using uuid or pdh in main domain
92         # (requires wildcard DNS and TLS certificate)
93         #   https://*--collections.uuid_prefix.arvadosapi.com
94         #
95         # Serve preview links by setting uuid or pdh in the path.
96         # This configuration only allows previews of public data or
97         # collection-sharing links, because these use the anonymous
98         # user token or the token is already embedded in the URL.
99         # Other data must be handled as downloads via WebDAVDownload:
100         #   https://collections.uuid_prefix.arvadosapi.com
101         #
102         ExternalURL: ""
103
104       WebDAVDownload:
105         InternalURLs: {}
106         # Base URL for download links. If blank, serve links to WebDAV
107         # with disposition=attachment query param.  Unlike preview links,
108         # browsers do not render attachments, so there is no risk of XSS.
109         #
110         # If WebDAVDownload is blank, and WebDAV uses a
111         # single-origin form, then Workbench will show an error page
112         #
113         # Serve download links by setting uuid or pdh in the path:
114         #   https://download.uuid_prefix.arvadosapi.com
115         #
116         ExternalURL: ""
117
118       Keepstore:
119         InternalURLs: {}
120         ExternalURL: "-"
121       Composer:
122         InternalURLs: {}
123         ExternalURL: ""
124       WebShell:
125         InternalURLs: {}
126         # ShellInABox service endpoint URL for a given VM.  If empty, do not
127         # offer web shell logins.
128         #
129         # E.g., using a path-based proxy server to forward connections to shell hosts:
130         # https://webshell.uuid_prefix.arvadosapi.com
131         #
132         # E.g., using a name-based proxy server to forward connections to shell hosts:
133         # https://*.webshell.uuid_prefix.arvadosapi.com
134         ExternalURL: ""
135       Workbench1:
136         InternalURLs: {}
137         ExternalURL: ""
138       Workbench2:
139         InternalURLs: {}
140         ExternalURL: ""
141       Nodemanager:
142         InternalURLs: {}
143         ExternalURL: "-"
144       Health:
145         InternalURLs: {}
146         ExternalURL: "-"
147
148     PostgreSQL:
149       # max concurrent connections per arvados server daemon
150       ConnectionPool: 32
151       Connection:
152         # All parameters here are passed to the PG client library in a connection string;
153         # see https://www.postgresql.org/docs/current/static/libpq-connect.html#LIBPQ-PARAMKEYWORDS
154         host: ""
155         port: ""
156         user: ""
157         password: ""
158         dbname: ""
159         SAMPLE: ""
160     API:
161       # Maximum size (in bytes) allowed for a single API request.  This
162       # limit is published in the discovery document for use by clients.
163       # Note: You must separately configure the upstream web server or
164       # proxy to actually enforce the desired maximum request size on the
165       # server side.
166       MaxRequestSize: 134217728
167
168       # Limit the number of bytes read from the database during an index
169       # request (by retrieving and returning fewer rows than would
170       # normally be returned in a single response).
171       # Note 1: This setting never reduces the number of returned rows to
172       # zero, no matter how big the first data row is.
173       # Note 2: Currently, this is only checked against a specific set of
174       # columns that tend to get large (collections.manifest_text,
175       # containers.mounts, workflows.definition). Other fields (e.g.,
176       # "properties" hashes) are not counted against this limit.
177       MaxIndexDatabaseRead: 134217728
178
179       # Maximum number of items to return when responding to a APIs that
180       # can return partial result sets using limit and offset parameters
181       # (e.g., *.index, groups.contents). If a request specifies a "limit"
182       # parameter higher than this value, this value is used instead.
183       MaxItemsPerResponse: 1000
184
185       # API methods to disable. Disabled methods are not listed in the
186       # discovery document, and respond 404 to all requests.
187       # Example: {"jobs.create":{}, "pipeline_instances.create": {}}
188       DisabledAPIs: {}
189
190       # Interval (seconds) between asynchronous permission view updates. Any
191       # permission-updating API called with the 'async' parameter schedules a an
192       # update on the permission view in the future, if not already scheduled.
193       AsyncPermissionsUpdateInterval: 20s
194
195       # Maximum number of concurrent outgoing requests to make while
196       # serving a single incoming multi-cluster (federated) request.
197       MaxRequestAmplification: 4
198
199       # RailsSessionSecretToken is a string of alphanumeric characters
200       # used by Rails to sign session tokens. IMPORTANT: This is a
201       # site secret. It should be at least 50 characters.
202       RailsSessionSecretToken: ""
203
204       # Maximum wall clock time to spend handling an incoming request.
205       RequestTimeout: 5m
206
207       # Websocket will send a periodic empty event after 'SendTimeout'
208       # if there is no other activity to maintain the connection /
209       # detect dropped connections.
210       SendTimeout: 60s
211
212       WebsocketClientEventQueue: 64
213       WebsocketServerEventQueue: 4
214
215     Users:
216       # Config parameters to automatically setup new users.  If enabled,
217       # this users will be able to self-activate.  Enable this if you want
218       # to run an open instance where anyone can create an account and use
219       # the system without requiring manual approval.
220       #
221       # The params auto_setup_new_users_with_* are meaningful only when auto_setup_new_users is turned on.
222       # auto_setup_name_blacklist is a list of usernames to be blacklisted for auto setup.
223       AutoSetupNewUsers: false
224       AutoSetupNewUsersWithVmUUID: ""
225       AutoSetupNewUsersWithRepository: false
226       AutoSetupUsernameBlacklist:
227         arvados: {}
228         git: {}
229         gitolite: {}
230         gitolite-admin: {}
231         root: {}
232         syslog: {}
233         SAMPLE: {}
234
235       # When new_users_are_active is set to true, new users will be active
236       # immediately.  This skips the "self-activate" step which enforces
237       # user agreements.  Should only be enabled for development.
238       NewUsersAreActive: false
239
240       # The e-mail address of the user you would like to become marked as an admin
241       # user on their first login.
242       # In the default configuration, authentication happens through the Arvados SSO
243       # server, which uses OAuth2 against Google's servers, so in that case this
244       # should be an address associated with a Google account.
245       AutoAdminUserWithEmail: ""
246
247       # If auto_admin_first_user is set to true, the first user to log in when no
248       # other admin users exist will automatically become an admin user.
249       AutoAdminFirstUser: false
250
251       # Email address to notify whenever a user creates a profile for the
252       # first time
253       UserProfileNotificationAddress: ""
254       AdminNotifierEmailFrom: arvados@example.com
255       EmailSubjectPrefix: "[ARVADOS] "
256       UserNotifierEmailFrom: arvados@example.com
257       NewUserNotificationRecipients: {}
258       NewInactiveUserNotificationRecipients: {}
259
260       # Set anonymous_user_token to enable anonymous user access. You can get
261       # the token by running "bundle exec ./script/get_anonymous_user_token.rb"
262       # in the directory where your API server is running.
263       AnonymousUserToken: ""
264
265     AuditLogs:
266       # Time to keep audit logs, in seconds. (An audit log is a row added
267       # to the "logs" table in the PostgreSQL database each time an
268       # Arvados object is created, modified, or deleted.)
269       #
270       # Currently, websocket event notifications rely on audit logs, so
271       # this should not be set lower than 300 (5 minutes).
272       MaxAge: 336h
273
274       # Maximum number of log rows to delete in a single SQL transaction.
275       #
276       # If max_audit_log_delete_batch is 0, log entries will never be
277       # deleted by Arvados. Cleanup can be done by an external process
278       # without affecting any Arvados system processes, as long as very
279       # recent (<5 minutes old) logs are not deleted.
280       #
281       # 100000 is a reasonable batch size for most sites.
282       MaxDeleteBatch: 0
283
284       # Attributes to suppress in events and audit logs.  Notably,
285       # specifying {"manifest_text": {}} here typically makes the database
286       # smaller and faster.
287       #
288       # Warning: Using any non-empty value here can have undesirable side
289       # effects for any client or component that relies on event logs.
290       # Use at your own risk.
291       UnloggedAttributes: {}
292
293     SystemLogs:
294
295       # Logging threshold: panic, fatal, error, warn, info, debug, or
296       # trace
297       LogLevel: info
298
299       # Logging format: json or text
300       Format: json
301
302       # Maximum characters of (JSON-encoded) query parameters to include
303       # in each request log entry. When params exceed this size, they will
304       # be JSON-encoded, truncated to this size, and logged as
305       # params_truncated.
306       MaxRequestLogParamsSize: 2000
307
308     Collections:
309       # Allow clients to create collections by providing a manifest with
310       # unsigned data blob locators. IMPORTANT: This effectively disables
311       # access controls for data stored in Keep: a client who knows a hash
312       # can write a manifest that references the hash, pass it to
313       # collections.create (which will create a permission link), use
314       # collections.get to obtain a signature for that data locator, and
315       # use that signed locator to retrieve the data from Keep. Therefore,
316       # do not turn this on if your users expect to keep data private from
317       # one another!
318       BlobSigning: true
319
320       # BlobSigningKey is a string of alphanumeric characters used to
321       # generate permission signatures for Keep locators. It must be
322       # identical to the permission key given to Keep. IMPORTANT: This is
323       # a site secret. It should be at least 50 characters.
324       #
325       # Modifying blob_signing_key will invalidate all existing
326       # signatures, which can cause programs to fail (e.g., arv-put,
327       # arv-get, and Crunch jobs).  To avoid errors, rotate keys only when
328       # no such processes are running.
329       BlobSigningKey: ""
330
331       # Default replication level for collections. This is used when a
332       # collection's replication_desired attribute is nil.
333       DefaultReplication: 2
334
335       # Lifetime (in seconds) of blob permission signatures generated by
336       # the API server. This determines how long a client can take (after
337       # retrieving a collection record) to retrieve the collection data
338       # from Keep. If the client needs more time than that (assuming the
339       # collection still has the same content and the relevant user/token
340       # still has permission) the client can retrieve the collection again
341       # to get fresh signatures.
342       #
343       # This must be exactly equal to the -blob-signature-ttl flag used by
344       # keepstore servers.  Otherwise, reading data blocks and saving
345       # collections will fail with HTTP 403 permission errors.
346       #
347       # Modifying blob_signature_ttl invalidates existing signatures; see
348       # blob_signing_key note above.
349       #
350       # The default is 2 weeks.
351       BlobSigningTTL: 336h
352
353       # Default lifetime for ephemeral collections: 2 weeks. This must not
354       # be less than blob_signature_ttl.
355       DefaultTrashLifetime: 336h
356
357       # Interval (seconds) between trash sweeps. During a trash sweep,
358       # collections are marked as trash if their trash_at time has
359       # arrived, and deleted if their delete_at time has arrived.
360       TrashSweepInterval: 60s
361
362       # If true, enable collection versioning.
363       # When a collection's preserve_version field is true or the current version
364       # is older than the amount of seconds defined on preserve_version_if_idle,
365       # a snapshot of the collection's previous state is created and linked to
366       # the current collection.
367       CollectionVersioning: false
368
369       #   0s = auto-create a new version on every update.
370       #  -1s = never auto-create new versions.
371       # > 0s = auto-create a new version when older than the specified number of seconds.
372       PreserveVersionIfIdle: -1s
373
374       # Managed collection properties. At creation time, if the client didn't
375       # provide the listed keys, they will be automatically populated following
376       # one of the following behaviors:
377       #
378       # * UUID of the user who owns the containing project.
379       #   responsible_person_uuid: {Function: original_owner, Protected: true}
380       #
381       # * Default concrete value.
382       #   foo_bar: {Value: baz, Protected: false}
383       #
384       # If Protected is true, only an admin user can modify its value.
385       ManagedProperties:
386         SAMPLE: {Function: original_owner, Protected: true}
387
388       # In "trust all content" mode, Workbench will redirect download
389       # requests to WebDAV preview link, even in the cases when
390       # WebDAV would have to expose XSS vulnerabilities in order to
391       # handle the redirect (see discussion on Services.WebDAV).
392       #
393       # This setting has no effect in the recommended configuration,
394       # where the WebDAV is configured to have a separate domain for
395       # every collection; in this case XSS protection is provided by
396       # browsers' same-origin policy.
397       #
398       # The default setting (false) is appropriate for a multi-user site.
399       TrustAllContent: false
400
401     Login:
402       # These settings are provided by your OAuth2 provider (e.g.,
403       # sso-provider).
404       ProviderAppSecret: ""
405       ProviderAppID: ""
406
407     Git:
408       # Git repositories must be readable by api server, or you won't be
409       # able to submit crunch jobs. To pass the test suites, put a clone
410       # of the arvados tree in {git_repositories_dir}/arvados.git or
411       # {git_repositories_dir}/arvados/.git
412       Repositories: /var/lib/arvados/git/repositories
413
414     TLS:
415       Certificate: ""
416       Key: ""
417       Insecure: false
418
419     Containers:
420       # List of supported Docker Registry image formats that compute nodes
421       # are able to use. ` + "`" + `arv keep docker` + "`" + ` will error out if a user tries
422       # to store an image with an unsupported format. Use an empty array
423       # to skip the compatibility check (and display a warning message to
424       # that effect).
425       #
426       # Example for sites running docker < 1.10: {"v1": {}}
427       # Example for sites running docker >= 1.10: {"v2": {}}
428       # Example for disabling check: {}
429       SupportedDockerImageFormats:
430         "v2": {}
431         SAMPLE: {}
432
433       # Include details about job reuse decisions in the server log. This
434       # causes additional database queries to run, so it should not be
435       # enabled unless you expect to examine the resulting logs for
436       # troubleshooting purposes.
437       LogReuseDecisions: false
438
439       # Default value for keep_cache_ram of a container's runtime_constraints.
440       DefaultKeepCacheRAM: 268435456
441
442       # Number of times a container can be unlocked before being
443       # automatically cancelled.
444       MaxDispatchAttempts: 5
445
446       # Default value for container_count_max for container requests.  This is the
447       # number of times Arvados will create a new container to satisfy a container
448       # request.  If a container is cancelled it will retry a new container if
449       # container_count < container_count_max on any container requests associated
450       # with the cancelled container.
451       MaxRetryAttempts: 3
452
453       # The maximum number of compute nodes that can be in use simultaneously
454       # If this limit is reduced, any existing nodes with slot number >= new limit
455       # will not be counted against the new limit. In other words, the new limit
456       # won't be strictly enforced until those nodes with higher slot numbers
457       # go down.
458       MaxComputeVMs: 64
459
460       # Preemptible instance support (e.g. AWS Spot Instances)
461       # When true, child containers will get created with the preemptible
462       # scheduling parameter parameter set.
463       UsePreemptibleInstances: false
464
465       # PEM encoded SSH key (RSA, DSA, or ECDSA) used by the
466       # (experimental) cloud dispatcher for executing containers on
467       # worker VMs. Begins with "-----BEGIN RSA PRIVATE KEY-----\n"
468       # and ends with "\n-----END RSA PRIVATE KEY-----\n".
469       DispatchPrivateKey: none
470
471       # Maximum time to wait for workers to come up before abandoning
472       # stale locks from a previous dispatch process.
473       StaleLockTimeout: 1m
474
475       # The crunch-run command to manage the container on a node
476       CrunchRunCommand: "crunch-run"
477
478       # Extra arguments to add to crunch-run invocation
479       # Example: ["--cgroup-parent-subsystem=memory"]
480       CrunchRunArgumentsList: []
481
482       # Extra RAM to reserve on the node, in addition to
483       # the amount specified in the container's RuntimeConstraints
484       ReserveExtraRAM: 256MiB
485
486       # Minimum time between two attempts to run the same container
487       MinRetryPeriod: 0s
488
489       Logging:
490         # When you run the db:delete_old_container_logs task, it will find
491         # containers that have been finished for at least this many seconds,
492         # and delete their stdout, stderr, arv-mount, crunch-run, and
493         # crunchstat logs from the logs table.
494         MaxAge: 720h
495
496         # These two settings control how frequently log events are flushed to the
497         # database.  Log lines are buffered until either crunch_log_bytes_per_event
498         # has been reached or crunch_log_seconds_between_events has elapsed since
499         # the last flush.
500         LogBytesPerEvent: 4096
501         LogSecondsBetweenEvents: 1
502
503         # The sample period for throttling logs.
504         LogThrottlePeriod: 60s
505
506         # Maximum number of bytes that job can log over crunch_log_throttle_period
507         # before being silenced until the end of the period.
508         LogThrottleBytes: 65536
509
510         # Maximum number of lines that job can log over crunch_log_throttle_period
511         # before being silenced until the end of the period.
512         LogThrottleLines: 1024
513
514         # Maximum bytes that may be logged by a single job.  Log bytes that are
515         # silenced by throttling are not counted against this total.
516         LimitLogBytesPerJob: 67108864
517
518         LogPartialLineThrottlePeriod: 5s
519
520         # Container logs are written to Keep and saved in a
521         # collection, which is updated periodically while the
522         # container runs.  This value sets the interval between
523         # collection updates.
524         LogUpdatePeriod: 30m
525
526         # The log collection is also updated when the specified amount of
527         # log data (given in bytes) is produced in less than one update
528         # period.
529         LogUpdateSize: 32MiB
530
531       SLURM:
532         PrioritySpread: 0
533         SbatchArgumentsList: []
534         KeepServices:
535           SAMPLE:
536             InternalURLs: {}
537         Managed:
538           # Path to dns server configuration directory
539           # (e.g. /etc/unbound.d/conf.d). If false, do not write any config
540           # files or touch restart.txt (see below).
541           DNSServerConfDir: ""
542
543           # Template file for the dns server host snippets. See
544           # unbound.template in this directory for an example. If false, do
545           # not write any config files.
546           DNSServerConfTemplate: ""
547
548           # String to write to {dns_server_conf_dir}/restart.txt (with a
549           # trailing newline) after updating local data. If false, do not
550           # open or write the restart.txt file.
551           DNSServerReloadCommand: ""
552
553           # Command to run after each DNS update. Template variables will be
554           # substituted; see the "unbound" example below. If false, do not run
555           # a command.
556           DNSServerUpdateCommand: ""
557
558           ComputeNodeDomain: ""
559           ComputeNodeNameservers:
560             "192.168.1.1": {}
561             SAMPLE: {}
562
563           # Hostname to assign to a compute node when it sends a "ping" and the
564           # hostname in its Node record is nil.
565           # During bootstrapping, the "ping" script is expected to notice the
566           # hostname given in the ping response, and update its unix hostname
567           # accordingly.
568           # If false, leave the hostname alone (this is appropriate if your compute
569           # nodes' hostnames are already assigned by some other mechanism).
570           #
571           # One way or another, the hostnames of your node records should agree
572           # with your DNS records and your /etc/slurm-llnl/slurm.conf files.
573           #
574           # Example for compute0000, compute0001, ....:
575           # assign_node_hostname: compute%<slot_number>04d
576           # (See http://ruby-doc.org/core-2.2.2/Kernel.html#method-i-format for more.)
577           AssignNodeHostname: "compute%<slot_number>d"
578
579       JobsAPI:
580         # Enable the legacy Jobs API.  This value must be a string.
581         # 'auto' -- (default) enable the Jobs API only if it has been used before
582         #         (i.e., there are job records in the database)
583         # 'true' -- enable the Jobs API despite lack of existing records.
584         # 'false' -- disable the Jobs API despite presence of existing records.
585         Enable: 'auto'
586
587         # Git repositories must be readable by api server, or you won't be
588         # able to submit crunch jobs. To pass the test suites, put a clone
589         # of the arvados tree in {git_repositories_dir}/arvados.git or
590         # {git_repositories_dir}/arvados/.git
591         GitInternalDir: /var/lib/arvados/internal.git
592
593         # Docker image to be used when none found in runtime_constraints of a job
594         DefaultDockerImage: ""
595
596         # none or slurm_immediate
597         CrunchJobWrapper: none
598
599         # username, or false = do not set uid when running jobs.
600         CrunchJobUser: crunch
601
602         # The web service must be able to create/write this file, and
603         # crunch-job must be able to stat() it.
604         CrunchRefreshTrigger: /tmp/crunch_refresh_trigger
605
606         # Control job reuse behavior when two completed jobs match the
607         # search criteria and have different outputs.
608         #
609         # If true, in case of a conflict, reuse the earliest job (this is
610         # similar to container reuse behavior).
611         #
612         # If false, in case of a conflict, do not reuse any completed job,
613         # but do reuse an already-running job if available (this is the
614         # original job reuse behavior, and is still the default).
615         ReuseJobIfOutputsDiffer: false
616
617       CloudVMs:
618         # Enable the cloud scheduler (experimental).
619         Enable: false
620
621         # Name/number of port where workers' SSH services listen.
622         SSHPort: "22"
623
624         # Interval between queue polls.
625         PollInterval: 10s
626
627         # Shell command to execute on each worker to determine whether
628         # the worker is booted and ready to run containers. It should
629         # exit zero if the worker is ready.
630         BootProbeCommand: "docker ps -q"
631
632         # Minimum interval between consecutive probes to a single
633         # worker.
634         ProbeInterval: 10s
635
636         # Maximum probes per second, across all workers in a pool.
637         MaxProbesPerSecond: 10
638
639         # Time before repeating SIGTERM when killing a container.
640         TimeoutSignal: 5s
641
642         # Time to give up on SIGTERM and write off the worker.
643         TimeoutTERM: 2m
644
645         # Maximum create/destroy-instance operations per second (0 =
646         # unlimited).
647         MaxCloudOpsPerSecond: 0
648
649         # Interval between cloud provider syncs/updates ("list all
650         # instances").
651         SyncInterval: 1m
652
653         # Time to leave an idle worker running (in case new containers
654         # appear in the queue that it can run) before shutting it
655         # down.
656         TimeoutIdle: 1m
657
658         # Time to wait for a new worker to boot (i.e., pass
659         # BootProbeCommand) before giving up and shutting it down.
660         TimeoutBooting: 10m
661
662         # Maximum time a worker can stay alive with no successful
663         # probes before being automatically shut down.
664         TimeoutProbe: 10m
665
666         # Time after shutting down a worker to retry the
667         # shutdown/destroy operation.
668         TimeoutShutdown: 10s
669
670         # Worker VM image ID.
671         ImageID: ""
672
673         # Tags to add on all resources (VMs, NICs, disks) created by
674         # the container dispatcher. (Arvados's own tags --
675         # InstanceType, IdleBehavior, and InstanceSecret -- will also
676         # be added.)
677         ResourceTags:
678           SAMPLE: "tag value"
679
680         # Prefix for predefined tags used by Arvados (InstanceSetID,
681         # InstanceType, InstanceSecret, IdleBehavior). With the
682         # default value "Arvados", tags are "ArvadosInstanceSetID",
683         # "ArvadosInstanceSecret", etc.
684         #
685         # This should only be changed while no cloud resources are in
686         # use and the cloud dispatcher is not running. Otherwise,
687         # VMs/resources that were added using the old tag prefix will
688         # need to be detected and cleaned up manually.
689         TagKeyPrefix: Arvados
690
691         # Cloud driver: "azure" (Microsoft Azure) or "ec2" (Amazon AWS).
692         Driver: ec2
693
694         # Cloud-specific driver parameters.
695         DriverParameters:
696
697           # (ec2) Credentials.
698           AccessKeyID: ""
699           SecretAccessKey: ""
700
701           # (ec2) Instance configuration.
702           SecurityGroupIDs:
703             "SAMPLE": {}
704           SubnetID: ""
705           Region: ""
706           EBSVolumeType: gp2
707           AdminUsername: debian
708
709           # (azure) Credentials.
710           SubscriptionID: ""
711           ClientID: ""
712           ClientSecret: ""
713           TenantID: ""
714
715           # (azure) Instance configuration.
716           CloudEnvironment: AzurePublicCloud
717           ResourceGroup: ""
718           Location: centralus
719           Network: ""
720           Subnet: ""
721           StorageAccount: ""
722           BlobContainer: ""
723           DeleteDanglingResourcesAfter: 20s
724           AdminUsername: arvados
725
726     InstanceTypes:
727
728       # Use the instance type name as the key (in place of "SAMPLE" in
729       # this sample entry).
730       SAMPLE:
731         # Cloud provider's instance type. Defaults to the configured type name.
732         ProviderType: ""
733         VCPUs: 1
734         RAM: 128MiB
735         IncludedScratch: 16GB
736         AddedScratch: 0
737         Price: 0.1
738         Preemptible: false
739
740     Mail:
741       MailchimpAPIKey: ""
742       MailchimpListID: ""
743       SendUserSetupNotificationEmail: true
744
745       # Bug/issue report notification to and from addresses
746       IssueReporterEmailFrom: "arvados@example.com"
747       IssueReporterEmailTo: "arvados@example.com"
748       SupportEmailAddress: "arvados@example.com"
749
750       # Generic issue email from
751       EmailFrom: "arvados@example.com"
752     RemoteClusters:
753       "*":
754         Host: ""
755         Proxy: false
756         Scheme: https
757         Insecure: false
758         ActivateUsers: false
759       SAMPLE:
760         # API endpoint host or host:port; default is {id}.arvadosapi.com
761         Host: sample.arvadosapi.com
762
763         # Perform a proxy request when a local client requests an
764         # object belonging to this remote.
765         Proxy: false
766
767         # Default "https". Can be set to "http" for testing.
768         Scheme: https
769
770         # Disable TLS verify. Can be set to true for testing.
771         Insecure: false
772
773         # When users present tokens issued by this remote cluster, and
774         # their accounts are active on the remote cluster, activate
775         # them on this cluster too.
776         ActivateUsers: false
777
778     Workbench:
779       # Workbench1 configs
780       Theme: default
781       ActivationContactLink: mailto:info@arvados.org
782       ArvadosDocsite: https://doc.arvados.org
783       ArvadosPublicDataDocURL: https://playground.arvados.org/projects/public
784       ShowUserAgreementInline: false
785       SecretKeyBase: ""
786
787       # Scratch directory used by the remote repository browsing
788       # feature. If it doesn't exist, it (and any missing parents) will be
789       # created using mkdir_p.
790       RepositoryCache: /var/www/arvados-workbench/current/tmp/git
791
792       # Below is a sample setting of user_profile_form_fields config parameter.
793       # This configuration parameter should be set to either false (to disable) or
794       # to a map as shown below.
795       # Configure the map of input fields to be displayed in the profile page
796       # using the attribute "key" for each of the input fields.
797       # This sample shows configuration with one required and one optional form fields.
798       # For each of these input fields:
799       #   You can specify "Type" as "text" or "select".
800       #   List the "Options" to be displayed for each of the "select" menu.
801       #   Set "Required" as "true" for any of these fields to make them required.
802       # If any of the required fields are missing in the user's profile, the user will be
803       # redirected to the profile page before they can access any Workbench features.
804       UserProfileFormFields:
805         SAMPLE:
806           Type: select
807           FormFieldTitle: Best color
808           FormFieldDescription: your favorite color
809           Required: false
810           Position: 1
811           Options:
812             red: {}
813             blue: {}
814             green: {}
815             SAMPLE: {}
816
817         # exampleTextValue:  # key that will be set in properties
818         #   Type: text  #
819         #   FormFieldTitle: ""
820         #   FormFieldDescription: ""
821         #   Required: true
822         #   Position: 1
823         # exampleOptionsValue:
824         #   Type: select
825         #   FormFieldTitle: ""
826         #   FormFieldDescription: ""
827         #   Required: true
828         #   Position: 1
829         #   Options:
830         #     red: {}
831         #     blue: {}
832         #     yellow: {}
833
834       # Use "UserProfileFormMessage to configure the message you want
835       # to display on the profile page.
836       UserProfileFormMessage: 'Welcome to Arvados. All <span style="color:red">required fields</span> must be completed before you can proceed.'
837
838       # Mimetypes of applications for which the view icon
839       # would be enabled in a collection's show page.
840       # It is sufficient to list only applications here.
841       # No need to list text and image types.
842       ApplicationMimetypesWithViewIcon:
843         cwl: {}
844         fasta: {}
845         go: {}
846         javascript: {}
847         json: {}
848         pdf: {}
849         python: {}
850         x-python: {}
851         r: {}
852         rtf: {}
853         sam: {}
854         x-sh: {}
855         vnd.realvnc.bed: {}
856         xml: {}
857         xsl: {}
858         SAMPLE: {}
859
860       # The maximum number of bytes to load in the log viewer
861       LogViewerMaxBytes: 1M
862
863       # When anonymous_user_token is configured, show public projects page
864       EnablePublicProjectsPage: true
865
866       # By default, disable the "Getting Started" popup which is specific to Arvados playground
867       EnableGettingStartedPopup: false
868
869       # Ask Arvados API server to compress its response payloads.
870       APIResponseCompression: true
871
872       # Timeouts for API requests.
873       APIClientConnectTimeout: 2m
874       APIClientReceiveTimeout: 5m
875
876       # Maximum number of historic log records of a running job to fetch
877       # and display in the Log tab, while subscribing to web sockets.
878       RunningJobLogRecordsToFetch: 2000
879
880       # In systems with many shared projects, loading of dashboard and topnav
881       # cab be slow due to collections indexing; use the following parameters
882       # to suppress these properties
883       ShowRecentCollectionsOnDashboard: true
884       ShowUserNotifications: true
885
886       # Enable/disable "multi-site search" in top nav ("true"/"false"), or
887       # a link to the multi-site search page on a "home" Workbench site.
888       #
889       # Example:
890       #   https://workbench.qr1hi.arvadosapi.com/collections/multisite
891       MultiSiteSearch: ""
892
893       # Should workbench allow management of local git repositories? Set to false if
894       # the jobs api is disabled and there are no local git repositories.
895       Repositories: true
896
897       SiteName: Arvados Workbench
898       ProfilingEnabled: false
899
900       # This is related to obsolete Google OpenID 1.0 login
901       # but some workbench stuff still expects it to be set.
902       DefaultOpenIdPrefix: "https://www.google.com/accounts/o8/id"
903
904       # Workbench2 configs
905       VocabularyURL: ""
906       FileViewersConfigURL: ""
907
908     # Use experimental controller code (see https://dev.arvados.org/issues/14287)
909     EnableBetaController14287: false
910 `)