From c4197c42936217a0fb5387dfc413d2a784ea2d13 Mon Sep 17 00:00:00 2001 From: Cedric Verstraeten Date: Thu, 6 Mar 2025 11:04:25 +0100 Subject: [PATCH] Update kerberos-hub-import-database-job.yaml --- .../hub/kerberos-hub-import-database-job.yaml | 29 +++++++++++++++++-- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/base/hub/kerberos-hub-import-database-job.yaml b/base/hub/kerberos-hub-import-database-job.yaml index 4c84463..d083ed9 100644 --- a/base/hub/kerberos-hub-import-database-job.yaml +++ b/base/hub/kerberos-hub-import-database-job.yaml @@ -51,22 +51,45 @@ data: { $set: { 'username': 'example-user', - 'email': 'your@email.com', + 'email': 'example-user@email.com', 'password': '$2a$10$jwLcD/.UT/1WLK7ct1XuHewI3GQXwW3zerPhCCs7QDrReEuIHbVYi', 'role': 'owner', + 'google2fa_enabled': false + 'timezone': 'Europe/Brussels', 'isActive': NumberLong(1), 'registerToken': '', - 'timezone': 'Europe/Brussels', 'updated_at': ISODate('2020-06-14T05:01:35.000Z'), 'created_at': ISODate('2016-09-20T09:27:58.811Z'), 'amazon_secret_access_key': 'K6rRLBI1xxxCk3C1H', 'amazon_access_key_id': 'AKIAxxxxxxG5Q', 'card_brand': 'Visa', 'card_last_four': '0000', - 'sequence_first': 1510657836, 'card_status': 'ok', 'card_status_message': null, + } + }, + { upsert: true } + ); + + + // This will create an application with the following credentials, which + // can be used to authenticate with the admin panel. + // username: example-application + // password: example-password + db.users.updateOne( + { '_id': ObjectId('57e1011e3178aa6c5cc774d2') }, + { + $set: { + 'username': 'example-application', + 'email': 'example-application@email.com', + 'password': '$2a$10$jwLcD/.UT/1WLK7ct1XuHewI3GQXwW3zerPhCCs7QDrReEuIHbVYi', + 'role': 'application', 'google2fa_enabled': false + 'timezone': 'Europe/Brussels', + 'isActive': NumberLong(1), + 'registerToken': '', + 'updated_at': ISODate('2020-06-14T05:01:35.000Z'), + 'created_at': ISODate('2016-09-20T09:27:58.811Z'), } }, { upsert: true }