@pgpm/encrypted-secrets 0.15.1 → 0.15.2
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/README.md +0 -13
- package/package.json +4 -5
- package/pgpm-encrypted-secrets.control +2 -2
package/README.md
CHANGED
|
@@ -446,18 +446,6 @@ SELECT encrypted_secrets.secrets_upsert('uuid', 'key', 'value');
|
|
|
446
446
|
SELECT * FROM secrets_schema.secrets_table WHERE secrets_owned_field = 'uuid';
|
|
447
447
|
```
|
|
448
448
|
|
|
449
|
-
### With @pgpm/default-roles
|
|
450
|
-
|
|
451
|
-
Combine with role-based access control:
|
|
452
|
-
|
|
453
|
-
```sql
|
|
454
|
-
-- Only authenticated users can manage secrets
|
|
455
|
-
GRANT EXECUTE ON FUNCTION encrypted_secrets.secrets_upsert TO authenticated;
|
|
456
|
-
GRANT EXECUTE ON FUNCTION encrypted_secrets.secrets_getter TO authenticated;
|
|
457
|
-
GRANT EXECUTE ON FUNCTION encrypted_secrets.secrets_verify TO authenticated;
|
|
458
|
-
GRANT EXECUTE ON FUNCTION encrypted_secrets.secrets_delete TO authenticated;
|
|
459
|
-
```
|
|
460
|
-
|
|
461
449
|
### With @pgpm/jwt-claims
|
|
462
450
|
|
|
463
451
|
Use JWT claims for owner context:
|
|
@@ -480,7 +468,6 @@ SELECT encrypted_secrets.secrets_getter(
|
|
|
480
468
|
|
|
481
469
|
## Dependencies
|
|
482
470
|
|
|
483
|
-
- `@pgpm/default-roles`: Role-based access control
|
|
484
471
|
- `@pgpm/encrypted-secrets-table`: Storage layer
|
|
485
472
|
- `@pgpm/verify`: Verification utilities
|
|
486
473
|
- PostgreSQL pgcrypto extension (for encryption functions)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pgpm/encrypted-secrets",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.2",
|
|
4
4
|
"description": "Encrypted secrets management for PostgreSQL",
|
|
5
5
|
"author": "Dan Lynch <pyramation@gmail.com>",
|
|
6
6
|
"contributors": [
|
|
@@ -21,9 +21,8 @@
|
|
|
21
21
|
"test:watch": "jest --watch"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@pgpm/
|
|
25
|
-
"@pgpm/
|
|
26
|
-
"@pgpm/verify": "0.15.1"
|
|
24
|
+
"@pgpm/encrypted-secrets-table": "0.15.2",
|
|
25
|
+
"@pgpm/verify": "0.15.2"
|
|
27
26
|
},
|
|
28
27
|
"devDependencies": {
|
|
29
28
|
"pgpm": "^1.0.0"
|
|
@@ -36,5 +35,5 @@
|
|
|
36
35
|
"bugs": {
|
|
37
36
|
"url": "https://github.com/constructive-io/pgpm-modules/issues"
|
|
38
37
|
},
|
|
39
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "92a241bab64c7b20e85e55a7bd314089907fabba"
|
|
40
39
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
comment = 'pgpm-encrypted-secrets extension'
|
|
3
3
|
default_version = '0.14.0'
|
|
4
4
|
module_pathname = '$libdir/pgpm-encrypted-secrets'
|
|
5
|
-
requires = 'pgcrypto,plpgsql,uuid-ossp,pgpm-encrypted-secrets-table,pgpm-
|
|
5
|
+
requires = 'pgcrypto,plpgsql,uuid-ossp,pgpm-encrypted-secrets-table,pgpm-verify'
|
|
6
6
|
relocatable = false
|
|
7
7
|
superuser = false
|
|
8
|
-
|
|
8
|
+
|