pinterest / teletraan

Teletraan is Pinterest's deploy system.
Apache License 2.0
1.81k stars 250 forks source link

Add checks for script token expiry date #1739

Closed tylerwowen closed 3 weeks ago

tylerwowen commented 1 month ago

This pull request includes changes to introduce token expiry checks and update user notifications in the deploy-board and deploy-service modules. The most important changes include adding a warning message for deprecated script tokens, implementing token expiry logic, and updating tests to cover the new functionality.

User Interface Updates:

Screenshot 2024-11-01 at 14 23 09 Screenshot 2024-11-01 at 15 30 40 Screenshot 2024-11-01 at 14 33 14

Backend Changes:

Testing Updates:

Launched Teletraan service locally and confirmed that all 3 cases are working as expected

  1. checkTokenExpiry not set
  2. checkTokenExpiry set to true
  3. checkTokenExpiry set to false