summaryrefslogtreecommitdiff
path: root/src/views/SecurityAndAccess
AgeCommit message (Collapse)AuthorFilesLines
2023-03-28Fix User Management Page issues title and Policykirankumarb071-1/+3
This patchset will fix the following issues in the user management page 1. "lockoutThreshold" and "lockoutDuration" values are not shown in the account policy model when we navigate to any other page and come back to the user management page account policy model. Fix - The "lockoutThreshold" and "lockoutDuration" values are monitored and updated in the model window by using the watch. When navigated from another page, the watch is not updating the values, so the default values are displayed. Initialized the value with an empty object, so the watch will get triggered and update the fields with proper values. 2. The User Management Page title is not translated properly. The router names are used to map each page's language objects. For the user management page, the router name and the object value in the locale file are different. Due to that, the title did not get translated properly. Fix - Changed the user management page title to match the locale file's language object key value. Change-Id: I1582c9d528633465c65f5d78e31d3dc740252cb0 Signed-off-by: Kirankumar Ballapalli <kirankumarb@ami.com>
2023-03-27Sessions page Client ID is not displayedkirankumarb071-3/+13
Redfish added support for the Context parameter on the session resource This parameter has the same function that the "OemSession.ClientId" field served. And BMC Web moves all the existing ClientId code to produce Context. This patch set contains the code changes for adding a new column "Context" in the sessions page and modifying the existing column "Client ID" to "Session ID" and mapping the redfish property "Id" to it. The property "Context" is optional in redfish. If the Context holds any value it will display in WebUI as it is. If it is not having any value, "-" will be displayed in the WebUI. Change-Id: Ibc99416fc37a91029bf430ccc7b387832eef729c Signed-off-by: Kirankumar Ballapalli <kirankumarb@ami.com>
2023-03-13Fixed calling method "handleSubmit" two timesChandra Harkude1-1/+1
Problem : "handleSubmit" called on clicking Ok button implicitly as well by the form (<b-form id="generate-csr-form" novalidate @submit.prevent= "handleSubmit"), due to this, redfish API POST /redfish/v1/CertificateService/Actions/Certificate Servi ce.GenerateCSR sent two times when "Generate CSR" button clicked,ideally redfish API needs to be sent only once This leads to failure of the second redfish API. Steps to Reproduce Issue: 1. Go to 'Login->Security and access->Certificate->Generate CSR fill the form 2. Click on 'Generate CSR.' 3. Scroll down to 'More Tools->Web Developer Tools->Network tab' 4. Two POST /redfish/v1/CertificateService/Actions/CertificateService. GenerateCSR are sent Solution: The issue can be fixed either by deleting the Ok button click event listener or deleting the (@submit.prevent="handleSubmit"). I have used later one, which is small change as well does not alter the code much Tested : I did manual testing and observed that two POST requests are no longer sent Reference : https://softauthor.com/vuejs-prevent-form-submission/ Signed-off-by: Chandra Harkude <chandramohan.harkude@gmail.com> Change-Id: I8736e597d2fe70aef438779667475426837d2c67
2023-02-13Added popup window with error messageDamian Celico1-6/+7
Showing error message if uploaded certificate is incorrect Signed-off-by: Damian Celico <damianx.celico@intel.com> Change-Id: Ifa034e663329e4841ff5c68f6171ce71739a6d13
2023-02-13Add translation for a few missing UI elementskirankumarb071-5/+24
On the sensor page and user management page, some of the strings are not getting translated to the selected language. I have added this patch to add the multiple language strings to the missing strings. Change-Id: I03ca43bb81708f85e913e39c6dfa24ab7f3de876 Signed-off-by: Kirankumar Ballapalli <kirankumarb@ami.com>
2023-02-08Enhanced User Management page error messageSivaprabu Ganesan2-3/+17
Description 1: When WebUI creates the user with an already existing username the error message will display the exact failure reason. Tested: Step 1: Login to webUI and navigate to user management page Step 2: Create new user with username "testUser1" Step 3: Create another user with same username "testUser1" Step 4: WEB UI will through the error message as "Username 'testuser1' already exists." Description 2: User can able to disable and change the root user via WebUI Now restricted to disable the root user and changing the root user privilege. Tested: Step 1: Login to Web UI with root user Step 2: Navigate to User management page Step 3: Try to modify the root user's details Step 4: WebUI won't allow to disable the user, username change and privilege change Step 5: Login Web UI with non-root user Step 6: Web UI won't allow to modify or delete the root user's details Change-Id: I0e38215b51fb058984664ec38ae9613e18043ed7 Signed-off-by: Sivaprabu Ganesan <sivaprabug@ami.com>
2023-01-25Added encodeURIComponent to CSR certificateSivaprabu Ganesan1-2/+5
Description 1: Downloading the CSR certificate data value without encodeURIComponent function is not supported in Firefox So added the encodeURIComponent function to download the csr certificate Tested: Step 1: Launch WEBUI on firefox Step 2: Navigate to Security and access, Certificates Page Step 3: Generate and Download CSR certificate (KeyPair Algorithm - EC and Key curve id - secp521r1) Step 4: After CSR Downloaded, copy the downloaded file to any of the linux machine Step 5: Try to create an https/ldap certificate via openssl on linux machine Result: Able to download the CSR certificate successfully and able to create https/ldap certificate via openssl Description 2: While downloading the generated csr via Web UI, the csr file is getting downloaded as ".txt" file but it should download as ".csr" file So changed the extension to ".csr" Tested: Step 1: Login to Web UI. Step 2: Navigate to Security and access, Certificates Page Step 3: Click Generate CSR Button and fill the required details Step 4: Click Generate CSR from the popup modal. Step 5: After CSR Generated an prompt will open and it will show download and copy option. In that select download, the csr certificate will download with ".csr" extension Change-Id: Ice176006a95afd53845d7696ce0eac88f02b1096 Signed-off-by: Sivaprabu Ganesan <sivaprabug@ami.com>
2022-09-26Check certificate file extensionDamian Celico1-7/+23
Checking the file extension type of uploaded certificates to redfish. Sends the file only if the file type is correct, otherwise shows error. Signed-off-by: Damian Celico <damianx.celico@intel.com> Change-Id: Idfc790bc8967333aed66c5c128334af4231dbea3
2022-02-04Set table busy state on loadKenneth Fullbright4-10/+23
- Add busy prop to tables Signed-off-by: Kenneth Fullbright <kennyneedsmilky@gmail.com> Change-Id: I4416f12967c9a0ad6c8bb782c7d8de5c17fdd195
2022-02-04Security Panel add additional featuresNikhil Ashoka1-57/+141
Added RTAD under Network interfaces Added VirtualTPM under Network services Removed the sub-headings in Policies page Signed-off-by: Nikhil Ashoka <a.nikhil@ibm.com> Change-Id: I6290362cecdfe7f8cd7bfde20fcaca88b6bc2c09
2021-09-03Resolve bug for pagination not being updatedSukanya Pandey1-1/+1
- Bug: When a user filters a page, the pagination does not change. - Solution: When a user filters a page, the pagination will be updated based on the filtered results. - This patchset will also add pagination in dumps page. Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com> Change-Id: I189d27b5489c42ac85f25c0a1a4cdb7cf7eae5c2
2021-08-19Hide "BMC shell (via SSH)" switch button on Intel environmentMichalX Szopinski1-1/+7
Add environment variable to control visibility of "BMC shell" switch button on "Policies" tab. Signed-off-by: MichalX Szopinski <michalx.szopinski@intel.com> Change-Id: I824e942cabbbb9da61343ebdbea8c93f1fe2b246
2021-08-10IA update: Update access and control sectionSandeepa Singh18-0/+3697
This is the fifth commit of the information architecture changes and has the following changes: - The icon for access and control has been updated - Access and control section has been updated to security and access section - Security settings page has been updated to policies page and moved to security and access section - Client sessions page has been updated to sessions page - Local user management page has been updated to user management page - SSL certificates page has been updated to certificates page Signed-off-by: Sandeepa Singh <sandeepa.singh@ibm.com> Change-Id: Ie93cee9002742ecf7d33615636f4f159f4395fc4