Skip to content
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

feat: KEEP_CLI_IGNORE_SSL #2942

Merged
merged 2 commits into from
Dec 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/cli/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,9 @@ title: "Overview"
Keep CLI allow you to manage Keep from CLI.

Start by [installing](/cli/installation) Keep CLI and [running a workflow](/cli/commands/cli-run).

### Env variables

| Env var | Purpose | Required | Default Value | Valid options |
|:-------------------:|:-------:|:----------:|:-------------:|:-------------:|
| **KEEP_CLI_IGNORE_SSL** | Ignore SSL while connecting to the KEEP API | No | false | "true" or "false" |
2 changes: 2 additions & 0 deletions keep/cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ def get_default_conf_file_path():


def make_keep_request(method, url, **kwargs):
if os.environ.get("KEEP_CLI_IGNORE_SSL", "false").lower() == "true":
kwargs['verify'] = False
try:
response = requests.request(method, url, **kwargs)
if response.status_code == 401:
Expand Down
Loading