Skip to content

Conversation

@davepacheco
Copy link
Collaborator

I recently used todos to audit the various TODO comments I've written to make sure we had issues filed for anything that should be tracked for MVP. In this PR, for issues that I filed as part of doing this, I'm updating the corresponding TODO comments. There are basically two cases: where the comment was now unnecessary, I just removed it. Where the comment still seemed useful to readers or because the spot where the comment lives is important, I updated it to reference the issue.

In the second commit, I also went and normalized a few various TODO tags to fix misspellings (e.g., TODO-completess).

- where it's not particularly valuable to have a TODO in the code that
  corresponds to something, and there's now an issue, I removed the
  comment altogether
- when I felt it was still useful to have a comment (e.g., because a
  reader might want to know about the problem, or because it's useful to
  point out exactly where some problem exists), I left the comment but
  updated it to reference the issue
/// can fail (if the value is larger than i64::MAX). We provide all of these for
/// consumers' convenience.
// TODO-cleanup This could benefit from a more complete implementation.
// TODO-correctness RFD 4 requires that this be a multiple of 256 MiB. We'll
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Covered by #2415.

);

-- Access tokens granted in response to successful device authorization flows.
-- TODO-security: expire tokens.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Covered by #2302

/// suggested in RFC 8628 §6.1 (User Code Recommendations); q.v. also for
/// a discussion of entropy requirements. On input, use codes should be
/// uppercased, and characters not in this alphabet should be stripped.
// TODO-security: user code tries should be rate-limited
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Covered by #2184

message: "device authorization request expired".to_string(),
})
} else {
// TODO-security: set an expiration time for the valid token.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Covered by #2302

Comment on lines -8 to -14
// - TCP and HTTP KeepAlive parameters
// - Server hostname
// - Disable signals?
// - Analogs for actix client_timeout (request timeout), client_shutdown (client
// shutdown timeout), server backlog, number of workers, max connections per
// worker, max connect-in-progress sockets, shutdown_timeout (server shutdown
// timeout)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Covered by #2414 and #2184

where
T: authz::ApiResourceWithRolesType + AuthorizedResource + Clone,
{
// TODO-security We should carefully review what permissions are
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Covered by #2303

}

/// Successful access token grant. See RFC 6749 §5.1.
/// TODO-security: `expires_in`, `refresh_token`, etc.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Covered by #2302, #2306

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.

2 participants