Repository navigation
Expand file tree
/
Copy pathconfig.yaml.example
More file actions
92 lines (84 loc) · 4.24 KB
/
Copy pathconfig.yaml.example
File metadata and controls
92 lines (84 loc) · 4.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# Sample config.yaml — the real one lives in
# ~/.config/termdevtools/config.yaml and is created automatically on first
# launch (see SPEC.md §9.1-§9.2). Specific to each user: two people running
# the same shared binary don't share a connection history. No secret is ever
# stored in it: passwords, API key secrets, tokens and private key
# passphrases are asked again on connection, unless a cluster's entry says
# where to read them (secret_env, secret_file, below).
default_timeout_seconds: 120
# Interface language: "en" (default) or "fr". Optional.
language: en
# Mouse support (click to give the focus to a field or a list entry). Off by
# default: every mouse interaction has a full keyboard equivalent (SPEC.md
# §3-4), and leaving it off keeps the terminal's own selection and paste
# available (turning it on hands them to the application instead — F2
# copies the result either way). Optional.
mouse: false
# Directories browsed by the certificate picker (Enter on a certificate field
# when entering a new connection, §3.0) to list the files available; the
# fields themselves stay empty until a file is chosen. By default: the
# standard system-wide TLS certificate directory of RHEL/CentOS, on Linux
# only — empty ("", as below) on Windows and macOS, where that path doesn't
# exist. Leave them empty to type the paths by hand.
default_ca_dir: ""
default_client_cert_dir: ""
# The order of this list is the usage history: the most recently used
# cluster is automatically moved to the top (§9.2). This file is normally
# written and updated by the program after every successful connection —
# editing it by hand is possible, but optional.
#
# The distribution (Elasticsearch or OpenSearch) and version of a cluster
# are detected at every connection: they decide which recipes, endpoints and
# _cat columns are offered (§3.0). "distribution" and "version", both
# optional, only serve to replace that detection when it can't succeed — a
# proxy hiding the cluster, or an OpenSearch in compatibility mode, which
# reports a fake version. The program never writes them itself.
#
# A cluster is reached through the proxy the HTTPS_PROXY / HTTP_PROXY
# environment variables designate, unless NO_PROXY excludes it (§5). "proxy",
# optional and never written by the program either, settles it for one
# cluster: a proxy URL (http:// or socks5://, without credentials — an
# authenticated proxy goes through the environment variable), or "none" for
# a direct connection.
#
# "secret_env" (an environment variable) or "secret_file" (an absolute path,
# or one starting with ~/), optional and never written by the program, say
# where the cluster's secret is — whichever its authentication asks for: the
# password, the API key's secret or its encoded form, the Bearer token, the
# client key's passphrase. The connection form opens with it filled in and
# the focus on Connect. The file is read whole, without its final line ends,
# and is yours to protect (chmod 600): whoever can read it can connect. Not
# found, the secret is typed as usual (§5).
#
# "protection", set from the connection form (§5), guards against a mistake
# on a cluster that matters: "confirm" asks before sending a request that
# writes, "read_only" refuses it; reads are always sent. Either level shows a
# banner at the top of the screen, naming the cluster by its optional
# "label". A safety net, not a security barrier: a read-only account on the
# cluster is what actually prevents writing.
clusters:
- url: https://es-prod.example.com:9200
protection: confirm # none (default) | confirm | read_only
label: PROD
auth_type: basic # none | basic | api_key | bearer | mtls
username: svc_devtools
secret_env: ES_PROD_PW # or secret_file: ~/.es-prod.secret
tls:
verify: true
ca_file: /etc/pki/ca-trust/es-prod-ca.pem
- url: https://es-staging.example.com:9200
auth_type: none
tls:
verify: false
- url: https://search-behind-proxy.example.com
auth_type: none
distribution: opensearch # elasticsearch | opensearch
version: "2.19"
tls:
verify: true
- url: https://es-dmz.example.com:9200
auth_type: basic
username: svc_devtools
proxy: http://proxy.example.com:3128 # or socks5://127.0.0.1:1080, or none
tls:
verify: true