Skip to content

Add OptTimedelta datastore option #20790

@smcintyre-r7

Description

@smcintyre-r7

Summary

PR #20755 is enabling us to adjust the clock for Kerberos authentication to account for any skew that may be present. The functionality of allowing the user to specify a timedelta (positive or negative) seems like it could be useful elsewhere. Some examples off the top of my head could be, "I want this certificate to be valid for this long", "I want to run this attack for this long", or "I want this object to appear as though it was made this long ago", etc.

There should be an easy option to specify that the timedelta should be positive or negative. Specifying it must be positive for validation will probably see more use because that'd be analogous with a timespan.

Basic example

Motivation

This seems like useful functionality that we could leverage elsewhere.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions