Reference correction & update configurations

This commit is contained in:
netkas 2025-01-27 03:25:25 -05:00
parent 3744cf5412
commit a04621b97d
7 changed files with 49 additions and 22 deletions

1
.idea/sqldialects.xml generated
View file

@ -2,6 +2,7 @@
<project version="4"> <project version="4">
<component name="SqlDialectMappings"> <component name="SqlDialectMappings">
<file url="file://$PROJECT_DIR$/src/Socialbox/Classes/Resources/database/authentication_otp.sql" dialect="MariaDB" /> <file url="file://$PROJECT_DIR$/src/Socialbox/Classes/Resources/database/authentication_otp.sql" dialect="MariaDB" />
<file url="file://$PROJECT_DIR$/src/Socialbox/Classes/Resources/database/authentication_passwords.sql" dialect="MariaDB" />
<file url="file://$PROJECT_DIR$/src/Socialbox/Classes/Resources/database/captcha_images.sql" dialect="MariaDB" /> <file url="file://$PROJECT_DIR$/src/Socialbox/Classes/Resources/database/captcha_images.sql" dialect="MariaDB" />
<file url="file://$PROJECT_DIR$/src/Socialbox/Classes/Resources/database/contact_known_keys.sql" dialect="MariaDB" /> <file url="file://$PROJECT_DIR$/src/Socialbox/Classes/Resources/database/contact_known_keys.sql" dialect="MariaDB" />
<file url="file://$PROJECT_DIR$/src/Socialbox/Classes/Resources/database/contacts.sql" dialect="MariaDB" /> <file url="file://$PROJECT_DIR$/src/Socialbox/Classes/Resources/database/contacts.sql" dialect="MariaDB" />

View file

