Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI/transit add missed algorithms follow up #9520

Merged
merged 3 commits into from
Jul 17, 2020

Conversation

andaley
Copy link
Contributor

@andaley andaley commented Jul 17, 2020

Show correct transit key version date

This PR is a follow up to #9070, which adds the aes128-gcm96, ecdsa-p384, and ecdsa-p521 transit key versions to the UI. The PR surfaced another bug where we were showing the incorrect timestamp on the transit key show page for the aes128-gcm96 key type. To solve it, we updated the serializer to convert the timestamp to milliseconds (which is what our date helpers expect). We already have to do for several other key types as well. This PR from last year fixes the same problem.

The Changes: Transit Keys

These transit key types are now shown in the UI. Without the fix, the timestamp for version 1 and 2 used to say "more than 50 years ago".
image

image
Screen Shot 2020-07-17 at 11 27 07 AM

Testing

In the UI, create each type of transit key. Navigate to the versions tab and rotate the encryption key. You should be able to see the version with the correct version timestamp.

@andaley andaley force-pushed the ui/transit-add-missed-algorithms branch from 9cc232f to f25c3ff Compare July 17, 2020 19:14
@andaley andaley changed the title Ui/transit add missed algorithms UI/transit add missed algorithms follow up Jul 17, 2020
Copy link
Contributor

@chelshaw chelshaw left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@andaley andaley merged commit c72306a into master Jul 17, 2020
@andaley andaley deleted the ui/transit-add-missed-algorithms branch July 17, 2020 20:25
@andaley andaley added this to the 1.4.4 milestone Jul 17, 2020
@andaley andaley added the ui label Jul 17, 2020
Monkeychip pushed a commit that referenced this pull request Aug 11, 2020
* fix NaN error for version history of aes128-gcm96 transit secrets

* convert aes128-gcm96 keys to milliseconds to work with date-frmo-now helper
Monkeychip pushed a commit that referenced this pull request Aug 11, 2020
* fix NaN error for version history of aes128-gcm96 transit secrets

* convert aes128-gcm96 keys to milliseconds to work with date-frmo-now helper
chelshaw pushed a commit that referenced this pull request Aug 12, 2020
* fix NaN error for version history of aes128-gcm96 transit secrets

* convert aes128-gcm96 keys to milliseconds to work with date-frmo-now helper

Co-authored-by: Noelle Daley <noelledaley@users.noreply.github.com>
chelshaw pushed a commit that referenced this pull request Aug 12, 2020
* fix NaN error for version history of aes128-gcm96 transit secrets

* convert aes128-gcm96 keys to milliseconds to work with date-frmo-now helper

Co-authored-by: Noelle Daley <noelledaley@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants