From 6e1e11ffd33c3fd8b81ba469c5b81daa1f8223e0 Mon Sep 17 00:00:00 2001 From: Matvey Kukuy Date: Mon, 30 Dec 2024 19:02:47 +0100 Subject: [PATCH] KEEP_CLI_IGNORE_SSL --- docs/cli/overview.mdx | 6 ++++++ keep/cli/cli.py | 2 ++ 2 files changed, 8 insertions(+) diff --git a/docs/cli/overview.mdx b/docs/cli/overview.mdx index f74599697..b144aebad 100644 --- a/docs/cli/overview.mdx +++ b/docs/cli/overview.mdx @@ -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" | diff --git a/keep/cli/cli.py b/keep/cli/cli.py index de2ddec83..5b7caea5f 100644 --- a/keep/cli/cli.py +++ b/keep/cli/cli.py @@ -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: