@pgpm/encrypted-secrets 0.6.0 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Makefile CHANGED
@@ -1,5 +1,5 @@
1
1
  EXTENSION = launchql-encrypted-secrets
2
- DATA = sql/launchql-encrypted-secrets--0.5.0.sql
2
+ DATA = sql/launchql-encrypted-secrets--0.6.0.sql
3
3
 
4
4
  PG_CONFIG = pg_config
5
5
  PGXS := $(shell $(PG_CONFIG) --pgxs)
package/README.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @pgpm/encrypted-secrets
2
2
 
3
+ <p align="center" width="100%">
4
+ <img height="250" src="https://raw.githubusercontent.com/launchql/launchql/refs/heads/main/assets/outline-logo.svg" />
5
+ </p>
6
+
7
+ <p align="center" width="100%">
8
+ <a href="https://github.com/launchql/pgpm-modules/actions/workflows/ci.yml">
9
+ <img height="20" src="https://github.com/launchql/pgpm-modules/actions/workflows/ci.yml/badge.svg" />
10
+ </a>
11
+ <a href="https://github.com/launchql/pgpm-modules/blob/main/LICENSE"><img height="20" src="https://img.shields.io/badge/license-MIT-blue.svg"/></a>
12
+ <a href="https://www.npmjs.com/package/@pgpm/encrypted-secrets"><img height="20" src="https://img.shields.io/github/package-json/v/launchql/pgpm-modules?filename=packages%2Fsecurity%2Fencrypted-secrets%2Fpackage.json"/></a>
13
+ </p>
14
+
3
15
  Encrypted secrets management for PostgreSQL.
4
16
 
5
17
  ## Overview
@@ -30,40 +42,42 @@ This is a quick way to get started. The sections below provide more detailed ins
30
42
  ### Prerequisites
31
43
 
32
44
  ```bash
33
- # Install pgpm globally
45
+ # Install pgpm CLI
34
46
  npm install -g pgpm
35
47
 
36
- # Start PostgreSQL
48
+ # Start local Postgres (via Docker) and export env vars
37
49
  pgpm docker start
38
-
39
- # Set environment variables
40
50
  eval "$(pgpm env)"
41
51
  ```
42
52
 
43
- ### Deploy
53
+ > **Tip:** Already running Postgres? Skip the Docker step and just export your `PG*` environment variables.
44
54
 
45
- #### Option 1: Deploy by installing with pgpm
55
+ ### **Add to an Existing Package**
46
56
 
47
57
  ```bash
58
+ # 1. Install the package
48
59
  pgpm install @pgpm/encrypted-secrets
49
- pgpm deploy
60
+
61
+ # 2. Deploy locally
62
+ pgpm deploy
50
63
  ```
51
64
 
52
- #### Option 2: Deploy from Package Directory
65
+ ### **Add to a New Project**
53
66
 
54
67
  ```bash
55
- cd packages/security/encrypted-secrets
56
- pgpm deploy --createdb
57
- ```
68
+ # 1. Create a workspace
69
+ pgpm init --workspace
70
+ cd my-app
58
71
 
59
- #### Option 3: Deploy from Workspace Root
72
+ # 2. Create your first module
73
+ pgpm init
74
+ cd packages/your-module
60
75
 
61
- ```bash
62
- # Install workspace dependencies
63
- pnpm install
76
+ # 3. Install a package
77
+ pgpm install @pgpm/encrypted-secrets
64
78
 
65
- # Deploy with dependencies
66
- pgpm deploy mydb1 --yes --createdb
79
+ # 4. Deploy everything
80
+ pgpm deploy --createdb --database mydb1
67
81
  ```
68
82
 
69
83
  ## Core Functions
@@ -477,76 +491,6 @@ SELECT encrypted_secrets.secrets_getter(
477
491
  pnpm test
478
492
  ```
479
493
 
480
- ## Development
481
-
482
- See the [Development](#development) section below for information on working with this package.
483
-
484
- ---
485
-
486
- ## Development
487
-
488
- ### **Before You Begin**
489
-
490
- ```bash
491
- # 1. Install pgpm
492
- npm install -g pgpm
493
-
494
- # 2. Start Postgres (Docker or local)
495
- pgpm docker start
496
-
497
- # 3. Load PG* environment variables (PGHOST, PGUSER, ...)
498
- eval "$(pgpm env)"
499
- ```
500
-
501
- ---
502
-
503
- ### **Starting a New Project**
504
-
505
- ```bash
506
- # 1. Create a workspace
507
- pgpm init --workspace
508
- cd my-app
509
-
510
- # 2. Create your first module
511
- pgpm init
512
-
513
- # 3. Add a migration
514
- pgpm add some_change
515
-
516
- # 4. Deploy (auto-creates database)
517
- pgpm deploy --createdb
518
- ```
519
-
520
- ---
521
-
522
- ### **Working With an Existing Project**
523
-
524
- ```bash
525
- # 1. Clone and enter the project
526
- git clone <repo> && cd <project>
527
-
528
- # 2. Install dependencies
529
- pnpm install
530
-
531
- # 3. Deploy locally
532
- pgpm deploy --createdb
533
- ```
534
-
535
- ---
536
-
537
- ### **Testing a Module Inside a Workspace**
538
-
539
- ```bash
540
- # 1. Install workspace deps
541
- pnpm install
542
-
543
- # 2. Enter the module directory
544
- cd packages/<some-module>
545
-
546
- # 3. Run tests in watch mode
547
- pnpm test:watch
548
- ```
549
-
550
494
  ## Related Tooling
551
495
 
552
496
  * [pgpm](https://github.com/launchql/launchql/tree/main/packages/pgpm): **🖥️ PostgreSQL Package Manager** for modular Postgres development. Works with database workspaces, scaffolding, migrations, seeding, and installing database packages.
@@ -1,6 +1,6 @@
1
1
  # launchql-encrypted-secrets extension
2
2
  comment = 'launchql-encrypted-secrets extension'
3
- default_version = '0.5.0'
3
+ default_version = '0.6.0'
4
4
  module_pathname = '$libdir/launchql-encrypted-secrets'
5
5
  requires = 'pgcrypto,plpgsql,uuid-ossp,launchql-encrypted-secrets-table,launchql-default-roles,launchql-verify'
6
6
  relocatable = false
package/package.json CHANGED
@@ -1,7 +1,13 @@
1
1
  {
2
2
  "name": "@pgpm/encrypted-secrets",
3
- "version": "0.6.0",
3
+ "version": "0.7.1",
4
4
  "description": "Encrypted secrets management for PostgreSQL",
5
+ "keywords": [
6
+ "postgresql",
7
+ "pgpm",
8
+ "encryption",
9
+ "secrets"
10
+ ],
5
11
  "publishConfig": {
6
12
  "access": "public"
7
13
  },
@@ -11,9 +17,9 @@
11
17
  "test:watch": "jest --watch"
12
18
  },
13
19
  "dependencies": {
14
- "@pgpm/default-roles": "0.6.0",
15
- "@pgpm/encrypted-secrets-table": "0.6.0",
16
- "@pgpm/verify": "0.6.0"
20
+ "@pgpm/default-roles": "0.7.1",
21
+ "@pgpm/encrypted-secrets-table": "0.7.1",
22
+ "@pgpm/verify": "0.7.1"
17
23
  },
18
24
  "devDependencies": {
19
25
  "pgpm": "^0.2.0"
@@ -26,5 +32,5 @@
26
32
  "bugs": {
27
33
  "url": "https://github.com/launchql/pgpm-modules/issues"
28
34
  },
29
- "gitHead": "c7d0eae588d7a764b382a330c8b853b341b13fb2"
35
+ "gitHead": "f3156553b409bd27b66ac03562151d439d779f53"
30
36
  }