feat: Add CrowdSec Bouncer Key Display component and integrate into Security page
- Implemented CrowdSecBouncerKeyDisplay component to fetch and display the bouncer API key information. - Added loading skeletons and error handling for API requests. - Integrated the new component into the Security page, conditionally rendering it based on CrowdSec status. - Created unit tests for the CrowdSecBouncerKeyDisplay component, covering various states including loading, registered/unregistered bouncer, and no key configured. - Added functional tests for the Security page to ensure proper rendering of the CrowdSec Bouncer Key Display based on the CrowdSec status. - Updated translation files to include new keys related to the bouncer API key functionality.
This commit is contained in:
23
.vscode/tasks.json
vendored
23
.vscode/tasks.json
vendored
@@ -543,6 +543,29 @@
|
||||
"panel": "shared"
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "Utility: Update Grype Version",
|
||||
"type": "shell",
|
||||
"command": "curl -sSfL https://get.anchore.io/grype | sudo sh -s -- -b /usr/local/bin",
|
||||
"group": "none",
|
||||
"problemMatcher": [],
|
||||
"presentation": {
|
||||
"reveal": "always",
|
||||
"panel": "shared"
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "Utility: Update Syft Version",
|
||||
"type": "shell",
|
||||
"command": "curl -sSfL https://get.anchore.io/syft | sudo sh -s -- -b /usr/local/bin",
|
||||
"group": "none",
|
||||
"problemMatcher": [],
|
||||
"presentation": {
|
||||
"reveal": "always",
|
||||
"panel": "shared"
|
||||
}
|
||||
}
|
||||
|
||||
],
|
||||
"inputs": [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user