Skip to content

Commit a4ea1a4

Browse files
drew-u410dwerner
authored andcommitted
all: allow db ssl if configured (default: unchanged)
1 parent fa21a24 commit a4ea1a4

File tree

14 files changed

+32
-9
lines changed

14 files changed

+32
-9
lines changed

packages/indexer-agent/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
8+
- Upgraded `common-ts` dependency to v2.0.11
9+
- Add ability to enable SSL to database connection with `sslEnabled` (maintain default of `false`)
810

911
## [0.21.2] - 2024-01-18
1012
### Changed

packages/indexer-agent/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"graph-indexer-agent": "bin/graph-indexer-agent"
3030
},
3131
"dependencies": {
32-
"@graphprotocol/common-ts": "2.0.10",
32+
"@graphprotocol/common-ts": "2.0.11",
3333
"@graphprotocol/indexer-common": "^0.21.6-2",
3434
"@thi.ng/heaps": "^1.3.1",
3535
"@uniswap/sdk": "3.0.3",

packages/indexer-agent/src/commands/common-options.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,13 @@ export function injectCommonStartupOptions(argv: Argv): Argv {
7575
required: false,
7676
group: 'Postgres',
7777
})
78+
.option('postgres-sslenabled', {
79+
description: 'Postgres SSL Enabled',
80+
type: 'boolean',
81+
default: 'false',
82+
required: false,
83+
group: 'Postgres',
84+
})
7885
.option('postgres-database', {
7986
description: 'Postgres database name',
8087
type: 'string',

packages/indexer-agent/src/commands/start.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,7 @@ export async function run(
540540
username: argv.postgresUsername,
541541
password: argv.postgresPassword,
542542
database: argv.postgresDatabase,
543+
sslEnabled: argv.postgresSslEnabled,
543544
poolMin: 0,
544545
poolMax: argv.postgresPoolSize,
545546
})

packages/indexer-cli/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
8+
- Upgraded `common-ts` dependency to v2.0.11
89

910
## [0.20.23] - 2023-09-29
1011
### Changed

packages/indexer-cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"test:watch": "jest --watch --detectOpenHandles --verbose"
2727
},
2828
"dependencies": {
29-
"@graphprotocol/common-ts": "2.0.10",
29+
"@graphprotocol/common-ts": "2.0.11",
3030
"@graphprotocol/indexer-common": "^0.21.6-2",
3131
"@iarna/toml": "2.2.5",
3232
"@thi.ng/iterators": "5.1.74",

packages/indexer-common/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
8+
- Upgraded `common-ts` dependency to v2.0.11
89

910
## [0.21.2] - 2024-01-18
1011
### Changed

packages/indexer-common/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"clean": "rm -rf ./node_modules ./dist ./tsconfig.tsbuildinfo"
2323
},
2424
"dependencies": {
25-
"@graphprotocol/common-ts": "2.0.10",
25+
"@graphprotocol/common-ts": "2.0.11",
2626
"@graphprotocol/cost-model": "0.1.18",
2727
"@semiotic-labs/tap-contracts-bindings": "^1.2.1",
2828
"@thi.ng/heaps": "1.2.38",

packages/indexer-native/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
8+
- Upgraded `common-ts` dependency to v2.0.11
89

910
## [0.20.6] - 2022-12-14
1011
### Changed

packages/indexer-native/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"clean": "rm -rf ./node_modules ./binary ./build ./coverage ./native/target ./native/artifacts.json ./native/index.node"
4747
},
4848
"dependencies": {
49-
"@graphprotocol/common-ts": "2.0.10",
49+
"@graphprotocol/common-ts": "2.0.11",
5050
"@mapbox/node-pre-gyp": "1.0.11",
5151
"cargo-cp-artifact": "0.1.8",
5252
"node-pre-gyp-github": "1.4.4"

0 commit comments

Comments
 (0)