add-postgresql-instance-user-and-database-validation #76

Merged
hsh-michaelhoennig merged 4 commits from add-postgresql-instance-user-and-database-validation into master 2024-07-15 12:00:35 +02:00
No description provided.
hsh-michaelhoennig added 3 commits 2024-07-15 09:57:43 +02:00
hsh-marcsandlus reviewed 2024-07-15 10:10:15 +02:00
@ -94,2 +94,2 @@
requiredParent(MANAGED_WEBSPACE), // TODO.spec: or PGSQL_USER?
assignedTo(PGSQL_INSTANCE)), // TODO.spec: or swapping parent+assignedTo?
requiredParent(PGSQL_USER), // thus, the PGSQL_USER_USER:Agent becomes RBAC owner
assignedTo(PGSQL_INSTANCE)), // keep in mind: no RBAC grants implied

evtl. rausnehmen, erreichbar über user

evtl. rausnehmen, erreichbar über user
hsh-michaelhoennig marked this conversation as resolved
hsh-marcsandlus reviewed 2024-07-15 10:15:35 +02:00
@ -0,0 +23,4 @@
@Override
protected Pattern identifierPattern(final HsHostingAssetEntity assetEntity) {
final var webspaceIdentifier = assetEntity.getParentAsset().getParentAsset().getIdentifier();
return Pattern.compile("^"+webspaceIdentifier+"$|^"+webspaceIdentifier+"_[a-z0-9]+$");

underscore auch möglich

underscore auch möglich
hsh-michaelhoennig marked this conversation as resolved
hsh-marcsandlus reviewed 2024-07-15 10:22:53 +02:00
@ -0,0 +28,4 @@
@Override
protected Pattern identifierPattern(final HsHostingAssetEntity assetEntity) {
final var webspaceIdentifier = assetEntity.getParentAsset().getIdentifier();
return Pattern.compile("^"+webspaceIdentifier+"$|^"+webspaceIdentifier+"_[a-z0-9]+$");

underscore

underscore
hsh-michaelhoennig marked this conversation as resolved
hsh-marcsandlus reviewed 2024-07-15 10:29:18 +02:00
@ -0,0 +15,4 @@
import static net.hostsharing.hsadminng.mapper.PatchMap.entry;
import static org.assertj.core.api.Assertions.assertThat;
class HsMariaPostgreSqlHostingAssetValidatorUnitTest {

without maria

without maria
hsh-michaelhoennig marked this conversation as resolved
hsh-marcsandlus reviewed 2024-07-15 10:30:30 +02:00
@ -0,0 +18,4 @@
class HsMariaPostgreSqlHostingAssetValidatorUnitTest {
private static final HsHostingAssetEntity GIVEN_MARIADB_INSTANCE = HsHostingAssetEntity.builder()
.type(MARIADB_INSTANCE)

postgres

postgres
hsh-michaelhoennig marked this conversation as resolved
hsh-marcsandlus approved these changes 2024-07-15 10:37:09 +02:00
hsh-michaelhoennig force-pushed add-postgresql-instance-user-and-database-validation from 64c5b17214 to 07f0b00510 2024-07-15 11:56:15 +02:00 Compare
hsh-michaelhoennig merged commit c32361a83a into master 2024-07-15 12:00:35 +02:00
hsh-michaelhoennig deleted branch add-postgresql-instance-user-and-database-validation 2024-07-15 12:00:35 +02:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: hostsharing/hs.hsadmin.ng#76
No description provided.