Commit 1675998
committed
Add support for OS_INSECURE environment variable
When calling NewServiceClient it was not possible to configure TLS
certificate validation using environment variables. This change adds
support for the `OS_INSECURE` environment variable, which is parsed as
a boolean value. When truthy, we disable certificate validation.
Signed-off-by: Lars Kellogg-Stedman <lars@redhat.com>1 parent 1d7954e commit 1675998
1 file changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
808 | 809 | | |
809 | 810 | | |
810 | 811 | | |
| 812 | + | |
811 | 813 | | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
812 | 822 | | |
813 | | - | |
814 | 823 | | |
815 | 824 | | |
816 | 825 | | |
| |||
0 commit comments