Skip to content

replacing usage of update etag with AIP-154 ifMatch? #241

Open
@toumorokoshi

Description

@toumorokoshi

Today, there are two sightly different mechanics for validation of resource freshness. Those are:

in https://aep.dev/update, using an etag field in the resource body (proto), and rejecting the request if that does match.

In https://aep.dev/154/#guidance, using an etag header in the response, and an optional if-match header in the request for resource validation.

These are fundamentally incompatible methods, and we should provide a single way to do so. As an initial proposal, I propose aligning with AIP-154 and:

  • making etag a field that is returned back via grpc metadata, allowing it's usage in the HTTP header.
  • adding guidance in AIP-154 to use grpc metadata to include the if-match header.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions