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

drop default password for postgresql #28098

Merged
merged 1 commit into from
Dec 4, 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
12 changes: 6 additions & 6 deletions generators/app/__snapshots__/generator.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ exports[`generator - app with default config should match snapshot 1`] = `
"defaultPackagingWar": false,
"devDatabaseExtraOptions": "",
"devDatabaseName": "jhipster",
"devDatabasePassword": "password",
"devDatabasePassword": "",
"devDatabaseType": "postgresql",
"devDatabaseTypeH2Any": false,
"devDatabaseTypeH2Disk": false,
Expand Down Expand Up @@ -793,7 +793,7 @@ exports[`generator - app with default config should match snapshot 1`] = `
},
"prodDatabaseExtraOptions": "",
"prodDatabaseName": "jhipster",
"prodDatabasePassword": "password",
"prodDatabasePassword": "",
"prodDatabaseType": "postgresql",
"prodDatabaseTypeAny": true,
"prodDatabaseTypeMariadb": false,
Expand Down Expand Up @@ -979,7 +979,7 @@ exports[`generator - app with gateway should match snapshot 1`] = `
"defaultPackagingWar": false,
"devDatabaseExtraOptions": "",
"devDatabaseName": "jhipster",
"devDatabasePassword": "password",
"devDatabasePassword": "",
"devDatabaseType": "postgresql",
"devDatabaseTypeH2Any": false,
"devDatabaseTypeH2Disk": false,
Expand Down Expand Up @@ -1459,7 +1459,7 @@ exports[`generator - app with gateway should match snapshot 1`] = `
},
"prodDatabaseExtraOptions": "",
"prodDatabaseName": "jhipster",
"prodDatabasePassword": "password",
"prodDatabasePassword": "",
"prodDatabaseType": "postgresql",
"prodDatabaseTypeAny": true,
"prodDatabaseTypeMariadb": false,
Expand Down Expand Up @@ -1644,7 +1644,7 @@ exports[`generator - app with microservice should match snapshot 1`] = `
"defaultPackagingWar": false,
"devDatabaseExtraOptions": "",
"devDatabaseName": "jhipster",
"devDatabasePassword": "password",
"devDatabasePassword": "",
"devDatabaseType": "postgresql",
"devDatabaseTypeH2Any": false,
"devDatabaseTypeH2Disk": false,
Expand Down Expand Up @@ -2058,7 +2058,7 @@ exports[`generator - app with microservice should match snapshot 1`] = `
},
"prodDatabaseExtraOptions": "",
"prodDatabaseName": "jhipster",
"prodDatabasePassword": "password",
"prodDatabasePassword": "",
"prodDatabaseType": "postgresql",
"prodDatabaseTypeAny": true,
"prodDatabaseTypeMariadb": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,6 @@ jhipster:
image: postgresql-placeholder
environment:
- POSTGRES_USER=mspsql
- POSTGRES_PASSWORD=password
- POSTGRES_HOST_AUTH_METHOD=trust
healthcheck:
test:
Expand Down Expand Up @@ -1031,7 +1030,6 @@ jhipster:
image: postgresql-placeholder
environment:
- POSTGRES_USER=mspsql
- POSTGRES_PASSWORD=password
- POSTGRES_HOST_AUTH_METHOD=trust
healthcheck:
test:
Expand Down Expand Up @@ -1443,7 +1441,6 @@ jhipster:
image: postgresql-placeholder
environment:
- POSTGRES_USER=mspsql
- POSTGRES_PASSWORD=password
- POSTGRES_HOST_AUTH_METHOD=trust
healthcheck:
test:
Expand Down Expand Up @@ -1774,7 +1771,6 @@ jhipster:
image: postgresql-placeholder
environment:
- POSTGRES_USER=mspsql
- POSTGRES_PASSWORD=password
- POSTGRES_HOST_AUTH_METHOD=trust
healthcheck:
test:
Expand Down
4 changes: 0 additions & 4 deletions generators/spring-data-relational/support/database-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,6 @@ const databaseData: Record<string, DatabaseDataSpec> = {
jdbcDriver: 'org.postgresql.Driver',
hibernateDialect: 'org.hibernate.dialect.PostgreSQLDialect',
port: ':5432/',
// Password is required by Spring Boot v3.3.x, can be removed for v3.4.x, see https://github.com/spring-projects/spring-boot/pull/41511
// Use a strong password to avoid being flagged by SonarQube
defaultPassword: 'password',

constraintNameMaxLength: 63,
tableNameMaxLength: 63,
},
Expand Down
Loading