Skip to content

Ingress points should implement the knative/networking dataplane contract. #3911

Closed

Description

@mattmoor

Problem
I would like to see the HTTP endpoints exposed by knative/eventing as Addressables start implementing the knative/networking dataplane contract.

Exit Criteria
The contract is relatively simple: When a request comes in with:

K-Network-Probe: probe
K-Network-Hash: {string}

Then we respond with 200 OK and K-Network-Hash: {string}

Time Estimate (optional):

I'd expect this to take roughly a few days, the challenge will be simply enumerating the places that need it.

Additional context (optional)

  • We actually expose a way to wrap an existing handler to implement the contract here, which should make this a handful of lines of code per component.

  • Ultimately the goal of this is to enable us to create new abstractions that take advantage of kingress to target addressables that adhere to this contract. A simple example: exposing addressables as vanity domains (e.g. www.knative.rocks). A more complex example would be to take advantage of the host/path/header-based routing to start to look at API-gateway-like functionality.


An interesting application of the latter "complex" case would be to implement what @beemarie and @duglin have been after, since kingress would be able to do something like:

if Headers["Prefer"] == "async" then
   target broker/channel
else
   target ksvc

cc @tcnghia @vaikas @Harwayne @matzew

Activity

  1. added
    priority/important-soon
    on Aug 24, 2020
  2. grantr commented on Aug 24, 2020

    @grantr
    Contributor

    the challenge will be simply enumerating the places that need it.

    This part is probably not a good first issue, but once that list is in hand, the rest of it is.

  3. added this to the Backlog milestone on Aug 24, 2020
  4. pierDipi commented on Aug 27, 2020

    @pierDipi
    Contributor

    Does it need to be documented into our addressables (Broker, Channel, ...) specs?

  5. mattmoor commented on Aug 27, 2020

    @mattmoor
    ContributorAuthor

    cc @tcnghia @vaikas

    I think it would be useful, as well as probably expanding the appropriate conformance to ensure folks adhere. I started a thread in the delivery channel, but haven't heard anything.

    https://knative.slack.com/archives/CR2141CGY/p1598117546001800

  6. tcnghia commented on Aug 27, 2020

    @tcnghia

    I am +1 on this.

    Having a probing contract has been super helpful for us in networking (allowing KIngress to have a meaningful Status even if the underlying networking framework / API does not provide one out-of-the-box). It may be even possible to try probing through different transport options (H2C or H1) to allow some sort of plain-text protocol selection logic (very useful given that H2C upgrades are more likely than not to be unsupported by most proxies).

    This probing contract, coupled with composibility through header match would allow even more layering that support the same probing contract and we can use the same prober / probing facilities to work with them all.

  7. runzexia commented on Nov 12, 2020

    @runzexia
    Contributor

    I found that almost all HTTP endpoint are wrapped with drainer, and maybe we just need to modify the drainer in pkg and update deps to support it

  8. github-actions commented on Feb 11, 2021

    @github-actions
    Contributor

    This issue is stale because it has been open for 90 days with no
    activity. It will automatically close after 30 more days of
    inactivity. Reopen the issue with /reopen. Mark the issue as
    fresh by adding the comment /remove-lifecycle stale.

  9. added
    lifecycle/stale
    on Feb 11, 2021
  10. slinkydeveloper commented on Feb 11, 2021

    @slinkydeveloper
    Contributor

    @runzexia from my understanding this issue is solved and we can close it, right?

  11. pierDipi commented on Feb 11, 2021

    @pierDipi
    Contributor

    No, we should add this to the spec and create a conformance test.

  12. slinkydeveloper commented on Feb 11, 2021

    @slinkydeveloper
    Contributor

    /kind good-first-issue

    For whoever wants to add a conformance test, you can get in touch with me and i can guide you through

  13. added
    kind/good-first-issue
    on Feb 11, 2021
  14. removed
    lifecycle/stale
    on Feb 12, 2021
  15. github-actions commented on May 14, 2021

    @github-actions
    Contributor

    This issue is stale because it has been open for 90 days with no
    activity. It will automatically close after 30 more days of
    inactivity. Reopen the issue with /reopen. Mark the issue as
    fresh by adding the comment /remove-lifecycle stale.

  16. added
    lifecycle/stale
    on May 14, 2021
  17. pierDipi commented on May 17, 2021

    @pierDipi
    Contributor

    /remove-lifecycle stale

  18. removed
    lifecycle/stale
    on May 17, 2021
  19. github-actions commented on Aug 28, 2021

    @github-actions
    Contributor

    This issue is stale because it has been open for 90 days with no
    activity. It will automatically close after 30 more days of
    inactivity. Reopen the issue with /reopen. Mark the issue as
    fresh by adding the comment /remove-lifecycle stale.

  20. added
    lifecycle/stale
    on Aug 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/deliverykind/feature-requestkind/good-first-issuelifecycle/stalepriority/important-soon

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions