This is an automated email from the ASF dual-hosted git repository.
vivo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/helix.git
The following commit(s) were added to refs/heads/master by this push:
new 937d50673 add keyfile and certfile to request options (#2672)
937d50673 is described below
commit 937d506734b0d7e7bcb1fb57b404d39a731883cf
Author: Grant Paláu Spencer <[email protected]>
AuthorDate: Thu Oct 19 11:57:53 2023 -0700
add keyfile and certfile to request options (#2672)
---
helix-front/server/controllers/d.ts | 2 ++
helix-front/server/controllers/helix.ts | 6 ++++++
2 files changed, 8 insertions(+)
diff --git a/helix-front/server/controllers/d.ts
b/helix-front/server/controllers/d.ts
index c008fc248..7314d3705 100644
--- a/helix-front/server/controllers/d.ts
+++ b/helix-front/server/controllers/d.ts
@@ -17,6 +17,8 @@ interface HelixSession {
type AgentOptions = {
rejectUnauthorized: boolean;
ca?: string;
+ key?: Buffer;
+ cert?: Buffer;
};
export type HelixRequestOptions = {
diff --git a/helix-front/server/controllers/helix.ts
b/helix-front/server/controllers/helix.ts
index 5b7bd300d..b7d4980c9 100644
--- a/helix-front/server/controllers/helix.ts
+++ b/helix-front/server/controllers/helix.ts
@@ -59,6 +59,12 @@ export class HelixCtrl {
encoding: 'utf-8',
});
}
+ if (SSL.keyfile) {
+ options.agentOptions.key = readFileSync(SSL.keyfile);
+ }
+ if (SSL.certfile) {
+ options.agentOptions.cert = readFileSync(SSL.certfile);
+ }
if (IDENTITY_TOKEN_SOURCE) {
options.headers['Identity-Token'] =