-
-
Notifications
You must be signed in to change notification settings - Fork 274
pass command instead of password in zuliprc #1581
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
7f9f798
6da7b0d
a1132b8
6b126db
72e5e0d
c872d7d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -207,6 +207,12 @@ to get the hang of things. | |
|
||
## Configuration | ||
|
||
configuration conssist of two file: | ||
- zulip_key, file contains the api_key | ||
- zuliprc, file consist of login configurations | ||
|
||
The `zulip_key`contains only the api_key. | ||
|
||
Comment on lines
+210
to
+215
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The For that reason anything like this part should likely be further down. Since this documents the way the zuliprc file works, whether only for the Terminal app, or for all apps using the python |
||
The `zuliprc` file contains two sections: | ||
- an `[api]` section with information required to connect to your Zulip server | ||
- a `[zterm]` section with configuration specific to `zulip-term` | ||
|
@@ -216,13 +222,15 @@ A file with only the first section can be auto-generated in some cases by | |
above). Parts of the second section can be added and adjusted in stages when | ||
you wish to customize the behavior of `zulip-term`. | ||
|
||
If you’re downloading the config file from your Zulip account, you should replace the `key` field with `passcmd`, setting its value to a command that outputs the api_key (e.g., cat zulip_key). If you’re not downloading it manually, zulip-term will configure this for you automatically, though it’s recommended to update the passcmd value afterward for better security. | ||
|
||
The example below, with dummy `[api]` section contents, represents a working | ||
configuration file with all the default compatible `[zterm]` values uncommented | ||
and with accompanying notes: | ||
``` | ||
[api] | ||
[email protected] | ||
key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | ||
passcmd=cat zulip_key | ||
Comment on lines
-225
to
+233
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since this needs to be optional, and if in Terminal only will be specific to us, it needs to be briefly documented in the sample file, and commented out - see how we document the Terminal options further below. |
||
site=https://example.zulipchat.com | ||
|
||
[zterm] | ||
|
@@ -257,6 +265,7 @@ transparency=disabled | |
# editor: nano | ||
``` | ||
|
||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please check for unnecessary additions. |
||
> **NOTE:** Most of these configuration settings may be specified on the | ||
command line when `zulip-term` is started; `zulip-term -h` or `zulip-term --help` | ||
will give the full list of options. | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -138,6 +138,10 @@ check_untyped_defs = false | |
minversion = "6.0" | ||
xfail_strict = true | ||
addopts = "-rxXs --cov=zulipterminal --no-cov-on-fail" | ||
markers = [ | ||
"wsl: marks tests as WSL specific", | ||
"quoted_content: marks tests dealing with quoted content rendering", | ||
] | ||
Comment on lines
+141
to
+144
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This looks unrelated. |
||
filterwarnings = [ | ||
# distutils: imp module is deprecated in favor of importlib | ||
# * python3.6/3.7/3.8 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This last commit is not just a docs update. If there are changes to tidy other commits, they belong combined with those commits. That will ensure that all the linting and tests passes on each commit individually, rather than just over the branch.
If you have other changes, they belong in new commits specific to those improvements.