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

[v17] Show device trust status in Connect #49577

Merged
merged 1 commit into from
Nov 29, 2024

Commits on Nov 29, 2024

  1. Show device trust status in Connect (#49508)

    * Check if device is trusted
    
    * Move `TrustedDeviceRequirement` enum to a separate file and generate TS definitions for it
    
    Generating TS definitions for the entire legacy/types/types.proto would result in 50K lines of generated code, and the bundle size would increase by ~20% (around 1 MB).
    
    * Extract function to calculate device trust requirement that can be used both by the server and the client
    
    Important: it now uses `GetEnforcementMode` instead of `GetEffectiveMode`. The check for OSS module is performed on the server-side anyway.
    
    * Check what is device trust requirement based on cluster config and user roles
    
    * Show device trust status in UI
    
    * Remove `types.` prefix
    
    * Improve godocs
    
    * Bring back `getRoles func() ([]types.Role, error)`
    
    * Simplify `TestHasDeviceTrustExtensions`
    
    * Clean up and improve `TestCalculateTrustedDeviceRequirement`
    
    * Move `CalculateTrustedDeviceRequirement` and tests to a separate file
    
    * Add colors to shield icons
    
    * Declare variables where they are used
    
    * Extract a component to display device trust status for better readability
    
    * Correctly reference `lib/client.ProfileStatus.Extensions`
    
    * Set group limit to 8
    
    * Make `switch` exhaustive
    
    * Regenerate protos
    
    * `make fix-license`
    
    (cherry picked from commit 095b0a3)
    gzdunek committed Nov 29, 2024
    Configuration menu
    Copy the full SHA
    93da9d5 View commit details
    Browse the repository at this point in the history