netkas
f9185b5969
Add EncryptionChannelRejectMessage class to handle message rejection in encryption channels
2025-03-06 15:16:43 -05:00
netkas
ec44e85a5e
Improve documentation for encryption channel methods and add rejection functionality
2025-03-06 15:14:33 -05:00
netkas
91153a3532
Add factory method to create InvalidRpcArgumentException from InvalidArgumentException
2025-03-06 15:14:27 -05:00
netkas
1fedaa27c4
Refactor channel retrieval methods to support pagination and enhance peer address validation
2025-03-06 15:14:23 -05:00
netkas
fa78fdbac2
Add methods for managing encrypted channels, including acceptance, acknowledgment, creation, and retrieval
2025-03-04 13:50:37 -05:00
netkas
e3ca7869e2
Rename getAddress method to getPeerAddress for clarity
2025-03-04 13:41:57 -05:00
netkas
d9955f9393
Add EncryptionChannelMessage class for managing encryption channel message data
2025-03-04 13:41:52 -05:00
netkas
912de28871
Add methods to retrieve message owner and receiver, and convert record to standard message
2025-03-04 13:41:48 -05:00
netkas
1723983072
Add getSharedSecret method for Diffie-Hellman key exchange in EncryptionChannelSecret
2025-03-04 13:41:44 -05:00
netkas
4a37844920
Add EncryptionChannelInstance class for managing encryption channel messages
2025-03-04 13:41:39 -05:00
netkas
8a843eb60b
Refactor RegisteredPeerManager to use getPeerAddress() for domain and username retrieval
2025-03-04 13:41:36 -05:00
netkas
8663de6e61
Add method to acknowledge a batch of messages in EncryptionChannelManager
2025-03-04 13:41:32 -05:00
netkas
a0dcec9733
Add ENCRYPTION_CHANNEL_ACKNOWLEDGE_MESSAGE case to StandardMethods enum
2025-03-04 13:41:26 -05:00
netkas
90324072b1
Fix incorrect method call for retrieving peer address in EncryptionDeclineChannel
2025-03-04 13:41:22 -05:00
netkas
3a5bf57ec1
Add EncryptionChannelReceive class for handling incoming messages in encryption channels
2025-03-04 13:41:17 -05:00
netkas
23d08f45ee
Enhance EncryptionChannelAcknowledgeMessage to validate message_uuid and handle external acknowledgments
2025-03-04 13:41:12 -05:00
netkas
e142add843
Fix incorrect method call for retrieving peer address in EncryptionAcceptChannel
2025-03-04 13:41:07 -05:00
netkas
8dde6fed13
Added EncryptionChannelAcknowledge method for handling message acknowledgments in encryption channels
2025-03-04 13:41:00 -05:00
netkas
371ebfec1a
Correction
2025-03-03 15:35:24 -05:00
netkas
0643f3edfd
Added EncryptionGetChannel
2025-03-03 15:04:11 -05:00
netkas
5a87d5ccd1
Added EncryptionDeclineChannel
2025-03-03 15:03:41 -05:00
netkas
02b3f1931c
Added EncryptionCreateChannel
2025-03-03 15:03:20 -05:00
netkas
49c6a8ebbc
Added EncryptionChannelSend
2025-03-03 15:03:01 -05:00
netkas
f4c3954b06
Add encryption channel methods and related classes
2025-03-03 14:59:37 -05:00
netkas
b4cd8092e4
Add encryption channel methods and related classes
2025-03-03 14:59:15 -05:00
netkas
1b3829f62e
Implement encryption channel methods and refactor related classes
2025-03-03 14:58:37 -05:00
netkas
fe5909aeae
Added EncryptionChannelMessageStatus
2025-03-03 14:41:12 -05:00
netkas
0e1201bc86
Added EncryptionAcceptChannel
2025-03-03 14:40:14 -05:00
netkas
526dbd8ff1
Refactored parameter names and encryptionChannelSecrets
2025-03-03 14:39:20 -05:00
netkas
9eeab95e4d
Logic Correction from "AND" to "OR"
2025-03-03 14:38:59 -05:00
netkas
603ee57511
Added nullable $parameterName for InvalidRpcArgumentException
2025-03-03 14:38:42 -05:00
netkas
47ebcb71ae
Refactored EncryptionChannelSecret
2025-03-03 14:38:32 -05:00
netkas
4152c06469
Added methods to determine certain types
2025-03-03 14:38:20 -05:00
netkas
d18b00493d
Minor improvements
2025-03-03 14:37:07 -05:00
netkas
865dd96660
Add encryption_channels_com table for managing encrypted communication messages
2025-03-03 04:26:53 -05:00
netkas
a13703b633
Add encryption_channels_com table for managing encrypted communication messages
2025-03-03 04:26:48 -05:00
netkas
545c8aa3d5
Add UUID_MISMATCH error case to StandardError enum
2025-03-03 04:26:43 -05:00
netkas
7d63b6411d
Remove unnecessary exception documentation from isExternal method
2025-03-03 04:26:37 -05:00
netkas
ef9336ca54
Refactor containsParameter method to improve null and empty string handling
2025-03-03 04:26:29 -05:00
netkas
d2e4ebd657
Rename ENCRYPTED_CHANNELS and CHANNEL_COM constants to ENCRYPTION_CHANNELS and ENCRYPTION_CHANNELS_COM for consistency
2025-03-03 04:26:23 -05:00
netkas
42b5ec5cdb
Add EncryptionCloseChannel method for managing encryption channel closure
2025-03-03 04:26:14 -05:00
netkas
27a0005468
Remove obsolete encrypted_channels.sql file
2025-03-03 04:26:05 -05:00
netkas
f1dbf5a4d0
Handle InvalidArgumentException in RPC processing and update error messages
2025-03-03 04:25:40 -05:00
netkas
bb94ae8d78
Add .vscode to .gitignore
2025-03-03 04:25:30 -05:00
netkas
c018cc8c04
Renamed encrypted_channels.sql to encryption_channels.sql and added encryption_channels_com.sql
2025-03-03 04:24:33 -05:00
netkas
94b6e1ff01
Added EncryptionChannelMessageRecord and EncryptionChannelRecord
2025-02-21 22:59:42 -05:00
netkas
1c95fb93ea
Refactored EncryptionChannelManager
2025-02-21 22:59:20 -05:00
netkas
28a5cb9b07
Renamed CommunicationRecipientType.php to EncryptionMessageRecipient.php
2025-02-21 22:59:10 -05:00
netkas
4a2a307fed
Renamed EncryptionChannelState.php to EncryptionChannelStatus.php
2025-02-21 22:58:45 -05:00
netkas
1f5a04d04e
Updated PhpDoc
2025-02-21 22:58:04 -05:00
netkas
e2b5bfab32
Removed unused Encryption channel objects
2025-02-20 00:39:58 -05:00
netkas
29a3d42538
Major changes, revamp required
2025-02-20 00:34:07 -05:00
netkas
1f9890bba0
Updated standard error code
2025-02-19 14:57:47 -05:00
netkas
2f59c9c16c
Reordered the logger statement in the case where the rest of the execution fails for whatever reason
2025-02-19 14:51:18 -05:00
netkas
0a773101d2
Reordered the logger statement in the case where the rest of the execution fails for whatever reason
2025-02-19 14:51:13 -05:00
netkas
6001e85160
Improved signature verification procedure to be simplified for server-side verification purposes.
2025-02-19 14:50:31 -05:00
netkas
d82e7042a6
Added client method createSignature
2025-02-11 14:50:57 -05:00
netkas
25d1a001fd
Rewrote SocialClient
2025-02-11 13:44:00 -05:00
netkas
b076f80ce5
Updated docs
2025-02-11 13:31:15 -05:00
netkas
a456dda62d
Improved exception handling
2025-02-11 13:16:23 -05:00
netkas
ee48456f2f
Renamed SigningKey to Signature
2025-02-10 15:40:20 -05:00
netkas
2362e36ca4
Renamed SettingsGetSigningKeys to SettingsGetSignatures
2025-02-10 15:38:43 -05:00
netkas
6f600fa45e
Renamed SettingsGetSigningKey to SettingsGetSignature
2025-02-10 15:37:53 -05:00
netkas
d9127a50e6
Correction
2025-02-10 15:23:21 -05:00
netkas
466ebcd1a8
Implemented getSelf
2025-02-10 15:16:45 -05:00
netkas
95dd4eb5f2
updated VerifyPeerSignature to make timed signatures optional, updated parameter names and improved validation
2025-02-08 00:33:19 -05:00
netkas
9e18db3e68
Minor improvements
2025-02-07 22:39:48 -05:00
netkas
7c8e0ddf86
Added DuplicationCode NoInspection
2025-02-07 22:36:12 -05:00
netkas
828b7c9b5c
Renamed uuid to signature_uuid
2025-02-07 22:33:19 -05:00
netkas
a03bc464c0
Correction
2025-02-07 22:30:45 -05:00
netkas
0396ba5843
Correction
2025-02-07 22:30:14 -05:00
netkas
0b9a566e8f
Correction
2025-02-07 22:30:11 -05:00
netkas
50e2d18520
Reversed the default parameter
2025-02-07 22:30:05 -05:00
netkas
13e236f244
Use the new nullAllowed parameter
2025-02-07 22:25:37 -05:00
netkas
ba3b35de9b
Added parameter nullAllowed to return True if the parameter exists AND the parameter is not null if nullAllowed is set to False, by default it's True.
2025-02-07 22:24:57 -05:00
netkas
05f6661a75
Renamed ContactRecord to Contact
2025-02-07 18:23:10 -05:00
netkas
a1704338c8
Added method importData to import data from external servers
2025-02-06 15:46:11 -05:00
netkas
d929a9ec4c
Added Standard Objects for the encryption channel
2025-02-06 15:38:52 -05:00
netkas
0e08bef3bc
Added Encrypted channels and communication methods
2025-02-06 15:13:00 -05:00
netkas
b380df95fe
Removed unused import
2025-02-04 15:07:05 -05:00
netkas
4068862d3c
Removed unused exception
2025-02-04 15:06:41 -05:00
netkas
4edb34aab1
Refactored StandardMethods to be more organized
2025-02-03 17:55:18 -05:00
netkas
cf1bd2e057
Renamed Authenticate to VerificationAuthenticate
2025-02-03 17:53:39 -05:00
netkas
a7fc8e87d9
Added method SettingsInformationFieldExists
2025-02-03 15:22:44 -05:00
netkas
8920080ada
Added method VerifyPeerSignature
2025-02-03 15:00:37 -05:00
netkas
c4eefd5356
Improved exception handling
2025-02-03 14:52:17 -05:00
netkas
7485733219
Added method verifyPeerSignature(PeerAddress|string $signingPeer, string $signatureUuid, string $signatureKey, string $signature, string $messageHash, int $signatureTime): SignatureVerificationStatus
2025-02-03 14:11:07 -05:00
netkas
0e190c085a
Added method signTimedMessage() and verifyTimedMessage() for verifying messages based on signed timestamps
2025-02-03 13:59:11 -05:00
netkas
3472728f3a
Added missing method
2025-02-03 13:41:48 -05:00
netkas
f74a91963e
Made message signing in Cryptography use SHA512 as the message content for signatures rather than the message content itself to allow for simplified verification in the future
2025-02-03 13:38:41 -05:00
netkas
0a13183a0e
Removed composer.json (Ew!)
2025-02-03 13:25:16 -05:00
netkas
2a0aab4a21
Improved Exception Handling
2025-02-03 13:12:40 -05:00
netkas
24530f5494
Improved Exception Handling
2025-02-03 13:02:36 -05:00
netkas
fdf9da12aa
Updated method Authenticate to do one additional check
2025-01-31 22:33:51 -05:00
netkas
388605dbce
Improved exception handling
2025-01-31 18:34:59 -05:00
netkas
c813139d9e
Improved exception handling
2025-01-31 18:33:24 -05:00
netkas
998a7ad2ec
Improved exception handling
2025-01-31 18:29:12 -05:00
netkas
056ee90515
Improved exception handling
2025-01-31 18:28:09 -05:00
netkas
a0acb28037
Improved exception handling
2025-01-31 18:26:53 -05:00
netkas
3510204dae
Improved exception handling
2025-01-31 18:19:44 -05:00
netkas
cf2936e8e5
Improved exception handling
2025-01-31 18:19:09 -05:00
netkas
cd4a45c811
Added SettingsSignatureExists
2025-01-31 18:14:36 -05:00
netkas
508d4565d9
Added existence check
2025-01-31 18:13:45 -05:00
netkas
6ba7397783
Minor correction
2025-01-31 18:11:40 -05:00
netkas
b78d176fde
Improved limit reached error message
2025-01-31 15:33:49 -05:00
netkas
d8fe574437
Improved exception handling
2025-01-31 15:33:05 -05:00
netkas
3014b0b97f
Removed unnecessary check
2025-01-31 15:32:06 -05:00
netkas
8c2cbf48d5
Improved Peer Resolution and fixed minor bugs and issues, completed todo
2025-01-31 15:31:07 -05:00
netkas
7a39b0fd35
Renamed PeerRecord to PeerDatabaseRecord
2025-01-31 15:13:12 -05:00
netkas
148a65c2f7
Improved exception handling
2025-01-31 15:07:24 -05:00
netkas
b813d38ff9
Removed unused import
2025-01-31 15:04:36 -05:00
netkas
3b18077e76
Improved exception handling
2025-01-31 15:04:22 -05:00
netkas
8a86bd04a6
Improved exception handling
2025-01-31 15:03:52 -05:00
netkas
aa70a83c26
Improved return logic
2025-01-31 13:39:32 -05:00
netkas
4c28112e3b
Changed type Exception to Throwable
2025-01-31 13:29:18 -05:00
netkas
0ed6a36d50
Improved InvalidRpcArgumentException handling
2025-01-31 13:28:28 -05:00
netkas
55137a93f2
Added better exception handling
2025-01-31 13:15:34 -05:00
netkas
268630226e
Removed unused imports
2025-01-31 13:05:50 -05:00
netkas
2ba814f9b4
Peer resolution for a contact isn't needed, reference is found in 'address' which could be resolved at a later time
2025-01-31 13:05:31 -05:00
netkas
1f55538ad4
Improved exception handling
2025-01-31 12:56:45 -05:00
netkas
0f67bb3337
Removed unused import
2025-01-30 21:37:36 -05:00
netkas
28cb7a0a88
Removed unused import
2025-01-30 20:00:49 -05:00
netkas
e63e7eb0d7
Added method AddressBookRevokeSignature
2025-01-30 19:59:29 -05:00
netkas
051ad11aba
Updated PhpDoc
2025-01-30 19:56:25 -05:00
netkas
caf3299039
Updated PhpDoc
2025-01-30 19:56:12 -05:00
netkas
c3129f89d6
Updated return logic for AddressBookGetContact
2025-01-30 19:55:10 -05:00
netkas
57d5528b31
Updated AddressBookGetContacts to return standard contact objects
2025-01-30 19:54:27 -05:00
netkas
83a47ddd5e
Updated method AddressBookGetContact to return a full standard contact, improved standard contact object
2025-01-30 19:51:37 -05:00
netkas
4f1f0ce151
Added PhpDoc
2025-01-30 15:42:18 -05:00
netkas
8d6675915a
Imported class
2025-01-30 15:24:55 -05:00
netkas
4dfff8d1a4
Added Exception Handling
2025-01-30 15:23:41 -05:00
netkas
d12b4d1c1d
Updated PhpDocs
2025-01-30 15:23:19 -05:00
netkas
330e7f876b
Added the ability to trust signing keys & resolve signing keys for peers, minor improvements and added new standard error "CONFLICT"
2025-01-30 15:20:11 -05:00
netkas
4e22a8bacd
Updated PhpDoc
2025-01-30 12:42:02 -05:00
netkas
a934049ea5
Changed Format
2025-01-30 12:41:04 -05:00
netkas
95d7a8b021
Updated Exception Handling to AddressBookGetContacts
2025-01-30 12:31:59 -05:00
netkas
4f8f43d10b
Updated Exception Handling to AddressBookGetContact
2025-01-30 12:30:20 -05:00
netkas
b8346e139c
Renamed StandardException to StandardRpcException
2025-01-30 00:37:37 -05:00
netkas
4856dacb9d
Updated exception handling and logic in AddressBookDeleteContact
2025-01-30 00:35:19 -05:00
netkas
6e4c7bcc04
Updated exception handling in AddressBookContactExists
2025-01-30 00:34:22 -05:00
netkas
831f6cc8e2
Updated logic
2025-01-30 00:34:05 -05:00
netkas
06b55a65b6
Updated exception handling in AddressBookAddContact
2025-01-30 00:32:41 -05:00
netkas
f47d31c227
Updated message formatting in exception
2025-01-30 00:31:41 -05:00
netkas
8ced492c5b
Added InvalidRpcArgumentException which extends StandardException & Renamed MissingArgumentException to MissingRpcArgumentException for clarification and to avoid conflict with existing \InvalidArgumentException (base php)
2025-01-30 00:30:25 -05:00
netkas
cffed44f96
Added MissingArgumentException that extends StandardException
2025-01-30 00:28:33 -05:00
netkas
efc9905200
Moved StandardException to it's own namespace
2025-01-30 00:27:06 -05:00
netkas
b8ef387bb2
Added PhpDoc
2025-01-30 00:26:01 -05:00
netkas
9d8cf3b1a5
Added Method AddressBookContactExists
2025-01-30 00:24:11 -05:00
netkas
1e10e761db
Restructured StandardMethod Namespaces
2025-01-29 15:52:38 -05:00
netkas
d6e397247a
Formatting update
2025-01-29 15:42:28 -05:00
netkas
f76109347a
Updated error codes
2025-01-29 15:42:19 -05:00
netkas
6f9c2ef517
Added additional methods and updated the return type for some of the existing methods
2025-01-29 15:42:11 -05:00
netkas
59d08b88b1
Added decentralized method resolvePeerSignature
2025-01-29 15:41:49 -05:00
netkas
7d5071747b
Added SigningKeyState
2025-01-29 15:41:25 -05:00
netkas
f073b8d004
Added TODO
2025-01-29 15:41:14 -05:00
netkas
94a7ce05f8
Added additional conditional checks and minor corrections
2025-01-29 15:40:59 -05:00
netkas
10e1368942
Added the ability to parse created and expired as strings/null
2025-01-29 15:40:40 -05:00
netkas
5e26b08f9e
Added additional check
2025-01-29 15:40:24 -05:00
netkas
b1c669dfa8
Added check if the peer is enabled and if it uses a password, a password check is required to set the otp post registration
2025-01-29 15:40:14 -05:00
netkas
7809f32a5e
Refactored StandardMethods and added to-be-implemented methods
2025-01-29 15:27:21 -05:00
netkas
3fe2d9e0df
Updated VerificationGetImageCaptcha to return the new object
2025-01-29 15:27:09 -05:00
netkas
c2330b374a
Added TextCaptchaVerification
2025-01-29 15:26:58 -05:00
netkas
716a5f15eb
Minor changes
2025-01-29 15:26:51 -05:00
netkas
75897da9e9
Added SignatureKeyPair for a client object
2025-01-29 15:26:36 -05:00
netkas
6732112e12
Added SettingsGetSigningKey as a standard method
2025-01-29 15:26:27 -05:00
netkas
42d276939b
Added SettingsGetInformationField as a standard method
2025-01-29 15:26:22 -05:00
netkas
f76f76d31a
Improved expiration check
2025-01-29 15:26:10 -05:00
netkas
38699b6bcc
Added additional methods and the ability to create signature keys
2025-01-29 15:25:50 -05:00
netkas
fe217002e3
Added method (incomplete) ResolvePeerSignature
2025-01-29 15:25:36 -05:00
netkas
a02a765f11
Updated method getField() to return null instead of an exception if the requested record was not found
2025-01-29 15:25:22 -05:00
netkas
dd35bc69b3
Added ImageCaptchaVerification as a standard object
2025-01-29 15:24:48 -05:00
netkas
4a9c42a52d
Removed ImageCaptcha (Old)
2025-01-29 15:24:39 -05:00
netkas
c5093e4d0c
Added ExternalUrlVerification as a standard object
2025-01-29 15:24:32 -05:00
netkas
99c6c1385e
Cleanup
2025-01-29 15:24:22 -05:00
netkas
cebfa72ec0
Moved ExportedSession from Objects to Objects\Client & Added signing keypairs & a default keypair
2025-01-29 15:24:06 -05:00
netkas
bdd35dc8ac
Added ContactKnownKeyRecord.php
2025-01-29 15:23:42 -05:00
netkas
6c1c77ad20
Added method AddressBookUpdateRelationship
2025-01-29 15:23:25 -05:00
netkas
674ca58f08
Added method AddressBookTrustSignature
2025-01-29 15:23:16 -05:00
netkas
e38ebf277a
Rewrote contact_known_keys structure
2025-01-27 15:28:41 -05:00
netkas
a05b02da71
Added missing previous
2025-01-27 12:45:25 -05:00
netkas
e9f70e7115
Added method SettingsDeleteSignature
2025-01-27 12:38:36 -05:00
netkas
321bf1eadb
Argument correction
2025-01-27 03:52:28 -05:00
netkas
f40b9ed7f4
Resolve peer at host identification to prevent accidental peer creation when it isn't necessary
2025-01-27 03:52:17 -05:00
netkas
1b89a7f921
Improved Flag Parsing in Peer object constructor
2025-01-27 03:51:44 -05:00
netkas
3e5199d776
Corrected property access in InformationField
2025-01-27 03:51:28 -05:00
netkas
93eff1320f
Corrected session initiation logic
2025-01-27 03:38:11 -05:00
netkas
efc74cfa49
Updated fgkey
2025-01-27 03:29:39 -05:00
netkas
23fe57d514
Oops
2025-01-27 03:27:58 -05:00
netkas
a04621b97d
Reference correction & update configurations
2025-01-27 03:25:25 -05:00
netkas
3744cf5412
Updated Database Structure
2025-01-27 02:53:59 -05:00
netkas
ec18199c08
ResolvePeer method now checks if the caller is a host and the request contains a IdentifyAs header
2025-01-27 02:46:22 -05:00
netkas
c3f6f6096e
RegisteredPeerManager synchronizeExternalPeer() method now synchronizes peer information too that is public by default
2025-01-27 02:46:21 -05:00
netkas
481ea884f2
Added self-contact check
2025-01-27 02:35:53 -05:00
netkas
8d5a95da9b
Added self-host resolution for resolvePeer
2025-01-27 02:35:41 -05:00
netkas
a9e5d6eb46
Added check for adding self as a contact
2025-01-27 02:34:54 -05:00
netkas
3311862263
Refactor and enhance peer resolution logic
2025-01-25 17:26:13 -05:00
netkas
aba9adf916
Added the method AddressBookGetContact and minor improvements in other implementations
2025-01-24 19:12:03 -05:00
netkas
e2a0e2f27f
Updated error messages
2025-01-24 15:25:06 -05:00
netkas
6401e46bc0
Made registration stage always allow information field updates
2025-01-24 15:21:58 -05:00
netkas
baff154b05
Added missing import
2025-01-24 15:21:06 -05:00
netkas
71d921def5
Updated PhpDoc
2025-01-24 15:20:42 -05:00
netkas
a826f4f3a9
Updated Standard Peer object to include standard information fields and updated PeerInformationManager to retrieve filtered fields per privacy condition
2025-01-24 15:20:19 -05:00
netkas
f689e36378
Refactored Peer Information to use InformationFields rather than being hard-coded into the peer record
2025-01-24 15:10:20 -05:00
netkas
75de51c910
Added method ADDRESS_BOOK_GET_CONTACTS
2025-01-22 22:01:07 -05:00
netkas
d56483119c
Minor changes
2025-01-22 18:20:00 -05:00
netkas
83112f0137
Added debug logging to RpcClient
2025-01-22 18:16:48 -05:00
netkas
9e02f0c29b
Simplified RpcRequest constructor to accept StandardMethods & string as a input for the method parameter
2025-01-22 15:43:27 -05:00
netkas
aa445c7bdd
Added method ADDRESS_BOOK_DELETE_CONTACT
2025-01-22 15:40:50 -05:00
netkas
0d09e77d59
Updated PhpDocs
2025-01-22 15:36:19 -05:00
netkas
2933b5435f
Updated Formatting
2025-01-22 15:36:12 -05:00
netkas
3bb5f2788e
Updated PhpDocs
2025-01-22 15:36:01 -05:00
netkas
bb3e0a5ffa
Updated PhpDoc, added method ADDRESS_BOOK_ADD_CONTACT, minor correction in getRegistrationMethods where $methods was not initialized
2025-01-22 15:35:35 -05:00
netkas
ad1e819094
Type error fixes
2025-01-22 15:04:41 -05:00
netkas
9bf7025344
Updated documentation for UDP logging & Changed host to shared docker host
2025-01-22 14:22:51 -05:00
netkas
e41a7867b4
Added CLI logger
2025-01-22 14:22:28 -05:00
netkas
a3456bdeed
Added LogLib2 support
2025-01-22 13:18:55 -05:00
netkas
5afe4429ed
Add peer_sync_interval
configuration to socialbox policies
2025-01-15 19:21:37 -05:00
netkas
97757bec5f
Enable internal exception display in .env configuration
2025-01-15 19:21:20 -05:00
netkas
9dd8c39ce1
Refactor peer resolution logic and add sync interval setting
2025-01-15 15:49:53 -05:00
netkas
ab03439e04
Refactor peer synchronization and resolution logic.
2025-01-15 15:21:44 -05:00
netkas
f9a268058f
Refactor toStandardPeer to improve data construction clarity
2025-01-15 15:15:21 -05:00
netkas
8cad8f97fe
Add __toString method to PeerAddress class
2025-01-15 15:15:06 -05:00
netkas
2fcdb7cd56
Minor change (automated)
2025-01-15 15:14:44 -05:00
netkas
eda41155aa
Update exception message for invalid address type
2025-01-15 15:04:53 -05:00
netkas
4b69a7559b
Set internal exceptions display to true in test config
2025-01-15 15:04:44 -05:00
netkas
f0f7f88783
Enable internal exception display in configuration
2025-01-15 14:56:12 -05:00
netkas
4064dc9991
Enable internal exception display in configuration
2025-01-15 14:56:09 -05:00
netkas
a2bbb6e57b
Add transport encryption and configuration updates
2025-01-15 14:22:46 -05:00
netkas
4a143a8a97
Refactor database operations for resolved DNS records
2025-01-15 13:55:52 -05:00
netkas
3adb62cfc7
Add PING request type to RequestType enum
2025-01-15 13:55:43 -05:00
netkas
a7f5d268de
Add support for handling PING requests in Socialbox
2025-01-15 13:55:33 -05:00
netkas
56acd4cf81
Enhance RpcException message with encryption algorithm details
2025-01-14 19:26:31 -05:00
netkas
e5c6bed02e
Add server_public_signing_key to session response payload
2025-01-14 19:26:20 -05:00
Netkas
0daf5f7e5c
Merge pull request #4 from mykola2312/pr-php-logs
...
Make supervisord watch php logs
2025-01-14 18:01:49 -05:00
mykola2312
5e78afc43e
Make supervisord watch php logs
2025-01-15 00:54:59 +02:00
netkas
c6bc83ad87
Fix key name in RPC request payload
2025-01-14 15:45:25 -05:00
netkas
5cb8e72ca5
Refactor header validation logic.
2025-01-14 15:45:17 -05:00
netkas
2fa4fdebee
Add getter methods to RpcClient for instance properties
2025-01-14 15:45:10 -05:00
netkas
1cab09b675
Add isExternal method to PeerAddress class
2025-01-14 15:45:02 -05:00
netkas
34b31c58a8
Update RPC endpoints and add shared network configuration
2025-01-14 15:44:54 -05:00
netkas
cd12c1b987
Refactor SessionFlags handling and improve test coverage
2025-01-14 14:53:47 -05:00
netkas
9d98659541
Add docker directory to web resources configuration
2025-01-14 14:53:36 -05:00
netkas
a4602bab91
Add option to display internal exceptions in produceError
2025-01-14 14:53:29 -05:00
netkas
edf6677256
Add error handling and update parameter in RPC request
2025-01-14 14:53:21 -05:00
netkas
e7516083be
"Ensure consistent file formatting across config files
2025-01-14 14:53:10 -05:00
netkas
1f673aab71
Refactor file structure for better Docker organization
2025-01-14 14:52:59 -05:00
netkas
14ad8588b0
Add ContactRelationshipType enum
2025-01-14 14:52:40 -05:00
netkas
b46423db14
Add ContactRecord class for handling contact data
2025-01-14 14:51:37 -05:00
netkas
9dd60330d2
Add ContactManager for managing contact-related operations
2025-01-14 14:26:41 -05:00
netkas
92c70559f4
Fix session expiration logic in SessionRecord
2025-01-11 19:59:16 -05:00
netkas
0fbb824f10
Add error handling and refactor peer synchronization logic
2025-01-11 19:49:20 -05:00
netkas
33452a42ef
Add SQL dialect for ContactManager.php
2025-01-11 19:39:17 -05:00
netkas
7eae62cfd8
Add updated
field to RegisteredPeerRecord
2025-01-11 19:39:09 -05:00
netkas
107ca0b9ca
Add method to synchronize external peers in the database
2025-01-11 19:38:21 -05:00
netkas
24e21038e8
Handle host peer identification and synchronization logic
2025-01-11 19:38:09 -05:00
netkas
3662f668f0
Add optional "identifiedAs" parameter for RPC requests
2025-01-11 19:37:49 -05:00
netkas
72a6aaec5b
Update error messages in Authenticate.php for clarity
2025-01-10 18:18:17 -05:00
netkas
9e9596989d
Refactor session flag handling and add VER_AUTHENTICATION.
2025-01-10 18:17:28 -05:00
netkas
4d01947092
Add authentication method to SocialClient
2025-01-10 18:11:24 -05:00
netkas
9d9a4b46b3
Add Authenticate method to handle external peer authentication
2025-01-10 18:09:47 -05:00
netkas
bed4e10fe2
Disable mandatory user agreement acceptance and CAPTCHA.
2025-01-10 15:25:19 -05:00
netkas
ffa3eac722
Prevent duplicate mock DNS records in ServerResolver
2025-01-10 15:24:38 -05:00
netkas
a4b17f91e0
Minor Correction
2025-01-10 15:17:12 -05:00
netkas
62c8d332a9
Add peer resolution through the resolvePeer
method
2025-01-10 15:16:02 -05:00
netkas
fde3ccfc68
Add external session management and support for remote servers
2025-01-10 14:58:24 -05:00
netkas
da3fe9c5a7
Add mock server resolvers for testing purposes
2025-01-10 13:34:53 -05:00
netkas
ec32978050
Handle missing session in DHE exchange requests
2025-01-10 13:34:40 -05:00
netkas
2c83604057
Refactor mockRecord method to support string input.
2025-01-10 13:34:18 -05:00
netkas
36a2d52041
Ensure server keypair expiration checks handle invalid values
2025-01-10 13:34:02 -05:00
netkas
e9d51a19d3
Update mock server initialization by simplifying TXT parsing
2025-01-10 13:30:50 -05:00
netkas
ec7adec9bf
Fix incorrect null parameter in generichash function, as null is no longer an acceptable value
2025-01-10 13:30:35 -05:00
netkas
a41313c221
Normalize header keys to lowercase for consistency.
2025-01-10 13:30:18 -05:00
netkas
46a006eecf
Add DNS mocks configuration for coffee.com and teapot.com
2025-01-10 04:54:48 -05:00
netkas
0e88689a50
Removed test keys as it's no longer needed, the keys are found in the configuration files.
2025-01-10 04:54:35 -05:00
netkas
26c7cd650f
Handle null values and validate inputs in RegisteredPeerRecord
2025-01-09 15:47:21 -05:00
netkas
acc53a492f
Refactor mock server configuration logging and key.
2025-01-09 15:10:51 -05:00
netkas
fc4b2b50f8
Add configurations for Coffee and Teapot instances
2025-01-09 15:07:59 -05:00
netkas
2a62430596
Update DNS mock data and add key files for Coffee and Teapot
2025-01-09 15:06:29 -05:00
netkas
b75946c70b
Refactor DNS record generation in DnsRecordCommand.
2025-01-09 15:00:15 -05:00
netkas
5d1ba61916
Fix handling of DNS Mock Server input in InitializeCommand
2025-01-09 15:00:07 -05:00
netkas
fc9e80785d
Rename service and container identifiers for clarity.
2025-01-09 14:49:11 -05:00
netkas
e7f86bcd1d
Refactor service configurations and add Coffee/Teapot setup.
2025-01-09 13:29:09 -05:00
netkas
b028e02451
??? Reverted Changes, works now.
2025-01-08 15:49:25 -05:00
netkas
8b5d2e23e3
Add libsodium-dev and enable libsodium in Dockerfile
2025-01-08 15:05:04 -05:00
netkas
86acae60a2
Add support for authentication_otp database object
2025-01-08 15:02:44 -05:00
netkas
7ac1bead49
Refactor DNS mocking implementation.
2025-01-08 14:53:48 -05:00
netkas
e784137480
Add support for mock servers and DNS mocking.
2025-01-08 04:17:06 -05:00
netkas
bfe8064a94
Add mocking functionality to ServerResolver class
2025-01-07 21:03:53 -05:00
netkas
deb4667975
Add password, OTP, and user data deletion methods
2025-01-07 15:50:06 -05:00
netkas
17f20b25b8
Add new RPC methods for client capabilities and authentication
2025-01-07 15:29:37 -05:00
netkas
77911af6d9
Label unimplemented methods in StandardMethods enum.
2025-01-07 15:26:32 -05:00
netkas
70c0fb2e54
Add authentication configuration and allowed methods logic
2025-01-07 15:25:32 -05:00
netkas
cabf1f35a8
Fix password verification flow update on failed attempts
2025-01-07 14:16:29 -05:00
netkas
d99ded7281
Remove unused updateOtp method from OneTimePasswordManager.
2025-01-07 14:15:28 -05:00
netkas
866bb90f2a
Add OTP support with implementation for creation, deletion, and verification.
2025-01-07 14:15:07 -05:00
netkas
d9c8208310
Added OTP Cryptography (In-Development)
2025-01-06 18:00:45 -05:00
netkas
3d57347023
Minor correction
2025-01-06 17:32:12 -05:00
netkas
b2aa5ed6a2
Add image captcha expiration policy configuration
2025-01-06 15:52:06 -05:00
netkas
ab957226d5
Add methods to delete email, phone number, and birthday
2025-01-06 15:22:52 -05:00
netkas
585ff46810
Added the method SettingsSetBirthday
2025-01-06 15:14:04 -05:00
netkas
c0de6ce006
Added methods setBirthday(string|RegisteredPeerRecord $peer, int $year, int $month, int $day): void and deleteBirthday(string|RegisteredPeerRecord $peer): void to \Socialbox\Managers > RegisteredPeerManager
2025-01-06 15:11:14 -05:00
netkas
20fa093463
Added method SettingsSetPhoneNumber
2025-01-06 15:00:42 -05:00
netkas
bda8fdc623
Added parameter check and condition check
2025-01-06 14:58:53 -05:00
netkas
e4e07e120a
Minor correction for null-types
2025-01-06 14:54:35 -05:00
netkas
65c2254b0c
Removed logging events
2025-01-06 14:54:08 -05:00
netkas
066e26fbe1
Refactor session flag handling in image captcha verification
2025-01-06 04:49:38 -05:00
netkas
ecdd9e1228
Simplify session flag handling in password update flow
2025-01-06 04:48:26 -05:00
netkas
746744eb64
Update image handling for display picture operations
2025-01-06 04:47:56 -05:00
netkas
426df31421
Update display name logic and handle invalid arguments.
2025-01-06 04:44:35 -05:00
netkas
1c4621c55b
Enhance flag handling for session operations.
2025-01-06 04:44:12 -05:00
netkas
fffad01516
Fix exception message in delete display picture method
2025-01-06 04:37:32 -05:00
netkas
6a922dcac2
Add validation for name and expiration in key creation
2025-01-06 04:36:39 -05:00
netkas
fa188fb27f
Removed unused Base32 class
2025-01-06 02:29:33 -05:00
netkas
3d915f55a5
Fix error message in display name deletion exception.
2025-01-06 02:27:22 -05:00
netkas
17a151fd8a
Fix terms acceptance logic and improve session handling
2025-01-06 02:20:09 -05:00
netkas
3a72363937
Refactor session handling in policy acceptance methods.
2025-01-06 02:17:49 -05:00
netkas
da250d6189
Refine community guidelines acceptance logic
2025-01-06 02:14:29 -05:00
netkas
480eaa6bc5
Refactor password deletion logic in SettingsDeletePassword.
2025-01-06 01:59:13 -05:00
netkas
dfc198cca3
Improve password validation and error handling in delete flow
2025-01-06 01:49:34 -05:00
netkas
a85534dfe6
Removed unused $e
2025-01-06 01:44:16 -05:00
netkas
4058a36cfe
Minor Update
2025-01-06 01:41:16 -05:00
netkas
2656becd25
Add email address validation and RPC method to set email
2025-01-06 01:40:07 -05:00
netkas
3e3bcfd143
Add password verification and update enhancements
2025-01-06 01:37:51 -05:00
netkas
5196ac2486
Refactor hashPassword
method and enhance validations
2025-01-06 01:29:15 -05:00
netkas
02d42e4e23
Refactor Cryptography methods for improved safety and validation
2025-01-06 01:24:13 -05:00
netkas
2082225fb7
Add support for deleting display pictures
2025-01-05 01:36:57 -05:00
netkas
85814913e4
Update password handling and session methods
2025-01-05 01:23:43 -05:00
netkas
8b9896f196
Add default value for getFlags() $asString parameter
2025-01-04 15:34:40 -05:00
netkas
b04de2f2a7
Add methods for deleting and updating peer information
2025-01-04 15:32:42 -05:00
netkas
cb1cc5ee15
Add docblock for createSession and refactor password check
2025-01-04 15:32:25 -05:00
netkas
484cd36ddf
Add src directory as a source folder in project config
2025-01-03 21:38:41 -05:00
netkas
9ebf3f641f
Add expiration handling to sessions and refactor state conversion
2025-01-03 21:38:33 -05:00
netkas
f2ae3100de
Minor correction
2025-01-03 21:22:40 -05:00
netkas
e9269a24fc
Implement session inactivity expiration handling.
2025-01-03 21:22:02 -05:00
netkas
b9b7b23e9e
Set SQL dialect to MariaDB for SigningKeysManager.php
2025-01-03 18:31:02 -05:00
netkas
e4b9a08972
Add signing key management functionality
2025-01-03 18:30:50 -05:00
netkas
d732c89632
Add Peer
class and conversion method in RegisteredPeerRecord
2025-01-03 18:30:40 -05:00
netkas
a3976742d6
Add recursive array conversion in RpcResponse::convertToArray
2025-01-03 18:30:27 -05:00
netkas
b60b12f9ae
Add PoliciesConfiguration to handle server policies
2025-01-03 18:30:16 -05:00
netkas
76abbdcb3e
Switch encryption key columns from text to varchar(64)
2025-01-03 14:18:20 -05:00
netkas
25dcf66755
Refactor environment variable handling and initialization
2025-01-03 13:59:46 -05:00
netkas
9b33890b10
Update Cryptography tests for algorithm-specific handling
2025-01-03 13:26:17 -05:00
netkas
367399f0fd
Changed Encryption to use LibSodium instead of OpenSSL, refactored many things and overall improved the code quality and performance with magic.
2025-01-03 12:27:04 -05:00
netkas
46ad03a54d
Updated .gitignore
2024-12-30 15:12:23 -05:00
netkas
26b41904c7
Updated docker-compose & added docker-compose test
2024-12-30 15:11:35 -05:00
netkas
85a81784f9
Updated database & Implemented Docker support. (unfinished)
2024-12-30 13:58:47 -05:00
netkas
c380556255
Refactor session initialization and host validation logic
2024-12-24 19:18:06 -05:00
netkas
738f8a455c
Add display picture support and error code refactor
2024-12-24 15:05:35 -05:00
netkas
85bdff7d3c
Add SettingsSetDisplayName method and refactor unused imports
2024-12-24 00:51:13 -05:00
netkas
9da2ac2db2
Minor correction
2024-12-24 00:46:30 -05:00
netkas
c85ca908f0
Add "server" property to RegisteredPeerRecord class
2024-12-24 00:46:20 -05:00
netkas
830133d102
Minor change
2024-12-23 21:21:30 -05:00
netkas
7e4b02bc04
Remove outdated test files and update peer registration logic
2024-12-23 19:25:21 -05:00
netkas
1108711eb7
Refactor session flow management for captcha and password.
2024-12-23 19:07:01 -05:00
netkas
23262bc0a6
Remove obsolete ClientRequestOld and RpcHandler classes
2024-12-23 19:03:43 -05:00
netkas
395e6b95ff
Refactor and extend configuration classes.
2024-12-23 19:02:37 -05:00
netkas
01253d5115
Refactor and enhance session flags, enums, and RPC methods.
2024-12-20 15:02:57 -05:00
netkas
de07928689
Refine PHPDoc comments for better clarity.
2024-12-19 21:11:40 -05:00
netkas
ea3de13cf8
Refactor session handling and improve data reliability.
2024-12-19 21:10:45 -05:00
netkas
014b63705b
Improve RPC handling and add terms/privacy methods.
2024-12-19 17:59:50 -05:00
netkas
ef3b10b286
Refactor RPC framework and enhance error handling.
2024-12-19 15:09:22 -05:00
netkas
42ba7013f7
Add ExportedSession and improve RPC client handling.
2024-12-19 12:54:15 -05:00
netkas
0b51b47859
Updated format
2024-12-14 00:43:49 -05:00
netkas
c866e2f696
Add support for Privacy Policy, Terms of Service, and CAPTCHA
2024-12-14 00:43:19 -05:00
netkas
756297671f
Add client metadata to session creation and enforce TOS/PP
2024-12-12 14:55:44 -05:00
netkas
d2119df824
Make client name and version nullable in ClientRequest
2024-12-12 12:58:00 -05:00
netkas
f0624e71d1
Refactor header validation and add GetSessionState scaffold.
2024-12-12 05:12:28 -05:00
netkas
701acfde35
Remove unused StandardMethods and improve session logic
2024-12-12 04:33:10 -05:00
netkas
86435a3d0b
Add encryption handling and session flags management.
2024-12-10 22:14:43 -05:00
netkas
1d452bc71b
Add session flags management and encryption key support
2024-12-10 13:30:08 -05:00
netkas
790262db08
Enhance session handling and introduce session flags
2024-12-10 12:54:02 -05:00
netkas
6c8cbfddec
Improve error handling and timestamp formatting
2024-12-09 21:26:25 -05:00
netkas
7bf5419ce3
Add DnsRecordCommand to CliCommands for DNS configuration
2024-12-09 19:26:20 -05:00
netkas
3a10e01bd8
Implement client session management and refactoring
2024-12-09 19:01:56 -05:00
netkas
cad2ea3419
Add image captcha verification methods
2024-10-31 19:13:05 -04:00
netkas
e328a8c5e0
Refactor peer flag removal logic
2024-10-31 19:09:13 -04:00
netkas
8e1f6351e2
Rename GetCaptcha to VerificationGetCaptcha
2024-10-31 19:00:22 -04:00
netkas
38b96db83a
Update captcha handling and introduce new captcha mechanism
2024-10-31 15:49:42 -04:00
netkas
706666af09
Refactor RpcClient and add session management.
2024-10-31 14:54:34 -04:00
netkas
ce963d2ff6
Updated project files
2024-10-31 13:46:01 -04:00
netkas
47b8641c44
Clarify error message parameter in RpcError constructor.
2024-10-31 13:45:52 -04:00
netkas
84db54feee
Minor update
2024-10-31 13:20:14 -04:00
netkas
7868db0ece
Remove unused Log import and add docblock for handleRpc method
2024-10-31 12:20:16 -04:00
netkas
ff0fde7156
Delete unused Socialbox.php file
2024-10-31 12:19:13 -04:00
netkas
b003845f39
Add useDatabase
parameter to resolveDomain method
2024-10-31 12:18:44 -04:00
netkas
beadf6d181
Add Security Configuration Class and Integration
2024-10-30 21:36:20 -04:00
netkas
cd7be1c3b2
Rename and add session update methods
2024-10-30 18:33:38 -04:00
netkas
a9a13f186c
Add GetMe standard method implementation
2024-10-30 15:29:31 -04:00
netkas
9a9cb3957b
Add serialization methods to PeerFlags enum
2024-10-30 15:29:21 -04:00
netkas
44143cb8cd
Add user registration method
2024-10-30 15:29:00 -04:00
netkas
3b55e550c5
Add logging for RpcRequest response production
2024-10-30 15:28:52 -04:00
netkas
436022dcbd
Add SelfUser class to handle user-related operations
2024-10-30 15:28:44 -04:00
netkas
daa5010fff
Add logging to SessionManager methods
2024-10-30 15:28:36 -04:00
netkas
1bdfc310e5
Refactor SessionRecord date properties
2024-10-30 15:28:23 -04:00
netkas
413d04a02d
Add logging for RPC request processing
2024-10-30 15:28:13 -04:00
netkas
5c551c966d
Update StandardError enum with additional error cases
2024-10-30 15:27:54 -04:00
netkas
ab03c135e0
Add new methods to StandardMethods enum
2024-10-30 15:27:46 -04:00
netkas
ac09674fdd
Add username validation to Validator class
2024-10-30 15:27:36 -04:00
netkas
6a4283ccc6
Refactor flag handling and add peer utility methods
2024-10-30 15:27:15 -04:00
netkas
9b7b7178c8
Add logging for peer management operations
2024-10-30 15:25:09 -04:00
netkas
b09cdde9e7
Updated .idea files
2024-10-30 15:13:21 -04:00
netkas
0579d35b6d
Updated .idea files
2024-10-30 15:13:19 -04:00
netkas
7a6d78ac9d
Add Logger class for managing application logging
2024-10-30 15:13:04 -04:00
netkas
99a4f20ece
Add logging and instance configurations
2024-10-30 15:12:55 -04:00
netkas
8334816d35
Refactor initialization logging and configuration checks
2024-10-30 15:12:10 -04:00
netkas
425fa862a8
Updated .gitlab-ci.yml
2024-10-25 14:28:04 -04:00
netkas
f874cc0e41
Refactor GitHub Actions workflow
2024-10-25 14:24:52 -04:00
netkas
ce64643d73
Add ResolvedServersManager and integrate with ServerResolver
2024-10-25 14:23:43 -04:00
netkas
d2dbafe728
Add random string generation method to Utilities class
...
Added a new method `randomString` to generate a random string using a specified character set. Enhanced code documentation and fixed a minor namespace typo in exception handling.
2024-10-25 13:39:57 -04:00
netkas
b85cea40e4
Refactor SessionManager to return SessionRecord directly
2024-10-25 13:39:33 -04:00
netkas
7a9dd62d75
Add ResolvedServerRecord class to the database module
2024-10-25 13:38:47 -04:00
netkas
7073af234f
Add PEER_NOT_FOUND case to StandardError enum
2024-10-25 13:38:38 -04:00
netkas
877297d945
Updated sqldialects.xml
2024-10-25 13:38:08 -04:00
netkas
d73a3e5457
Add RegisteredPeerManager and related classes/tests
2024-10-25 13:37:49 -04:00
netkas
deaa6b1d20
Add Captcha Management System
2024-10-25 13:37:21 -04:00
netkas
02b5afe4c0
Add registration configuration and remove old test files
2024-10-25 13:37:09 -04:00
netkas
d2eaa1fe73
Added Captcha library
2024-10-24 15:23:28 -04:00
netkas
5555e79327
Refactored Configuration
2024-10-24 15:15:14 -04:00
netkas
5eeb06805a
Add optional SHA1 hashing for sign and verify functions base64 encoding and decoding.
2024-10-24 14:06:06 -04:00
netkas
3b3271b94f
Add initial PHPUnit configuration for PhpStorm
...
This commit adds a new file `.idea/php-test-framework.xml` to configure PHPUnit for PhpStorm. It specifies the local path and version for PHP testing.
2024-10-24 13:55:29 -04:00
netkas
0f5c8b40e2
Refactor cryptography handling and improve test coverage
2024-10-24 13:55:21 -04:00