These 6 commits are when the Protocol Buffers files have changed:
| Commit: | 4150305 | |
|---|---|---|
| Author: | Cuthbert | |
| Committer: | GitHub | |
feat: wire PayloadCodec and nacos-sdk-proto into gRPC request/response/server-push paths (#897) * refactor(rpc): replace local grpc stubs with nacos-sdk-proto Delete api/proto and api/grpc in the same commit: both the local stubs and sdk-proto register root-namespace Payload/Metadata (the proto file has no package), so linking both into one binary panics at init with a duplicate protobuf registration. Wire format is unchanged. Signed-off-by: cxhello <caixiaohuichn@gmail.com> * fix(codec): emit default values on encode, discard unknown fields on decode Servers serialize Java getter-derived fields (e.g. success) that do not exist in the proto definitions, so strict protojson decoding fails. Zero-value emission follows the cross-language finding in alibaba/nacos#14683: omitting zeros makes the server unable to tell unset from zero. Signed-off-by: cxhello <caixiaohuichn@gmail.com> * feat(rpc): add ProtoConvertible and proto carriers for internal requests Golden tests assert field-level wire equivalence between the legacy json.Marshal bodies and the protojson bodies, with the known deltas (module, clientAbilities/abilityTable) documented per test. Signed-off-by: cxhello <caixiaohuichn@gmail.com> * feat(rpc): route ProtoConvertible requests through PayloadCodec on send Signed-off-by: cxhello <caixiaohuichn@gmail.com> * feat(rpc): decode migrated response types through PayloadCodec HealthCheckResponse/ServerCheckResponse/ErrorResponse take the proto path and are adapted back into the legacy structs; all other types fall through to ClientResponseMapping until PR4/PR5 migrate them. Signed-off-by: cxhello <caixiaohuichn@gmail.com> * feat(rpc): decode migrated server-push requests through PayloadCodec Signed-off-by: cxhello <caixiaohuichn@gmail.com> * test: add reconnect integration test against restarted Nacos server Signed-off-by: cxhello <caixiaohuichn@gmail.com> * chore: add Apache license headers to codec and rpc proto files Signed-off-by: cxhello <caixiaohuichn@gmail.com> * test: tighten golden and reconnect test hygiene Signed-off-by: cxhello <caixiaohuichn@gmail.com> --------- Signed-off-by: cxhello <caixiaohuichn@gmail.com>
This commit does not contain any .proto files.
| Commit: | 10a8a57 | |
|---|---|---|
| Author: | Cuthbert | |
| Committer: | GitHub | |
feat: v3 infrastructure — add nacos-sdk-proto, PayloadCodec, CI rewrite (#881) * feat: v3 infrastructure — add nacos-sdk-proto, PayloadCodec, CI rewrite - Bump module path to v3, CLIENT_VERSION to Nacos-Go-Client:v3.0.0 - Add nacos-sdk-proto/go v1.0.0-beta.8 dependency - Implement PayloadCodec with type registry covering 5 modules (common/config/naming/lock/ai, 73 message types) - Remove direct alibaba-cloud-sdk-go v1 dependency (#871) - Rewrite CI: 4-job pipeline (lint, unit-test, integration-grpc, integration-nacos2) - Go minimum version: 1.22, grpc v1.71.2, protobuf v1.36.4 Signed-off-by: cxhello <caixiaohuichn@gmail.com> * ci: add v3.x-dev branch to CI triggers Signed-off-by: cxhello <caixiaohuichn@gmail.com> * fix: remove duplicate credentials import in grpc_client.go Signed-off-by: cxhello <caixiaohuichn@gmail.com> * fix: update v2 import path to v3 in grpc_client_test.go Signed-off-by: cxhello <caixiaohuichn@gmail.com> * refactor(encryption): revert KMS migration to keep it in a separate PR Restore common/encryption to the pre-migration implementation (with v3 import paths). The KMS client migration from dkms-transfer to dkms-gcs has runtime impact (ciphertext encoding change for Dedicated KMS, KMS v1 client removal) and will be submitted as an independent PR with tests and compatibility notes. The original migration work is preserved on branch feat/v3-kms-migration. Signed-off-by: cxhello <caixiaohuichn@gmail.com> * ci: remove go.mod toolchain directive and pin GOTOOLCHAIN=local The toolchain go1.24.2 directive made the Go 1.22/1.23 matrix jobs silently download and use Go 1.24.2 (GOTOOLCHAIN defaults to auto), so the minimum-version check never actually ran. Drop the directive and set GOTOOLCHAIN=local in CI so each matrix job builds with its declared Go version. Verified the module builds with go1.22. Addresses review feedback on #881. Signed-off-by: cxhello <caixiaohuichn@gmail.com> * fix(proto): update go_package to v3 module path The generated .pb.go files already carry the /v3 import path in their descriptors, but the proto source still declared /v2. Update the source so it matches the generated artifacts. Regenerating from repo root with protoc -I . --go_out=paths=source_relative:. \ --go-grpc_out=paths=source_relative:. \ api/proto/nacos_grpc_service.proto (protoc v29.3, protoc-gen-go v1.36.7, protoc-gen-go-grpc v1.5.1, followed by goimports) now reproduces the checked-in files byte-for-byte. Addresses review feedback on #881. Signed-off-by: cxhello <caixiaohuichn@gmail.com> * test: add gRPC integration smoke tests for config and naming The CI integration jobs ran 'go test -run TestIntegration' but no such tests existed, so they only verified that the Nacos container starts. Add real smoke tests covering config publish/get/listen/delete and instance register/discover/deregister over gRPC, matching the existing job filter. Both Nacos 2.5.x and 3.x no longer ship a default admin account when auth is enabled, so add an admin-init step to each integration job (v1 auth API for 2.x, v3 for 3.x). Verified locally against nacos-server:v2.5.2 and v3.2.0 containers with the same CI commands. Addresses review feedback on #881. Signed-off-by: cxhello <caixiaohuichn@gmail.com> * style(encryption): group imports per goimports The files restored from the pre-migration implementation used the old import style (stdlib mixed with third-party), which fails the new CI goimports check. Signed-off-by: cxhello <caixiaohuichn@gmail.com> * ci: pin goimports to v0.42.0 for Go 1.24 compatibility goimports@latest resolves to x/tools v0.48.0 which requires Go >= 1.25; with GOTOOLCHAIN=local the lint job can no longer silently download a newer toolchain, so pin the last version compatible with Go 1.24. Signed-off-by: cxhello <caixiaohuichn@gmail.com> --------- Signed-off-by: cxhello <caixiaohuichn@gmail.com>
| Commit: | 8bad3fe | |
|---|---|---|
| Author: | Sunrisea | |
| Committer: | GitHub | |
Update grpc version and go version (#839) * Update Grpc and protobuf version * fix version * fix workflow * fix codestyle * fix go mod
The documentation is generated from this commit.
| Commit: | b098c04 | |
|---|---|---|
| Author: | yanxyc | |
| Committer: | GitHub | |
Update nacos_grpc_service.proto (#783)
| Commit: | 373906a | |
|---|---|---|
| Author: | binbin.zhang | |
| Committer: | GitHub | |
2.0.x (#496)
| Commit: | 8cb8d63 | |
|---|---|---|
| Author: | binbin.zhang | |
| Committer: | GitHub | |
2.0.0 (#203) * 2.0.0 naming support grpc