Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
Do not allow to create a database name called “bytebase”
天舟16dbe068e6b7
diff --git a/frontend/src/components/CreateDatabasePrepForm.vue b/frontend/src/components/CreateDatabasePrepForm.vueindex f62373d52b..1d8523b3f8 100644--- a/frontend/src/components/CreateDatabasePrepForm.vue+++ b/frontend/src/components/CreateDatabasePrepForm.vue@@ -13,6 +13,9 @@class="textfield mt-1 w-full"v-model="state.databaseName"/>+ <span v-if="isReservedName" class="text-red-600"+ >{{ state.databaseName }} is a reserved name</span+ ></div><div class="col-span-2 col-start-2 w-64">@@ -212,9 +215,14 @@ export default {assigneeId: showAssigneeSelect.value ? undefined : SYSTEM_BOT_ID,});+ const isReservedName = computed(() => {+ return state.databaseName?.toLowerCase() == "bytebase";+ });+const allowCreate = computed(() => {return (!isEmpty(state.databaseName) &&+ !isReservedName.value &&state.projectId &&state.environmentId &&state.instanceId &&@@ -291,6 +299,7 @@ export default {return {state,+ isReservedName,allowCreate,allowEditProject,showAssigneeSelect,