Skip to content

Commit

Permalink
KEEP_CLI_IGNORE_SSL
Browse files Browse the repository at this point in the history
  • Loading branch information
Matvey-Kuk committed Dec 30, 2024
1 parent 4256d64 commit 6e1e11f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
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 @@ -72,6 +72,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

0 comments on commit 6e1e11f

Please sign in to comment.