Skip to content

Add configurable token expiry to DSQL#4352

Open
amaksimo wants to merge 1 commit intoaws:developmentfrom
amaksimo:dsql-configurable-token-expiry
Open

Add configurable token expiry to DSQL#4352
amaksimo wants to merge 1 commit intoaws:developmentfrom
amaksimo:dsql-configurable-token-expiry

Conversation

@amaksimo
Copy link

Summary

  • Add optional TimeSpan expiresIn parameter to DSQL auth token generation methods
  • Other AWS SDKs (Go, Java, Ruby) already allow configuring the token expiry duration; this brings parity to .NET
  • Default remains 15 minutes for backwards compatibility
  • Validates that expiresIn is between 0 (exclusive) and 7 days (inclusive)

Test plan

  • Added unit tests for custom expiry (450s) on both DbConnect and DbConnectAdmin (sync + async)
  • Added unit tests for validation: zero, negative, and >7 day values
  • Existing tests pass unchanged (backwards compatible)
  • Source and test projects build with 0 warnings, 0 errors

Other AWS SDKs (Go, Java, Ruby) allow configuring
the auth token expiry duration up to 7 days. Add
the same capability to the .NET SDK with a default
of 15 minutes for backwards compatibility.
@amaksimo amaksimo marked this pull request as ready for review March 12, 2026 21:08
@dscpinheiro dscpinheiro changed the base branch from main to development March 12, 2026 21:13
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.

1 participant