Skip to content

docs: correct api/envoy/service/auth/v2 docs#6211

Merged
mattklein123 merged 3 commits intoenvoyproxy:masterfrom
LukeShu:lukeshu/ext-authz-grpc-docs
Mar 25, 2019
Merged

docs: correct api/envoy/service/auth/v2 docs#6211
mattklein123 merged 3 commits intoenvoyproxy:masterfrom
LukeShu:lukeshu/ext-authz-grpc-docs

Conversation

@LukeShu
Copy link
Contributor

@LukeShu LukeShu commented Mar 7, 2019

Description: Update some documentation comments in api/envoy/service/auth/v2/*.proto to more accurately describe the current behavior (without making any judgment on whether that behavior is "correct" or desirable).

Risk Level: Low
Testing: None
Docs Changes: Inline in API protos
Release Notes: None?

Attn: @saumoh, who I believe to be the original author.

Update some documentation comments in api/envoy/service/auth/v2/*.proto to
more accurately describe the *current* behavior (without making any
judgment on whether that behavior is "correct" or desirable).

Signed-off-by: Luke Shumaker <lukeshu@datawire.io>
@LukeShu
Copy link
Contributor Author

LukeShu commented Mar 7, 2019

v2: Add DCO

message CheckResponse {
// Status `OK` allows the request. Any other status indicates the request should be denied.
// Status `OK` allows the request. Status `UNKNOWN` causes Envoy to abort. Any other status
// indicates the request should be denied.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See also: #6210

Copy link
Member

@junr03 junr03 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some comments

// appears in the first line of the HTTP request. No decoding is performed.
// This field is always empty, and exists for compatibility reasons. The HTTP URL query is
// included in `path` field.
string query = 7;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we enforce empty here? Is it worth it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you mean "enforce empty"? Note that Envoy is what populates this, not the AuthService talking to Envoy. I don't believe that code outside of Envoy ever needs to create this.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

got it thanks.

// The network protocol used with the request, such as
// "http/1.1", "spdy/3", "h2", "h2c"
// The network protocol used with the request, as enumerated by
// `source/common/http/headers.h:ProtocolStrings`, such as "HTTP/1.0", "HTTP/1.1", or
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: change to url

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What should that URL look like? AFAICT, there's not a documentation page on ProtocolStrings. Should it link to the source on GitHub?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah link to source

// Intended for gRPC and Network Authorization servers `only`.
message CheckResponse {
// Status `OK` allows the request. Any other status indicates the request should be denied.
// Status `OK` allows the request. Status `UNKNOWN` causes Envoy to abort. Any other status
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what does abort mean here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"abort" means "exit with a stack trace", which I guess is probably a bug (#6210).

string query = 7;

// The HTTP URL fragment, excluding leading `#`. No URL decoding is performed.
// This field is always empty, and exists for compatibility reasons. The URL fragment is
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

@junr03
Copy link
Member

junr03 commented Mar 19, 2019

@LukeShu just replied to your comments. I will approve after update.

Signed-off-by: Luke Shumaker <lukeshu@datawire.io>
@LukeShu
Copy link
Contributor Author

LukeShu commented Mar 19, 2019

@junr03 I just added a commit. I think I got the link syntax correct, but please verify that.

Copy link
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, one small request.

/wait

… link

Signed-off-by: Luke Shumaker <lukeshu@datawire.io>
Copy link
Member

@junr03 junr03 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@mattklein123 mattklein123 merged commit 0ac3706 into envoyproxy:master Mar 25, 2019
alyssawilk pushed a commit that referenced this pull request May 7, 2019
…6821)

Description: PR #6211 updated the documentation of CheckResponse.status to reflect Envoy's actual behavior at the time. Later, PR #6505 changed that behavior to be in-line with the pre-6211 docs. So, revert that part of PR #6211.

Risk Level: Low
Testing: None
Docs Changes: Inline in API protos
Release Notes: none

Signed-off-by: Luke Shumaker <lukeshu@datawire.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants