Skip to content

Commit

Permalink
Merge pull request #10 from pantheon-systems/insecure
Browse files Browse the repository at this point in the history
Turn off ssl verify for EA
  • Loading branch information
greg-1-anderson authored Sep 14, 2022
2 parents a086099 + 0e5cf02 commit 490030d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

A plugin to handle Secrets via Terminus.

NOTE: This is still a WORK IN PROGRESS, this plugin is NOT FUNCTIONAL yet.
NOTE: This is still a WORK IN PROGRESS; it is not guaranteed to be error-free.

## Configuration

Expand Down
3 changes: 3 additions & 0 deletions src/SecretsApi/SecretsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ public function listSecrets(string $site_id, bool $debug = false): array
'Authorization' => $this->request()->session()->get('session'),
],
'debug' => $debug,
'verify' => false, // @todo Remove post-EA, once service is using trusted cert
];
$result = $this->request()->request($url, $options);
$data = $result->getData();
Expand Down Expand Up @@ -146,6 +147,7 @@ public function setSecret(
'json' => $body,
'method' => 'POST',
'debug' => $debug,
'verify' => false, // @todo Remove post-EA, once service is using trusted cert
];
$result = $this->request()->request($url, $options);
return !$result->isError();
Expand Down Expand Up @@ -188,6 +190,7 @@ public function deleteSecret(string $site_id, string $name, bool $debug = false)
],
'method' => 'DELETE',
'debug' => $debug,
'verify' => false, // @todo Remove post-EA, once service is using trusted cert
];
$result = $this->request()->request($url, $options);
return !$result->isError();
Expand Down

0 comments on commit 490030d

Please sign in to comment.