Skip to content
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
2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"sass": "^1.60.0",
"typescript": "^5.0.0",
"unplugin-fonts": "^1.0.3",
"vite": "^6.3.4",
"vite": "^6.3.6",
"vite-plugin-vuetify": "^2.1.1",
"vue-tsc": "^2.2.10"
}
Expand Down
4 changes: 2 additions & 2 deletions client/src/components/loginprompt.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
class="mt-5"
>
User: <b>demo/reader</b><br>
Pass: <b>123456</b>
Pass: <b>kubero</b>
</v-alert>
<div v-if="authMethods.local" class="py-5">
<v-alert
Expand Down Expand Up @@ -126,7 +126,7 @@ export default defineComponent({
const demoDomain = demoDomains.includes(window.location.hostname)
if (demoDomain) {
this.username = 'demo';
this.password = '123456';
this.password = 'kubero';
}
return demoDomain;
}
Expand Down
866 changes: 436 additions & 430 deletions client/yarn.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"@prisma/client": "^6.9.0",
"@types/bcrypt": "^5.0.2",
"@willsoto/nestjs-prometheus": "^6.0.2",
"axios": "^1.7.9",
"axios": "^1.12.0",
"bcrypt": "^5.1.1",
"bitbucket": "^2.12.0",
"cross-fetch": "^4.1.0",
Expand Down
2 changes: 1 addition & 1 deletion server/src/addons/plugins/kuberoRabbitMQ.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { IPlugin, IPluginFormFields } from './plugin.interface';
export class KuberoRabbitMQ extends Plugin implements IPlugin {
public id: string = 'kubero-operator'; //same as operator name
public displayName = 'RabbitMQ (Bitnami)';
public icon = '/img/addons/RabbitMQ.svg';
public icon = '/img/addons/rabbitmq.svg';
public install: string = '';
public url =
'https://artifacthub.io/packages/olm/community-operators/kubero-operator';
Expand Down
22 changes: 15 additions & 7 deletions server/src/database/database.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,20 @@ export class DatabaseService {
const userGroups = ['everyone', 'admin'];

try {
// Generiere ein zufälliges Passwort
const plainPassword = crypto
.randomBytes(25)
.toString('base64')
.slice(0, 19);
// Erstelle einen bcrypt-Hash
let plainPassword: string;

if (!process.env.KUBERO_ADMIN_PASSWORD && process.env.KUBERO_ADMIN_PASSWORD !== '') {
// Generate a random password
plainPassword = crypto
.randomBytes(25)
.toString('base64')
.slice(0, 19);

} else {
plainPassword = process.env.KUBERO_ADMIN_PASSWORD;
}

// create bcrypt hash
const passwordHash = await bcrypt.hash(plainPassword, 10);
console.log('\n\n\n', 'Admin account created since no user exists yet');
console.log(' username: ', adminUser);
Expand Down Expand Up @@ -271,7 +279,7 @@ export class DatabaseService {
}

const userID = crypto.randomUUID();
const role = process.env.KUBERO_DEFAULT_USER_ROLE || 'guest';
const role = 'admin'; //process.env.DEFAULT_USER_ROLE || 'admin'; //should be 'admin' for legacy users
const userGroups = ['everyone'];
try {
await prisma.user.create({
Expand Down
1,450 changes: 667 additions & 783 deletions server/yarn.lock

Large diffs are not rendered by default.

Loading