-
Notifications
You must be signed in to change notification settings - Fork 101
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
Improve security of database url #313
Merged
Merged
Changes from 11 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
df94812
Allow database source to not keep url
loicknuchel ff1828d
Update UI to adapt with new sources
loicknuchel cd31a73
Store and remove urls from projects
loicknuchel 96accfd
Crypt urls everywhere
loicknuchel c7cb63e
Delete db urls on delete source
loicknuchel 8d8f42c
Merge branch 'main' into secure-db-url
loicknuchel bee8194
Handle missing url in db sources in UI
loicknuchel 7993a04
Keep correct source names
loicknuchel 6827ef4
Add data sources in gateway
loicknuchel ffe9d56
Review fixes
loicknuchel 06e2e2f
Allow custom gateway on enterprise plan
loicknuchel 5586c02
fix
loicknuchel 96a272a
Last fixes
loicknuchel 7612e61
Fix pnpm
loicknuchel 6a48fdd
Update backend version
loicknuchel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
import {Logger} from "@azimutt/utils"; | ||
import {NodeEnv, startServer, track} from "@azimutt/gateway"; | ||
import {buildConfig, NodeEnv, startServer, track} from "@azimutt/gateway"; | ||
import {version} from "./version.js"; | ||
|
||
export async function launchGateway(logger: Logger): Promise<void> { | ||
export async function launchGateway(dataSourceUrls: string, logger: Logger): Promise<void> { | ||
logger.log('Starting Azimutt Gateway...') | ||
track('cli__gateway__start', {version}, 'cli').then(() => {}) | ||
await startServer({ | ||
await startServer(buildConfig({ | ||
NODE_ENV: NodeEnv.production, | ||
LOG_LEVEL: 'info', | ||
API_HOST: 'localhost', | ||
API_PORT: '4177', | ||
CORS_ALLOW_ORIGIN: '*' | ||
}) | ||
CORS_ALLOW_ORIGIN: '*', | ||
DATASOURCE_URLS: dataSourceUrls, | ||
})) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoid commented-out code in tests.
Commented-out code can lead to confusion and maintenance issues. Consider removing it or replacing it with an actual test.
Committable suggestion