-
Notifications
You must be signed in to change notification settings - Fork 393
refactor: [M3-9532] β Account for "LA Disk Encryption" region capability in regionSupportsDiskEncryption checks
#11833
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
refactor: [M3-9532] β Account for "LA Disk Encryption" region capability in regionSupportsDiskEncryption checks
#11833
Conversation
|
cc @dwiley-akamai if possible to make this change in this PR while doing changelog updates: |
regionSupportsDiskEncryption checksregionSupportsDiskEncryption checks
β¦ooltip for unencrypted linodes & node pools
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/regionsΒ requests
- User with enabled tag, I see the
LA Disk Encryptioncapability for every region. This includes Frankfurt, which has bothLA Disk EncryptionandDisk Encryption. - User without any tag, I see no
LA Disk Encryptionfor any region. Frankfurt includes theDisk Encryptioncapability as if itβs GA. - User with disabled tag, I see no
LA Disk EncryptionorDisk Encryptioncapabilities for any regions.
Linode Create flow
- User with enabled tag: sees the "Disk Encryption" section, regardless of selected region; the checkbox is enabled for every region (GA and LA Disk Encryption)
- I can create a linode in a Core region
- I can create a linode in a Distributed region and it is encrypted
- User without any tag: sees the "Disk Encryption" section, regardless of selected region; the checkbox is disabled for every region but Frankfurt, because it's the only one with 'Disk Encryption' (GA) and not 'LA Disk Encryption'
- I can create a linode in a Core region
- I can create a linode in a Distributed region and it is encrypted
- User with disabled tag does not see the "Disk Encryption" section
- I can create a linode in a Core region
- I can create a linode in a Distributed region and it is encrypted - noting that this wasn't made clear in documentation but is an assumption that the default encryption would take precedence over the disabled tag
Linode Details page
- User with enabled tag: sees encryption status indicator in the summary panel and a tooltip explaining encryption can be enabled by rebuilding (all regions support at least LA LDE)
- User without any tag: sees encryption status indicator in the summary panel and only sees the tooltip if the region the linode is in supports LDE
- User with disabled tag does not see the encryption status indicator (note: we might want to revisit in the future for Distributed region linodes where this is enabled by default)
Linode Rebuild flow
- User with enabled tag: sees "Disk Encryption" section, and default checkbox status should match the linode's current encryption status (i.e., unchecked if linode is currently not encrypted, checked if linode currently is)
- User without any tags: sees "Disk Encryption" section, and default checkbox status should match the linode's current encryption status (i.e., unchecked if linode is currently not encrypted, checked if linode currently is)
- User with disabled tag does not see the "Disk Encryption" section
LKE landing page banner
- User with enabled tag: should see banner (unless it has been dismissed)
- User without any tags: should see banner (unless it has been dismissed)
- User with disabled tag does not see the "Disk Encryption" section
LKE Details page
- User with enabled tag: should always be able to see pool encryption status indicator (and tooltip depends on LDE availability in region)
- User without any tags: should always be able to see pool encryption status indicator (and tooltip depends on LDE availability in region)
- User with disabled tag: does not see the encryption status indicator
|
Coverage Report: β
|
|
Going through stuff from the linked pr - I'm not too sure if my understanding of this feature is correct, but here's what I've been seeing: tag combinations:
Linode Create flow - testing both distributed and non distributed Linode Details page - non distributed Linodes Linode Rebuild flow - non distributed Linodes LKE landing page banner LKE Details page |
|
going to walk through some stuff with distributed Linodes, but things are looking good so far! one question for the LKE details page |
|
@coliu-akamai apologies if it was unclear -- there shouldn't be a situation where a user has both the With the latest commits on this PR, you shouldn't see a tooltip for unencrypted linodes or node pools if the region the entities are in do not support LDE |
β¦value in Linode Create flow
mjac0bs
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving this based on our latest testing. Confirmed all Linode actions at least kick off as expected for encrypted and non-encrypted Linodes.
Confirmed changes for Disk Encryption box to be checked in the create flow if Disk Encryption is enabled in either LA or GA for that region look good.
This looks good from a UI perspective and outstanding errors are on the API side, so we should be good to merge this to staging; we'll need an update from them on status of fixes.
jaalah-akamai
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
User Flow w/ Disabled Tag:
- Can Rebuild
- Can Clone
- Can Migrate
- Can Resize
- Can Rescue
- Can Delete
c5fcfbb
|
@mjac0bs @jaalah-akamai Sorry about the dismissals |
|
I can confirm that the following flows work with the tag combinations specified.
|
Cloud Manager UI test resultsπ 535 passing tests on test run #9 βοΈ
|
Description π
Currently in
staging, users with the "Disk Encryption" account capability are unable to deploy to regions that only have the "LA Disk Encryption" capability. This PR updates the logic checking if a region supports LDE to account for both the "Disk Encryption" (indicates GA) and "LA Disk Encryption" (indicates LA) capabilities.Target release date ποΈ
3/17/25
How to test π§ͺ
There should be no adverse impacts on the LDE functionality outlined in #11817.
On this branch, pointing at
staging, a user with thelinode_disk_encryptioncustomer tag should be able to deploy to not only regions with the "Disk Encryption" capability, but the "LA Disk Encryption" capability as well. The expectation at this moment is for Frankfurt to have the "Disk Encryption" capability and all others to have "LA Disk Encryption" but you can confirm by checking the/regionsnetwork requestAdditionally, the encryption status indicators found on the Linode Details page and LKE Details page (at the node pool table level) should not display tooltips if the region the entities are in do not support LDE.
Author Checklists
As an Author, to speed up the review process, I considered π€
π Doing a self review
β Our contribution guidelines
π€ Splitting feature into small PRs
β Adding a changeset
π§ͺ Providing/improving test coverage
π Removing all sensitive information from the code and PR description
π© Using a feature flag to protect the release
π£ Providing comprehensive reproduction steps
π Providing or updating our documentation
π Scheduling a pair reviewing session
π± Providing mobile support
βΏ Providing accessibility support
As an Author, before moving this PR from Draft to Open, I confirmed β