-
Notifications
You must be signed in to change notification settings - Fork 186
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
Move the registry to in-memory cache #6481
Conversation
- Enhance the logging messages - Minor enhancements
- Replace the logging services - Move services to core plugin - CacheAPIUserAllowRunAs - ManageHosts - ServerAPIClient (aka api-interceptor) - ServerAPIHostEntries (aka ) - UpdateConfigurationFile - UpdateRegistry - Adapt the usage of services in the main and check updates plugin from core plugin - Remove plugin logger from main and core plugins - Remove API endpoint - GET /utils/logs/ui - Remove unused code - Adapt the test suites
…to enhancement/6137-adapt-logging-method
…to enhancement/6137-adapt-logging-method
- Remove GET /utils/logs endpoint - Remove related tests - Remove App logs application
- Create Configuration service - Create ConfigurationStore (backend and frontend side) - Register the plugin settings in the configuration services
…ration service - API endpoints: - GET /utils/configuration - PUT /utils/configuration - PUT /utils/configuration/files/{key} - DELETE /utils/configuration/files/{key}
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.
UI
Test | Chrome | Firefox | Safari |
---|---|---|---|
Go to Server APIs, and add an online API host that can be connected. The data about the cluster name or manager name should appear in the table. | ⚫ | 🟢 | ⚫ |
Go to Server APIs, and edit an offline API host that can be connected. The data about the cluster name or manager name should appear in the table. | ⚫ | 🟢 | ⚫ |
Go to Server APIs, and edit an online API host that can not be connected. The data about the cluster name or manager name should not appear in the table. | ⚫ | 🟢 | ⚫ |
Go to Server APIs, change the cluster name or manager name of an offline API connection, and edit the API connection that can be connected. The new data about the cluster name or manager name should appear in the table. | ⚫ | 🟢 | ⚫ |
Go to Server APIs, change the cluster name or manager name of an offline API connection, and click on the Refresh button. The new data about the cluster name or manager name should appear in the table. | ⚫ | 🟢 | ⚫ |
Go to Server APIs, and add an offline API host that can be connected. The data about the cluster name or manager name should not appear in the table. | ⚫ | 🟢 | ⚫ |
Go to About, it only should display the version and revision of the application. No reference to installation date. | ⚫ | 🟢 | ⚫ |
Changing run as status | ⚫ | 🔴 | ⚫ |
Removing an API | ⚫ | 🔴 | ⚫ |
Details
🟢 Go to Server APIs, and add an online API host that can be connected. The data about the cluster name or manager name should appear in the table.
Chrome - ⚫
Safari - ⚫
🟢 Go to Server APIs, and edit an offline API host that can be connected. The data about the cluster name or manager name should appear in the table.
Chrome - ⚫
Safari - ⚫
🟢 Go to Server APIs, and edit an online API host that can not be connected. The data about the cluster name or manager name should not appear in the table.
Chrome - ⚫
Safari - ⚫
🟢 Go to Server APIs, change the cluster name or manager name of an offline API connection, and edit the API connection that can be connected. The new data about the cluster name or manager name should appear in the table.
Chrome - ⚫
Safari - ⚫
🟢 Go to Server APIs, change the cluster name or manager name of an offline API connection, and click on the Refresh button. The new data about the cluster name or manager name should appear in the table.
Chrome - ⚫
Safari - ⚫
🟢 Go to Server APIs, and add an offline API host that can be connected. The data about the cluster name or manager name should not appear in the table.
Chrome - ⚫
Safari - ⚫
🟢 Go to About, it only should display the version and revision of the application. No reference to installation date.
Chrome - ⚫
Safari - ⚫
…com/wazuh/wazuh-kibana-app into enhancement/6387-registry-stateless
Changes
|
…o enhancement/6387-registry-stateless
|
|
|
UI
Details 🟢 Go to Server APIs, and add an online API host that can be connected. The data about the cluster name or manager name should appear in the table.Chrome - 🟢 Firefox - ⚫ Safari - ⚫ 🟢 Go to Server APIs, and edit an offline API host that can be connected. The data about the cluster name or manager name should appear in the table.Chrome - 🟢 Firefox - ⚫ Safari - ⚫ 🟢 Go to Server APIs, and edit an online API host that can not be connected. The data about the cluster name or manager name should not appear in the table.Chrome - 🟢 Firefox - ⚫ Safari - ⚫ 🟢 Go to Server APIs, change the cluster name or manager name of an offline API connection, and edit the API connection that can be connected. The new data about the cluster name or manager name should appear in the table.Chrome - 🟢 Firefox - ⚫ Safari - ⚫ 🟢 Go to Server APIs, change the cluster name or manager name of an offline API connection, and click on the Refresh button. The new data about the cluster name or manager name should appear in the table.Chrome - 🟢 Firefox - ⚫ Safari - ⚫ 🟢 Go to Server APIs, and add an offline API host that can be connected. The data about the cluster name or manager name should not appear in the table.Chrome - 🟢 Firefox - ⚫ Safari - ⚫ |
Description
This pull request moves the registry to an in-memory cache and removes some logic done by the frontend side that should do the backend side.
Changes
service.
instead of cacheAPIUserAllowRunAs
Installation date
from the About viewthe registry data
Issues Resolved
#6387
Evidence
Test
TEST
With an API connection using an with
run_as
capability enabled withrun_as
disabled, edit the API connection settingrun_as
astrue
, save. TheRun as
column should display therun_as
is enabled with acheck
Context: @yenienserrano
6387-registry-in-memory-cache
Legend:
⚫: none
🟢: pass
🟡: warning
🔴: fail
⚪: not applicable
UI
Details
⚫ Go to Server APIs, and add an online API host that can be connected. The data about the cluster name or manager name should appear in the table.
Chrome - ⚫
Firefox - ⚫
Safari - ⚫
⚫ Go to Server APIs, and edit an offline API host that can be connected. The data about the cluster name or manager name should appear in the table.
Chrome - ⚫
Firefox - ⚫
Safari - ⚫
⚫ Go to Server APIs, and edit an online API host that can not be connected. The data about the cluster name or manager name should not appear in the table.
Chrome - ⚫
Firefox - ⚫
Safari - ⚫
⚫ Go to Server APIs, change the cluster name or manager name of an offline API connection, and edit the API connection that can be connected. The new data about the cluster name or manager name should appear in the table.
Chrome - ⚫
Firefox - ⚫
Safari - ⚫
⚫ Go to Server APIs, change the cluster name or manager name of an offline API connection, and click on the Refresh button. The new data about the cluster name or manager name should appear in the table.
Chrome - ⚫
Firefox - ⚫
Safari - ⚫
⚫ Go to Server APIs, and add an offline API host that can be connected. The data about the cluster name or manager name should not appear in the table.
Chrome - ⚫
Firefox - ⚫
Safari - ⚫
⚫ Go to About, it only should display the version and revision of the application. No reference to installation date.
Chrome - ⚫
Firefox - ⚫
Safari - ⚫
6387-registry-in-memory-cache
Legend:
⚫: none
🟢: pass
🟡: warning
🔴: fail
⚪: not applicable
UI
Details
⚫ Go to Server APIs, and add an online API host that can be connected. The data about the cluster name or manager name should appear in the table.
Chrome - ⚫
Firefox - ⚫
Safari - ⚫
⚫ Go to Server APIs, and edit an offline API host that can be connected. The data about the cluster name or manager name should appear in the table.
Chrome - ⚫
Firefox - ⚫
Safari - ⚫
⚫ Go to Server APIs, and edit an online API host that can not be connected. The data about the cluster name or manager name should not appear in the table.
Chrome - ⚫
Firefox - ⚫
Safari - ⚫
⚫ Go to Server APIs, change the cluster name or manager name of an offline API connection, and edit the API connection that can be connected. The new data about the cluster name or manager name should appear in the table.
Chrome - ⚫
Firefox - ⚫
Safari - ⚫
⚫ Go to Server APIs, change the cluster name or manager name of an offline API connection, and click on the Refresh button. The new data about the cluster name or manager name should appear in the table.
Chrome - ⚫
Firefox - ⚫
Safari - ⚫
⚫ Go to Server APIs, and add an offline API host that can be connected. The data about the cluster name or manager name should not appear in the table.
Chrome - ⚫
Firefox - ⚫
Safari - ⚫
⚫ Go to About, it only should display the version and revision of the application. No reference to installation date.
Chrome - ⚫
Firefox - ⚫
Safari - ⚫
Check List
yarn test:jest