Skip to content

Conversation

@bradfitz
Copy link
Member

The client/tailscale is a stable-ish API we try not to break. Revert the Client.CreateKey method as it was and add a new CreateKeyWithExpiry method to do the new thing. And document the expiry field and enforce that the time.Duration can't be between in range greater than 0 and less than a second.

Updates #7143
Updates #8124 (reverts it, effectively)

Copy link
Member

@danderson danderson left a comment

Choose a reason for hiding this comment

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

cmd/k8s-operator needs fixups as it was already patched to fix the API change breakage.

@bradfitz bradfitz force-pushed the bradfitz/createkey branch from 3ae82db to 3815ecc Compare May 13, 2023 03:56
…thExpiry

The client/tailscale is a stable-ish API we try not to break. Revert
the Client.CreateKey method as it was and add a new
CreateKeyWithExpiry method to do the new thing. And document the
expiry field and enforce that the time.Duration can't be between in
range greater than 0 and less than a second.

Updates #7143
Updates #8124 (reverts it, effectively)

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
@bradfitz bradfitz force-pushed the bradfitz/createkey branch from 3815ecc to 4873137 Compare May 13, 2023 03:59
@bradfitz bradfitz merged commit 4664318 into main May 13, 2023
@bradfitz bradfitz deleted the bradfitz/createkey branch May 13, 2023 04:05
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.

4 participants