1
0
Fork 0
mirror of https://github.com/postmannen/ctrl.git synced 2024-12-14 12:37:31 +00:00
Commit graph

118 commits

Author SHA1 Message Date
postmannen
f99af8e0ab moved all the procfunc definitions in the processes startup as separate functions defined after theyr respective request method where they belong 2024-12-13 16:49:21 +01:00
postmannen
3a31ced938 Squashed commit of the following:
implemented reading and embedding the content of a local file with {{CTRL_FILE}}

fixed error with not found filename in copy test, remove debug logs

seedfile: removed deletion, and changed file permissions to 600

created flags for profiling

renamed startup.subscriber to startup.startProcess

created a separate method for helloPublisher

removed processKind, og removed not needed file check in copy request

removed sams from channels

removed publisher channel on subject, and messages to publish are now directly published from the newMessagesCh

removed no longer needed compression and serialization flags.

all messaging are using zstd for compression, and cbor for serializing

added functions for handling cbor serializing and zstd compression, and swapped out json marshaling of jetstream message data with cbor and zstd

added flag for max jetstream messages to keep on broker per subject
2024-12-03 16:17:33 +01:00
postmannen
cdf660aa07 add NODES.all as jetstream subject, and updated doc
added handling of consumed jetstream messages, and fixed a read error with readFolder which sometimes read empty content

newMessagesCh now takes single sam instead of []sams

added jetstream publish channel
2024-11-27 08:34:49 +01:00
postmannen
6c615591a6 Squashed commit of the following:
commit 2a5cb441ff8c3f3f4404c49188c16afdb701cd42
Author: postmannen <postmannen@gmail.com>
Date:   Tue Nov 19 06:46:58 2024 +0100

    updated doc

commit a97d2dd4fd162a45dcf8f80d833a31bdc7e0b817
Author: postmannen <postmannen@gmail.com>
Date:   Tue Nov 19 06:25:57 2024 +0100

    renamed the various naming for channels where new messages are put to newMessagesCh

commit 3c840eb718358bb55d9e1c58692517e4bbbb5f4d
Author: postmannen <postmannen@gmail.com>
Date:   Tue Nov 19 05:08:55 2024 +0100

    Restructured configuration, and added a StartProcesses struct for the flags that are for starting processes
2024-11-19 20:28:26 +01:00
postmannen
b1a5406598 Squashed commit of the following:
commit ec6ea8158d5051010c25ef848a7b7b91fa40efef
Author: postmannen <postmannen@gmail.com>
Date:   Tue Nov 19 03:48:03 2024 +0100

    Removed remaining use of REQ in naming

commit b80bb06a47cf564a88d684c1d1d4fe2e408c3c0f
Author: postmannen <postmannen@gmail.com>
Date:   Mon Nov 18 23:15:32 2024 +0100

    removed REQ in more variable names, including methods

commit af7f6fef3e0093312d2ca12740f7b27840797800
Author: postmannen <postmannen@gmail.com>
Date:   Mon Nov 18 22:54:40 2024 +0100

    renamed all the method type variables

commit e657ecb37f
Author: postmannen <postmannen@gmail.com>
Date:   Mon Nov 18 22:32:13 2024 +0100

    renamed methods constant values and removed REQ
2024-11-19 03:48:42 +01:00
postmannen
2fb43591ce updated readme
removed example for no longer existing relay messages
cleaned up comments
Removed some remaings after REQToFileNACK
Implemented env variables for all flags, and removed config flag. Also added use of .env file.
removed configuration as input argument from all the loggers
replaced logging of new messages in read folder with a logDebug so we don't send those messages to the error kernel
2024-03-27 12:48:17 +01:00
postmannen
c098c623f1 cleaned up no longer used code 2024-03-08 22:55:21 +01:00
postmannen
69995f76ca updated package info
updated references
removed tui client
removed ringbuffer persist store
removed ringbuffer
enabled audit logging
moved audit logging to message readers
disabled goreleaser
update readme, cbor, zstd
removed request type ping and pong
update readme
testing with cmd.WaitDelay for clicommand
fixed readme
removed ringbuffer flag
default serialization set to cbor, default compression set to zstd, fixed race,
removed event type ack and nack, also removed from subject. Fixed file stat error for copy log file
removed remaining elements of the event type
removed comments
renamed toRingbufferCh to samToSendCh
renamed directSAMSCh ro samSendLocalCh
removed handler interface
agpl3 license
added license-change.md
2024-02-07 22:54:50 +01:00
postmannen
6da53c8ed6 fixed incorrectly error handling when checking socket, set ticket to 1 when 0, send errorLogs to the correct node after rewrite of startups earlier 2023-06-01 06:15:39 +02:00
postmannen
88532f4a6e updated readme with toNode local 2023-04-19 05:46:38 +02:00
postmannen
7b4335a256 rewrite processes startup 2023-04-18 15:47:40 +02:00
postmannen
7d21af55e7 not terminating publisher services that should run at all times based on timer 2023-01-13 15:09:23 +01:00
postmannen
8c8061dc15 renamed logConsoleOnlyIfDebug to logDebug 2023-01-12 12:03:10 +01:00
postmannen
7fcf4b1077 replaced log lines with slog from errorKernel 2023-01-12 08:48:01 +01:00
postmannen
807455119c Added x/slog for stderr logging 2023-01-11 08:38:15 +01:00
postmannen
eced76a85c initially removed dependency to NACK/ACK event type 2023-01-05 01:55:52 +01:00
postmannen
709bd219f7 stopping started tickers 2022-12-26 10:52:43 +01:00
postmannen
0249a86040 fixed debug logging 2022-10-05 09:16:22 +02:00
postmannen
b3bb2e44a1 updated comments 2022-06-22 14:32:58 +02:00
postmannen
edccbea1b3 added test for file copy 2022-06-22 07:31:43 +02:00
postmannen
c6013a2968 fixed race+allocation in copySrcSubProcFunc 2022-06-22 05:03:11 +02:00
postmannen
b8a2d3d5e7 removed copyFile<from/to> and relay request types 2022-06-16 23:32:44 +02:00
postmannen
6f10ed9ecd Added startup flags for new copy src and dst methods 2022-06-09 05:59:37 +02:00
postmannen
2c9b7919b3 renamed flag StartSubREQErrorLog to IsCentralErrorLogger 2022-06-03 06:02:27 +02:00
postmannen
8887fd4c2f turned off escaping when saving acl to file, cleaned up acl debug to console, acl distribution and verification seems to work 2022-06-02 06:29:37 +02:00
postmannen
604ead45fd moved main methods of pki to central auth 2022-06-01 15:11:23 +02:00
postmannen
c32e9a673a added REQKeysDelete 2022-06-01 07:29:25 +02:00
postmannen
368ac6e661 replaced keys/acl startREQ flags with enable flag 2022-05-30 07:14:15 +02:00
postmannen
587e23c91d added separate timer and starting for acl updates 2022-05-26 08:07:23 +02:00
postmannen
9d71f11145 initial acl distribution works 2022-05-26 07:13:34 +02:00
postmannen
e7ae3d893b added initial acl distribution, but are not working 2022-05-24 15:51:36 +02:00
postmannen
52e3661c21 added logic and starting of REQAclRequestUpdate 2022-05-24 12:00:38 +02:00
postmannen
041d59be22 changed name for keys requests 2022-05-24 07:21:48 +02:00
postmannen
f92e8a8e0a added testCh to errrorKernel 2022-05-22 06:36:02 +02:00
postmannen
e5a7ad3699 added initial REQ AclImport 2022-05-21 07:26:36 +02:00
postmannen
c3e442d497 Added initial REQ AclExport 2022-05-21 07:09:35 +02:00
postmannen
d68fe3ba1e Added initital REQ for AclGroupCommandsDeleteGroup 2022-05-20 13:56:17 +02:00
postmannen
7241c65a15 added initial REQ for GroupCommandsDeleteCommand 2022-05-20 06:27:46 +02:00
postmannen
a9ae982ed6 added initial acl commandGroup add command 2022-05-20 05:59:34 +02:00
postmannen
fb6d70a5c6 added initial REQ acl delete nodeGroup 2022-05-20 05:18:26 +02:00
postmannen
e813642506 added initial REQ for AclGroupNodesDeleteNode 2022-05-19 22:19:22 +02:00
postmannen
6a7fe51f60 added initial REQ for aclDeleteSource 2022-05-19 21:35:14 +02:00
postmannen
321150ac84 added initial REQ for aclDeleteCommand 2022-05-18 14:43:35 +02:00
postmannen
0ba5f6ea5d added initial REQ for adding acl 2022-05-18 11:26:06 +02:00
postmannen
3bd54d9cfc fixing race condition 2022-05-16 07:15:38 +02:00
postmannen
6cf3bac506 renamed keys to pki 2022-05-12 09:25:10 +02:00
postmannen
e9b1829f56 added hash of public keys to central auth store 2022-05-12 06:22:11 +02:00
postmannen
d249f58756 todo comments 2022-05-11 13:45:49 +02:00
postmannen
797953a3d6 put stuff related to central key handling under it's own keys struct type 2022-05-11 09:55:27 +02:00
postmannen
690d11194b persistent store of keys on node 2022-04-21 13:21:36 +02:00