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

132 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
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
807455119c Added x/slog for stderr logging 2023-01-11 08:38:15 +01:00
postmannen
0ee4f979f3 Do not send a reply for reply messages 2023-01-10 09:29:24 +01:00
postmannen
fb4cf5de79 updated comments 2022-06-22 14:50:26 +02:00
postmannen
4b0a156ae1 updated comments 2022-06-22 14:43:01 +02:00
postmannen
b3bb2e44a1 updated comments 2022-06-22 14:32:58 +02:00
postmannen
433541fcc1 REQToFile<x> now honor the directory path specified 2022-06-22 11:03:59 +02:00
postmannen
7e9a7638aa added message.RetryWait field, upgrader nats-server package 2022-06-17 00:39:15 +02:00
postmannen
b8a2d3d5e7 removed copyFile<from/to> and relay request types 2022-06-16 23:32:44 +02:00
postmannen
fe78d6c070 sub procs req use the same logic as normal req's for validation 2022-06-14 08:45:34 +02:00
postmannen
c4e384b987 Renamed REQSub to REQSUB 2022-06-14 07:09:20 +02:00
postmannen
1895fcb398 Changed message logic to handle REQSub sub requests 2022-06-14 07:05:38 +02:00
postmannen
0b29cbc6a0 initial new copy methods 2022-06-09 05:29:41 +02:00
postmannen
c32e9a673a added REQKeysDelete 2022-06-01 07:29:25 +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
2951689e1e split request code into separate files 2022-05-19 20:54:33 +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
45d304bf6f added check if key hash is the same when asking for key updates 2022-05-16 11:20:39 +02:00
postmannen
3bd54d9cfc fixing race condition 2022-05-16 07:15:38 +02:00
postmannen
e720c48c44 sending hash with key update requests 2022-05-12 11:32:12 +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
c67acad1e0 more todo 2022-05-11 14:23:59 +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
postmannen
c4f8979f48 updated comments 2022-04-20 19:18:16 +02:00
postmannen
1aca36485a fixed to early wg.done in request method 2022-04-20 19:14:24 +02:00
postmannen
c48c7bf196 added initial public keys get 2022-04-20 18:33:52 +02:00
postmannen
242335c3bc cleaned up todo's 2022-04-20 07:13:47 +02:00
postmannen
7522bc203d removed not needed REQToSocket 2022-04-20 06:41:45 +02:00
postmannen
102cfd43c9 Renamed REQPublicKeysPut to REQPublicKeysToNode 2022-04-20 06:26:01 +02:00