Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load new CA Certificate from file on certificate error #32

Merged
merged 2 commits into from
Apr 29, 2022

Conversation

Lucaber
Copy link
Member

@Lucaber Lucaber commented Apr 27, 2022

No description provided.

src/Vault.ts Outdated
@@ -8,6 +8,7 @@ import { resolveURL } from "./util";
import { TotpVaultClient } from "./engines/totp";
import { KVVaultClient } from "./engines/kv";
import { KV2VaultClient } from "./engines";
import * as fs from "fs/promises";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This import fails in the workflow. Looks like fs/promises is only available in Node ≥14 and weirdly, some versions of Node 10 (nodejs/node#35740 (comment)).

But maybe the workflow could do with a bump to a halfway-recent Node version, anyway. 🤷‍♂️

LGTM, otherwise. 👍

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Weird, I couldn't really figure out which api is recommended but switched to import { promises as fs } from 'fs'; to keep compatibility with node 12+

@YannikBramkamp YannikBramkamp merged commit 5185cfa into master Apr 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants