Skip to content

Commit

Permalink
all: allow db ssl if configured (default: unchanged)
Browse files Browse the repository at this point in the history
  • Loading branch information
drew-u410 authored and dwerner committed Nov 7, 2024
1 parent fa21a24 commit a4ea1a4
Show file tree
Hide file tree
Showing 14 changed files with 32 additions and 9 deletions.
2 changes: 2 additions & 0 deletions packages/indexer-agent/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

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

## [0.21.2] - 2024-01-18
### Changed
Expand Down
2 changes: 1 addition & 1 deletion packages/indexer-agent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"graph-indexer-agent": "bin/graph-indexer-agent"
},
"dependencies": {
"@graphprotocol/common-ts": "2.0.10",
"@graphprotocol/common-ts": "2.0.11",
"@graphprotocol/indexer-common": "^0.21.6-2",
"@thi.ng/heaps": "^1.3.1",
"@uniswap/sdk": "3.0.3",
Expand Down
7 changes: 7 additions & 0 deletions packages/indexer-agent/src/commands/common-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@ export function injectCommonStartupOptions(argv: Argv): Argv {
required: false,
group: 'Postgres',
})
.option('postgres-sslenabled', {
description: 'Postgres SSL Enabled',
type: 'boolean',
default: 'false',
required: false,
group: 'Postgres',
})
.option('postgres-database', {
description: 'Postgres database name',
type: 'string',
Expand Down
1 change: 1 addition & 0 deletions packages/indexer-agent/src/commands/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,7 @@ export async function run(
username: argv.postgresUsername,
password: argv.postgresPassword,
database: argv.postgresDatabase,
sslEnabled: argv.postgresSslEnabled,
poolMin: 0,
poolMax: argv.postgresPoolSize,
})
Expand Down
1 change: 1 addition & 0 deletions packages/indexer-cli/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
- Upgraded `common-ts` dependency to v2.0.11

## [0.20.23] - 2023-09-29
### Changed
Expand Down
2 changes: 1 addition & 1 deletion packages/indexer-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"test:watch": "jest --watch --detectOpenHandles --verbose"
},
"dependencies": {
"@graphprotocol/common-ts": "2.0.10",
"@graphprotocol/common-ts": "2.0.11",
"@graphprotocol/indexer-common": "^0.21.6-2",
"@iarna/toml": "2.2.5",
"@thi.ng/iterators": "5.1.74",
Expand Down
1 change: 1 addition & 0 deletions packages/indexer-common/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
- Upgraded `common-ts` dependency to v2.0.11

## [0.21.2] - 2024-01-18
### Changed
Expand Down
2 changes: 1 addition & 1 deletion packages/indexer-common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"clean": "rm -rf ./node_modules ./dist ./tsconfig.tsbuildinfo"
},
"dependencies": {
"@graphprotocol/common-ts": "2.0.10",
"@graphprotocol/common-ts": "2.0.11",
"@graphprotocol/cost-model": "0.1.18",
"@semiotic-labs/tap-contracts-bindings": "^1.2.1",
"@thi.ng/heaps": "1.2.38",
Expand Down
1 change: 1 addition & 0 deletions packages/indexer-native/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
- Upgraded `common-ts` dependency to v2.0.11

## [0.20.6] - 2022-12-14
### Changed
Expand Down
2 changes: 1 addition & 1 deletion packages/indexer-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"clean": "rm -rf ./node_modules ./binary ./build ./coverage ./native/target ./native/artifacts.json ./native/index.node"
},
"dependencies": {
"@graphprotocol/common-ts": "2.0.10",
"@graphprotocol/common-ts": "2.0.11",
"@mapbox/node-pre-gyp": "1.0.11",
"cargo-cp-artifact": "0.1.8",
"node-pre-gyp-github": "1.4.4"
Expand Down
2 changes: 2 additions & 0 deletions packages/indexer-service/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

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

## [0.21.2] - 2024-01-18
### Changed
Expand Down
2 changes: 1 addition & 1 deletion packages/indexer-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
},
"dependencies": {
"@google-cloud/profiler": "6.0.1",
"@graphprotocol/common-ts": "2.0.10",
"@graphprotocol/common-ts": "2.0.11",
"@graphprotocol/indexer-common": "^0.21.6-2",
"@graphprotocol/indexer-native": "0.21.6",
"@graphql-tools/load": "8.0.0",
Expand Down
8 changes: 8 additions & 0 deletions packages/indexer-service/src/commands/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,13 @@ export default {
required: false,
group: 'Postgres',
})
.option('postgres-sslenabled', {
description: 'Postgres SSL Enabled',
type: 'boolean',
default: 'false',
required: false,
group: 'Postgres',
})
.option('postgres-database', {
description: 'Postgres database name',
type: 'string',
Expand Down Expand Up @@ -300,6 +307,7 @@ export default {
username: argv.postgresUsername,
password: argv.postgresPassword,
database: argv.postgresDatabase,
sslEnabled: argv.postgresSslEnabled,
})
const queryFeeModels = defineQueryFeeModels(sequelize)
const models = defineIndexerManagementModels(sequelize)
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -893,10 +893,10 @@
resolved "https://registry.yarnpkg.com/@google-cloud/promisify/-/promisify-4.0.0.tgz#a906e533ebdd0f754dca2509933334ce58b8c8b1"
integrity sha512-Orxzlfb9c67A15cq2JQEyVc7wEsmFBmHjZWZYQMUyJ1qivXyMwdyNOs9odi79hze+2zqdTtu1E19IM/FtqZ10g==

"@graphprotocol/common-ts@2.0.10":
version "2.0.10"
resolved "https://registry.yarnpkg.com/@graphprotocol/common-ts/-/common-ts-2.0.10.tgz#a2bd7810b6f2b41a5724bcd45b1320a2c6c316a9"
integrity sha512-7aAoskggNyMTr54es+7C6sXbSxEz0qxeqVeMqslYnLSAhUtO/TF0UOLdRa06A6RhaVZl5xKh4FUPC1Lr2NiBwQ==
"@graphprotocol/common-ts@2.0.11":
version "2.0.11"
resolved "https://registry.yarnpkg.com/@graphprotocol/common-ts/-/common-ts-2.0.11.tgz#29f92e7a9666a6b8baccd15e51281d87658978c9"
integrity sha512-WtQGYMGVwaXDIli+OCAZUSqh8+ql9THzjztqvLGeSbAIPKxysvej9vua0voMguqEkI/RyEEMBajelodMzzZlEw==
dependencies:
"@graphprotocol/contracts" "5.3.3"
"@graphprotocol/pino-sentry-simple" "0.7.1"
Expand Down

0 comments on commit a4ea1a4

Please sign in to comment.