Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce stream_ttl #222

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions openid-sharedsignals-framework-1_0.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ contributor:
org: The Walt Disney Company
email: [email protected]

-
ins: T. Raibhandare
name: Tushar Raibhandare
org: Google
email: [email protected]

normative:
CLIENTCRED:
author:
Expand All @@ -85,6 +91,17 @@ normative:
target: https://tools.ietf.org/html/rfc6749#section-4.4
title: The OAuth 2.0 Authorization Framework - Client Credentials Grant

EXPIRES_IN:
Copy link
Contributor

Choose a reason for hiding this comment

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

you don't need to describe an RFC. You can just add its number and the kramdown tool will do the rest.

author:
- ins: D. Hardt
name: D. Hardt
date: October 2012
seriesinfo:
DOI: 10.17487/RFC6749
RFC: '6749'
target: https://datatracker.ietf.org/doc/html/rfc6749#appendix-A.14
title: The OAuth 2.0 Authorization Framework - "expires_in" Syntax

OpenID.Core:
author:
- ins: N. Sakimura
Expand Down Expand Up @@ -929,6 +946,19 @@ description
This is useful in multi-stream systems to identify the stream for human actors. The
transmitter MAY truncate the string beyond an allowed max length.

stream_ttl

> **Transmitter-Supplied**, OPTIONAL. The refreshable lifetime of the stream in seconds, after which the Transmitter MAY either pause or disable the stream if it has not received any Receiver-initiated communication (defined below) in that duration. The syntax is the same as that of {{EXPIRES_IN}}.
Copy link
Contributor

Choose a reason for hiding this comment

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

You might want to expand the acronym "TTL" somewhere in the description. You say it precisely in the first sentence, but you just don't say what "TTL" stands for. It'll help clarify the name even though most folks will know what it is.

Copy link
Contributor

Choose a reason for hiding this comment

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

Is the right behavior "pause or disable", or just "delete"?

>
> For PUSH streams, the Transmitter MUST refresh the TTL whenever:
Copy link
Contributor

Choose a reason for hiding this comment

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

Might be better to write this as: "For streams created with the PUSH {{RFC8935}} delivery method..."

> * The Receiver calls any endpoint in the Event Stream Management API ({{management}}).
>
> For POLL streams, the Transmitter MUST refresh the TTL whenever:
> * The Receiver polls the Transmitter for events.
> * The Receiver calls any endpoint in the Event Stream Management API ({{management}}).
>
> If the Transmitter decides to update the stream, it MUST send a Stream Updated Event to the Receiver as described in {{status}}.

TODO: consider adding a IANA Registry for stream configuration metadata, similar
to Section 7.1.1 of {{RFC8414}}. This would allow other specs to add to
the stream configuration.
Expand Down