mirror of
https://github.com/ultravioletrs/cocos.git
synced 2026-06-23 04:10:25 +00:00
997fb3bf48
* Add hash verification for datasets and algorithms Enhanced data integrity checking by incorporating hash fields in Dataset and Algorithm structures, and modified the corresponding service logic to validate these hashes during processing. The update includes SHA-3 for hash computation, replacing the former SHA-256 usage, and ensures the provided data matches the expected hash from the manifest to prevent processing malformed or corrupted data. - Introduce `Hash` field to both Dataset and Algorithm structs to store the expected hash value. - Implement SHA-3 hashing within service methods that process the data, ensuring consistency with newly added `Hash` fields. - Add error handling for hash mismatches, preventing further processing and alerting to potential data integrity issues. - Update Protocol Buffers serialization to accommodate the new hash fields for gRPC communication. - Modify manager service's Run method to pass the hash information when creating agent configurations. Go module dependencies were updated to include the new SHA-3 package and upgrade Go version to 1.21.6 for improved stability and compatibility. Signed-off-by: SammyOina <sammyoina@gmail.com> * Remove identifiers from protobuf and related code The protobuf definitions and related service handling code have been revised to drop specific identifier fields (`AlgorithmID` and `DatasetID`) to simplify API responses and internal function signatures. These removals streamline the overall data flow between components, reduce unnecessary data transmission, and lead to an aligned server-client expectation where identifiers are no longer a part of the response payload. Consequently, these changes simplify the logic within various functions and client commands, reinforcing encapsulation by ensuring that internal identifiers do not need to be managed or exposed unnecessarily. Signed-off-by: SammyOina <sammyoina@gmail.com> * fix lint Signed-off-by: SammyOina <sammyoina@gmail.com> --------- Signed-off-by: SammyOina <sammyoina@gmail.com>
59 lines
2.4 KiB
Modula-2
59 lines
2.4 KiB
Modula-2
module github.com/ultravioletrs/cocos
|
|
|
|
go 1.21.6
|
|
|
|
require (
|
|
github.com/absmach/magistrala v0.0.0-20240119191055-d95283d31472
|
|
github.com/caarlos0/env/v7 v7.1.0
|
|
github.com/cenkalti/backoff/v4 v4.2.1
|
|
github.com/digitalocean/go-libvirt v0.0.0-20221205150000-2939327a8519
|
|
github.com/go-kit/kit v0.13.0
|
|
github.com/gofrs/uuid v4.4.0+incompatible
|
|
github.com/google/go-sev-guest v0.10.1
|
|
github.com/mdlayher/vsock v1.2.1
|
|
github.com/prometheus/client_golang v1.18.0
|
|
github.com/spf13/cobra v1.8.0
|
|
github.com/spf13/pflag v1.0.5
|
|
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.46.1
|
|
go.opentelemetry.io/otel v1.21.0
|
|
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.21.0
|
|
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.21.0
|
|
go.opentelemetry.io/otel/sdk v1.21.0
|
|
go.opentelemetry.io/otel/trace v1.21.0
|
|
golang.org/x/crypto v0.19.0
|
|
golang.org/x/sync v0.6.0
|
|
google.golang.org/grpc v1.60.1
|
|
google.golang.org/protobuf v1.32.0
|
|
)
|
|
|
|
require (
|
|
cloud.google.com/go/compute v1.23.3 // indirect
|
|
github.com/beorn7/perks v1.0.1 // indirect
|
|
github.com/cespare/xxhash/v2 v2.2.0 // indirect
|
|
github.com/go-kit/log v0.2.1 // indirect
|
|
github.com/go-logfmt/logfmt v0.6.0 // indirect
|
|
github.com/go-logr/logr v1.4.1 // indirect
|
|
github.com/go-logr/stdr v1.2.2 // indirect
|
|
github.com/golang/protobuf v1.5.3 // indirect
|
|
github.com/google/go-configfs-tsm v0.2.2 // indirect
|
|
github.com/google/logger v1.1.1 // indirect
|
|
github.com/google/uuid v1.5.0 // indirect
|
|
github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.0 // indirect
|
|
github.com/inconshreveable/mousetrap v1.1.0 // indirect
|
|
github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0 // indirect
|
|
github.com/mdlayher/socket v0.4.1 // indirect
|
|
github.com/pborman/uuid v1.2.1 // indirect
|
|
github.com/pkg/errors v0.9.1 // indirect
|
|
github.com/prometheus/client_model v0.5.0 // indirect
|
|
github.com/prometheus/common v0.45.0 // indirect
|
|
github.com/prometheus/procfs v0.12.0 // indirect
|
|
go.opentelemetry.io/otel/metric v1.21.0 // indirect
|
|
go.opentelemetry.io/proto/otlp v1.0.0 // indirect
|
|
go.uber.org/multierr v1.11.0 // indirect
|
|
golang.org/x/net v0.20.0 // indirect
|
|
golang.org/x/sys v0.17.0 // indirect
|
|
golang.org/x/text v0.14.0 // indirect
|
|
google.golang.org/genproto/googleapis/api v0.0.0-20240108191215-35c7eff3a6b1 // indirect
|
|
google.golang.org/genproto/googleapis/rpc v0.0.0-20240108191215-35c7eff3a6b1 // indirect
|
|
)
|