Commit Graph

16 Commits

Author SHA1 Message Date
John Howard 04548b0d99
Remove all go types with aliases to cncf/xds repo (#49)
Fixes https://github.com/cncf/xds/issues/7

This follows a path taken by the protobuf team for the protobuf v2
migration.

In go, protobuf generated files are singletons. Its impossible to import
cncf/xds and cncf/udpa at the same time as a result.

grpc/grpc-go is on cncf/udpa at the moment, which means that likely
almost all others are as well. A quick github query shows 350 users of
cncf/udpa and 50 of cncf/xds. One option is to have grpc-go update and
hope others follow (https://github.com/grpc/grpc-go/pull/4812). However,
this would introduce churn for users.

Instead, we can do this approach which should allow seemles
interoperability between the two repos.

I have tested this on
istio.io/istio, https://github.com/howardjohn/cncf-udpa-to-xds-repro,
and grpc/grpc-go; all tests pass in these repos.
2021-09-29 23:19:21 -04:00
htuch 82be644d48
xdstp: migrate URL-scheme to xDS naming convention. (#40)
* Replace UDPA references with xDS.

* Move from udpa.core.v1 to xds.core.v3. The idea is to use v3 to remain
  consistent with xDS v3 package namespace elsewhere.

Signed-off-by: Harvey Tuch <htuch@google.com>
2020-11-20 11:44:55 -05:00
htuch 3a44e3262f
URIs: remove repeated id. (#38)
It's a _lot_ more convenient when writing proto literals (e.g. in
filesystem config files) to be able to specify a single flat ID than
repeated. Also, this makes some of the decisions around /-escaping
simpler in different implementations.

Signed-off-by: Harvey Tuch <htuch@google.com>
2020-11-19 15:50:42 -05:00
htuch efcf912fb3
udpa: clarify URI fragment encoding of directives. (#30)
After spending some time looking at RFC3986 and chatting with Louis, it
seems we can support multiple directives in the fragment, but we need to
be very precise on how they are percent encoded.

This patch proposes that we move from having multiple fragments (which
are not allowed in RFC compliant URIs) to a single fragment with
comma-separated percent encoded directives. Comma was selected as it is
an available character in RFC3986 sub-delims, intuitively indicates
separation, and is less likely to appear in URIs (forcing percent
encoding) than other alternatives, e.g. '&' which would appear in most
URIs with context parameters.

Percent encoded directives in URIs should remain fairly readable, for
example udpa://foo#entry=something,alt=udpa://bar/baz&x=y requires no
percent encoding.

Also renamed schema to scheme to match RFC3986.

Signed-off-by: Harvey Tuch <htuch@google.com>
2020-06-29 16:34:42 -04:00
htuch ca580c4fcf
udpa: add core proto definitions from xDS transport++ proposal. (#29)
These are the new UDPA protos from https://github.com/envoyproxy/envoy/issues/11264
and
https://docs.google.com/document/d/1zZav-IYxMO0mP2A7y5XHBa9v0eXyirw1CxrLLSUqWR8/edit.

Signed-off-by: Harvey Tuch <htuch@google.com>
2020-06-24 19:37:33 -04:00
htuch 3b31d022a1
annotations: introduce security annotations. (#28)
This is the start of some work to automate tracking of fields that
should be set in the presence of untrusted downstreams/upstreams. In the
future we could add recommended settings etc.

Relates to https://github.com/envoyproxy/envoy/issues/9087

Signed-off-by: Harvey Tuch <htuch@google.com>
2020-05-08 16:53:42 -04:00
htuch e8cd3a4bb3
annotations: add UNKNOWN status to PackageVersionStatus. (#26)
If FROZEN is 0 (default) enum value, it may be skipped in output
rendering. This PR makes it always explicit. This is technically a
breaking change for these annotations, but they are not in use yet.

Signed-off-by: Harvey Tuch <htuch@google.com>
2020-03-27 16:39:49 -04:00
htuch bae28a880f
annotations: add a package version status annotation (#25)
In support of https://github.com/envoyproxy/envoy/issues/10355, it would
be helpful for the protoxform aspect to be able to distinguish the
package version that is currently open for active development.

For some packages, this is likely to move to v3 shortly, but due to the
DAG package version structure, this won't be universal.

Signed-off-by: Harvey Tuch <htuch@google.com>
2020-03-23 20:36:16 -04:00
Kuat 5f7e5dd045
downgrade module requirement (#24)
Fixes #23
Tested with go1.11 build ./...

Signed-off-by: Kuat Yessenov <kuat@google.com>
2020-03-13 18:15:41 -04:00
htuch db4b343e48
annotations: add WiP status annotations. (#22)
As per https://github.com/envoyproxy/envoy/issues/9769.

Signed-off-by: Harvey Tuch <htuch@google.com>
2020-01-24 15:57:48 -05:00
htuch edbea6a78f Oneof promotion field migration annotation. (#21)
Needed for https://github.com/envoyproxy/envoy/issues/9500.

Also bumped to Bazel 2.0.0 and fixed .gitattributes.

Signed-off-by: Harvey Tuch <htuch@google.com>
2019-12-30 18:01:09 +09:00
Lizan Zhou f4306cbaeb Add package move annotation (#20)
Signed-off-by: Lizan Zhou <lizan@tetrate.io>
2019-12-23 11:49:06 -05:00
Dan Rosen 89624d5efc implement SensitiveAnnotation (#17)
Signed-off-by: Dan Rosen <mergeconflict@google.com>
2019-12-12 15:07:10 -05:00
Kuat 4aa8bb1bef go: fix the merge race (#15)
Fix the bad merge of the last two PRs.

Signed-off-by: Kuat Yessenov <kuat@google.com>
2019-12-08 23:14:36 -05:00
Kuat 369acd9ff1 update go generated files (#11)
Fixes envoyproxy/go-control-plane#247

Signed-off-by: Kuat Yessenov <kuat@google.com>
2019-12-06 18:13:27 -05:00
Kuat 5f054cc4b1 go: generate and save go protobufs (#8)
Pointing to a repository without go code is not valid go code outside of bazel environment:

udpa/service/orca/v1/orca.pb.go:9:2: module github.com/cncf/udpa@latest (v0.0.0-20191004202315-015fc86d90f4) found, but does not contain package github.com/cncf/udpa/udpa/data/orca/v1

The proposal is to use this repo to host the golang generated UDPA protos.

Signed-off-by: Kuat Yessenov <kuat@google.com>
2019-11-27 14:34:23 -05:00