@ -84,7 +84,11 @@
"email_address_required": false, "email_address_required": false,
"phone_number_required": false, "phone_number_required": false,
"birthday_required": false, "birthday_required": false,
"image_captcha_verification_required": false "image_captcha_verification_required": false,
"first_name_required": false,
"middle_name_required": false,
"last_name_required": false,
"url_required": false
}, },
"authentication": { "authentication": {
"enabled": true, "enabled": true,
@ -94,7 +98,16 @@
"max_signing_keys": 20, "max_signing_keys": 20,
"session_inactivity_expires": 43200, "session_inactivity_expires": 43200,
"image_captcha_expires": 300, "image_captcha_expires": 300,
"peer_sync_interval": 3600 "peer_sync_interval": 3600,
"get_contacts_limit": 100,
"default_display_picture_privacy": "PUBLIC",
"default_first_name_privacy": "CONTACTS",
"default_middle_name_privacy": "PRIVATE",
"default_last_name_privacy": "PRIVATE",
"default_email_address_privacy": "CONTACTS",
"default_phone_number_privacy": "CONTACTS",
"default_birthday_privacy": "PRIVATE",
"default_url_privacy": "PUBLIC"
}, },
"storage": { "storage": {
"path": "/etc/socialbox", "path": "/etc/socialbox",

View file

@ -1,18 +1,18 @@
create table authentication_otp create table authentication_passwords
( (
peer_uuid varchar(36) not null comment 'The Peer UUID associated with this record' peer_uuid varchar(36) not null comment 'The primary unique index of the peer uuid'
primary key comment 'The Peer UUID unique Index', primary key,
secret mediumtext not null comment 'The encrypted secret for the OTP', hash mediumtext not null comment 'The encrypted hash of the password',
updated timestamp default current_timestamp() not null comment 'The Timestamp for when the record was last updated', updated timestamp default current_timestamp() not null comment 'The Timestamp for when this record was last updated',
constraint authentication_otp_peer_uuid_uindex constraint authentication_passwords_peer_uuid_uindex
unique (peer_uuid) comment 'The Peer UUID unique Index', unique (peer_uuid) comment 'The primary unique index of the peer uuid',
constraint authentication_otp_registered_peers_uuid_fk constraint authentication_passwords_registered_peers_uuid_fk
foreign key (peer_uuid) references peers (uuid) foreign key (peer_uuid) references peers (uuid)
on update cascade on delete cascade on update cascade on delete cascade
) )
comment 'Table for housing encrypted OTP secrets for for verification'; comment 'Table for housing authentication passwords for registered peers';
create index authentication_otp_updated_index create index authentication_passwords_updated_index
on authentication_otp (updated) on authentication_passwords (updated)
comment 'The index for the updated column'; comment 'The index of the of the updated column of the record';

View file

@ -1,7 +1,7 @@
create table authentication_passwords create table authentication_passwords
( (
peer_uuid varchar(36) not null comment 'The Universal Unique Identifier for the peer that is associated with this password record' peer_uuid varchar(36) not null comment 'The primary unique index of the peer uuid'
primary key comment 'The primary unique index of the peer uuid', primary key,
hash mediumtext not null comment 'The encrypted hash of the password', hash mediumtext not null comment 'The encrypted hash of the password',
updated timestamp default current_timestamp() not null comment 'The Timestamp for when this record was last updated', updated timestamp default current_timestamp() not null comment 'The Timestamp for when this record was last updated',
constraint authentication_passwords_peer_uuid_uindex constraint authentication_passwords_peer_uuid_uindex

View file

@ -1,7 +1,7 @@
create table captcha_images create table captcha_images
( (
uuid varchar(36) default uuid() not null comment 'The Unique Universal Identifier of the captcha record' uuid varchar(36) default uuid() not null comment 'The Unique index for the UUID column'
primary key comment 'The Unique index for the UUID column', primary key,
peer_uuid varchar(36) not null comment 'The UUID of the peer that is associated with this captcha challenge', peer_uuid varchar(36) not null comment 'The UUID of the peer that is associated with this captcha challenge',
status enum ('UNSOLVED', 'SOLVED') default 'UNSOLVED' not null comment 'The status of the current captcha', status enum ('UNSOLVED', 'SOLVED') default 'UNSOLVED' not null comment 'The status of the current captcha',
answer varchar(8) null comment 'The current answer for the captcha', answer varchar(8) null comment 'The current answer for the captcha',

View file

@ -13,7 +13,7 @@ create table signing_keys
constraint signing_keys_pk constraint signing_keys_pk
unique (peer_uuid, uuid) comment 'The Unique Index pair for the signing key name and the UUID of the peer', unique (peer_uuid, uuid) comment 'The Unique Index pair for the signing key name and the UUID of the peer',
constraint signing_keys_registered_peers_uuid_fk constraint signing_keys_registered_peers_uuid_fk
foreign key (peer_uuid) references registered_peers (uuid) foreign key (peer_uuid) references peers (uuid)
on update cascade on delete cascade on update cascade on delete cascade
) )
comment 'Table for housing public signing keys for peers on the network'; comment 'Table for housing public signing keys for peers on the network';
@ -28,5 +28,5 @@ create index signing_keys_state_index
create index signing_keys_uuid_index create index signing_keys_uuid_index
on signing_keys (uuid) on signing_keys (uuid)
comment 'The index for the signing key name'; comment 'The index for the signing key namee';

View file

@ -84,7 +84,11 @@
"email_address_required": false, "email_address_required": false,
"phone_number_required": false, "phone_number_required": false,
"birthday_required": false, "birthday_required": false,
"image_captcha_verification_required": false "image_captcha_verification_required": false,
"first_name_required": false,
"middle_name_required": false,
"last_name_required": false,
"url_required": false
}, },
"authentication": { "authentication": {
"enabled": true, "enabled": true,
@ -94,7 +98,16 @@
"max_signing_keys": 20, "max_signing_keys": 20,
"session_inactivity_expires": 43200, "session_inactivity_expires": 43200,
"image_captcha_expires": 300, "image_captcha_expires": 300,
"peer_sync_interval": 3600 "peer_sync_interval": 3600,
"get_contacts_limit": 100,
"default_display_picture_privacy": "PUBLIC",
"default_first_name_privacy": "CONTACTS",
"default_middle_name_privacy": "PRIVATE",
"default_last_name_privacy": "PRIVATE",
"default_email_address_privacy": "CONTACTS",
"default_phone_number_privacy": "CONTACTS",
"default_birthday_privacy": "PRIVATE",
"default_url_privacy": "PUBLIC"
}, },
"storage": { "storage": {
"path": "/etc/socialbox", "path": "/etc/socialbox",