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