Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

be: change influx secret key name #68

Merged
merged 2 commits into from
Apr 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion backend/src/utils/persistence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,14 @@ function mapIdentity(claimSignature: ClaimSignature) {

async function initInfluxWriter() {
const token = await getInfluxToken()
console.log('Influx URL: ' + config.influx.url())
console.log('Influx ORG: ' + config.influx.org())
console.log('Influx BUCKET: ' + config.influx.bucket())

return new InfluxDB({
url: config.influx.url(),
token
}).getWriteApi(config.influx.org(), config.influx.bucket(), 'ms')
}).getWriteApi(config.influx.org(), config.influx.bucket())
}

process.on('SIGTERM', async () => {
Expand Down
2 changes: 1 addition & 1 deletion backend/src/utils/secrets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export async function getInfluxToken(): Promise<string> {
console.log('Using influx token from config')
key = config.secrets.influx.key()!
} else {
key = await getSecretKey(config.secrets.influx.secretName, 'key')
key = await getSecretKey(config.secrets.influx.secretName, 'idb-token')
}

return key
Expand Down
Loading