]> git.ardis.lu - envpass/log
envpass
4 months agoRefactor to separate each validation test
Ardis Lu [Sat, 23 May 2026 05:32:55 +0000 (22:32 -0700)]
Refactor to separate each validation test

4 months agoSet client-side security headers
Ardis Lu [Fri, 22 May 2026 06:21:00 +0000 (23:21 -0700)]
Set client-side security headers

The CSP `img-src 'none';` will block the empty data URL used for the favicon, so just remove it. The original purpose of the empty data URL was to prevent `favicon.ico` requests, but that is also accomplished by this CSP.

4 months agoVerify `Content-Type` header on POST
Ardis Lu [Fri, 22 May 2026 05:33:15 +0000 (22:33 -0700)]
Verify `Content-Type` header on POST

Setting this header to `application/json` forces the request to be CORS preflighted (i.e. not a "simple request"). This is further security hardening against cross-origin requests from a web browser.

4 months agoVerify `Origin` header on POST
Ardis Lu [Fri, 22 May 2026 05:20:18 +0000 (22:20 -0700)]
Verify `Origin` header on POST

This is security hardening against cross-origin requests. Although the server already does not send CORS headers (so web browsers should already block a cross-origin POST), there should still be a server-side `Origin` check as defense-in-depth.

4 months agoOnly get passkey if actually required
Ardis Lu [Thu, 21 May 2026 05:59:14 +0000 (22:59 -0700)]
Only get passkey if actually required

Getting passkey is not required when `encrypt` is run on a file where all variables are already encrypted, or `decrypt` is run on a file where all variables are already decrypted.

Previously, the passkey flow would always initiate. Now, it will only initiate the first time it is required.

This change improves the UX in situations where `encrypt` or `decrypt` are called on a continuous basis. For example, when calling `envpass encrypt` in a `prestart` npm script hook.

4 months agoRemove block margin on `<body>`
Ardis Lu [Thu, 21 May 2026 05:42:52 +0000 (22:42 -0700)]
Remove block margin on `<body>`

Otherwise there will be an unnecessary vertical scrollbar on the page.

4 months agoAllow passing options to Playwright
Ardis Lu [Thu, 21 May 2026 05:41:55 +0000 (22:41 -0700)]
Allow passing options to Playwright

Makes it easier to debug Playwright tests.

5 months agoCut v0.1.1 v0.1.1
Ardis Lu [Mon, 18 May 2026 04:47:07 +0000 (21:47 -0700)]
Cut v0.1.1

5 months agoFix auto-corrected error
Ardis Lu [Mon, 18 May 2026 04:46:29 +0000 (21:46 -0700)]
Fix auto-corrected error

Used `npm pkg fix` to correct.

5 months agoInitial commit v0.1.0
Ardis Lu [Mon, 18 May 2026 04:18:36 +0000 (21:18 -0700)]
Initial commit

This page took 0.035091 seconds and 4 git commands to generate.