Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into fix/user-management…
Browse files Browse the repository at this point in the history
…-filter-special-chars
  • Loading branch information
ss-nikunj committed Sep 19, 2024
2 parents 30bed86 + 7e31363 commit 83b62d4
Show file tree
Hide file tree
Showing 47 changed files with 945 additions and 314 deletions.
60 changes: 60 additions & 0 deletions .github/workflows/trufflehog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
###############################################################
# Copyright (c) 2024 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made available under the
# terms of the Apache License, Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0.
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
# SPDX-License-Identifier: Apache-2.0
###############################################################

name: 'TruffleHog'

on:
push:
branches: ['main']
pull_request:
# The branches below must be a subset of the branches above
branches: ['main']
schedule:
- cron: '0 0 * * *' # Once a day
workflow_dispatch:

permissions:
actions: read
contents: read
security-events: write
id-token: write
issues: write

jobs:
ScanSecrets:
name: Scan secrets
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
fetch-depth: 0 # Ensure full clone for pull request workflows

- name: TruffleHog OSS
id: trufflehog
uses: trufflesecurity/trufflehog@7e78ca385fb82c19568c7a4b341c97d57d9aa5e1 #v3.82.2
continue-on-error: true
with:
path: ./ # Scan the entire repository
base: '${{ github.event.repository.default_branch }}' # Set base branch for comparison (pull requests)
extra_args: --filter-entropy=4 --results=verified,unknown --debug

- name: Scan Results Status
if: steps.trufflehog.outcome == 'failure'
run: exit 1 # Set workflow run to failure if TruffleHog finds secrets
25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,25 @@
# Changelog

## (unreleased) 2.2.0-RC3

## Unreleased

### Bugfixes

- **Service Release Process**
- Updated description regex & validation error message to prevent only spaces in short & long description
- **OSP Consent form**
- Fixed missing street number in form [#1081](https://github.com/eclipse-tractusx/portal-frontend/issues/1081)
- **App and Service Admin board**
- Fix data disappearing issue on re-clicking active tab/filter in app/service admin board [#1100](https://github.com/eclipse-tractusx/portal-frontend/pull/1100)
- **App & Service Subcription Managment**
- Search place holder text updated
- Show only available offer names at the top
- **Admin Service Management**
- Resolved service title overlap and improved responsiveness on the admin service detail page [#1112](https://github.com/eclipse-tractusx/portal-frontend/pull/1112)

## Unreleased 2.2.0-RC3

### Feature

- **Roles and Permissions**
Expand All @@ -15,13 +33,15 @@

- **Company Subscriptions**
- Update and bind API with filter options [#1062](https://github.com/eclipse-tractusx/portal-frontend/pull/1062)
- Add a tabular section to show up both app and service subscription data [#1101](https://github.com/eclipse-tractusx/portal-frontend/pull/1101)

### Bugfixes

- fixed onClick of "Overview My Apps" button in App Release Process screen [#1022](https://github.com/eclipse-tractusx/portal-frontend/issues/1022)
- fixed 400 Bad Request error in App Access Management -> Add Role search filter [#1057](https://github.com/eclipse-tractusx/portal-frontend/issues/1057)
- **Connector Management**
- fixed technical user selection
- updated inconsistent wording during connector deletion [#1098](https://github.com/eclipse-tractusx/portal-frontend/pull/1098)
- **IDP management**
- Fixed IDP management page title & description
- **Technical User**
Expand All @@ -37,10 +57,15 @@
- Fixed 'activeTab' conditions to load data for Tab-2(Registration Process) [#1050](https://github.com/eclipse-tractusx/portal-frontend/pull/1050)
- **App Release Process**:
- Fixed role upload does not work using Firefox [#1003](https://github.com/eclipse-tractusx/portal-frontend/pull/1003)
- Fixed "None" selection issue in Technical Integration -> App Release Process [#1036](https://github.com/eclipse-tractusx/portal-frontend/issues/1036)
- **Technical User Management**
- Display technicalUserManagement button based on role validation [#1073](https://github.com/eclipse-tractusx/portal-frontend/pull/1073)
- **OSP Consent form**
- Display invited company name in OSP consent form (Previously hard coded with 'BMW') [#1083](https://github.com/eclipse-tractusx/portal-frontend/pull/1083)
- Filter out roles not defined by OSP [#1114](https://github.com/eclipse-tractusx/portal-frontend/pull/1114)
- Fix OSP consent form 400 submission error [#1102](https://github.com/eclipse-tractusx/portal-frontend/pull/1102/files)
- **Use Case participation**
- Removes use cases without verified credentials from the "Use Case Participation" list [#1088](https://github.com/eclipse-tractusx/portal-frontend/pull/1088)
- **User Management**
- Fixed special characters in user management email filters [#1128](https://github.com/eclipse-tractusx/portal-frontend/issues/1128)

Expand Down
4 changes: 2 additions & 2 deletions DEPENDENCIES
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ npm/npmjs/@babel/template/7.24.0, MIT, approved, clearlydefined
npm/npmjs/@babel/traverse/7.24.1, MIT AND (BSD-2-Clause AND ISC AND MIT) AND BSD-2-Clause AND BSD-3-Clause, approved, #13926
npm/npmjs/@babel/types/7.24.0, MIT, approved, clearlydefined
npm/npmjs/@bcoe/v8-coverage/0.2.3, ISC AND MIT, approved, clearlydefined
npm/npmjs/@catena-x/portal-shared-components/3.5.1, Apache-2.0 AND CC-BY-4.0 AND OFL-1.1, approved, #16079
npm/npmjs/@catena-x/portal-shared-components/3.6.1, Apache-2.0 AND CC-BY-4.0 AND OFL-1.1, approved, #16144
npm/npmjs/@cspotcode/source-map-support/0.8.1, MIT, approved, clearlydefined
npm/npmjs/@date-io/core/3.0.0, MIT, approved, clearlydefined
npm/npmjs/@date-io/date-fns/3.0.0, MIT, approved, #14023
Expand Down Expand Up @@ -749,7 +749,7 @@ npm/npmjs/@types/hoist-non-react-statics/3.3.5, MIT, approved, clearlydefined
npm/npmjs/@types/istanbul-lib-coverage/2.0.6, MIT, approved, clearlydefined
npm/npmjs/@types/istanbul-lib-report/3.0.3, MIT, approved, clearlydefined
npm/npmjs/@types/istanbul-reports/3.0.4, MIT, approved, clearlydefined
npm/npmjs/@types/jest/29.5.12, MIT, approved, #11951
npm/npmjs/@types/jest/29.5.13, MIT, approved, #11951
npm/npmjs/@types/jsdom/20.0.1, MIT, approved, clearlydefined
npm/npmjs/@types/json-schema/7.0.15, MIT, approved, clearlydefined
npm/npmjs/@types/json5/0.0.29, MIT, approved, clearlydefined
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
]
},
"dependencies": {
"@catena-x/portal-shared-components": "^3.5.1",
"@catena-x/portal-shared-components": "^3.6.1",
"@emotion/react": "^11.11.4",
"@emotion/styled": "^11.11.5",
"@hookform/error-message": "^2.0.1",
Expand Down Expand Up @@ -72,7 +72,7 @@
"@testing-library/react": "^14.2.2",
"@testing-library/user-event": "^14.5.2",
"@types/autosuggest-highlight": "^3.2.3",
"@types/jest": "^29.5.12",
"@types/jest": "^29.5.13",
"@types/lodash": "^4.17.7",
"@types/lodash.debounce": "^4.0.9",
"@types/lodash.uniq": "^4.5.9",
Expand Down
20 changes: 13 additions & 7 deletions src/assets/locales/de/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -453,8 +453,8 @@
"technicalUser": "Technischer Benutzer",
"unsubscribe": "Abbestellen",
"table": {
"appIcon": "App-Symbol",
"appTitle": "App-Titel",
"appIcon": "Symbol",
"appTitle": "Titel",
"status": "Status",
"details": "Einzelheiten",
"action": "Aktion"
Expand All @@ -464,7 +464,8 @@
"active": "aktiv",
"inactive": "inaktiv",
"showAll": "Alles anzeigen"
}
},
"searchName": "..search by company name here"
},
"companySubscriptionsDetail": {
"language": "Verfügbare App Sprachen",
Expand Down Expand Up @@ -676,7 +677,7 @@
"title": "EDC-Connector Löschen",
"description": "Möchten Sie den ausgewählten Connector wirklich löschen? Die Löschung kann nicht rückgängig gemacht werden.",
"techUserdescription": "Möchten Sie den Connector wirklich löschen? Mit der Löschung wird der Connector automatisch vom Endpunkt „Connector Discovery“ gelöscht und das Selbstbeschreibungsdokument auf inaktiv gesetzt.\n Bitte beachten Sie, dass mit dem Connector ein technischer Benutzer verbunden ist. Der technische Benutzer kann gelöscht werden, wenn Sie das Kontrollkästchen unten aktivieren. Andernfalls wird nur die Zuordnung zwischen Connector und technischem Benutzer gelöscht.",
"techUserCheckBoxLabel": "Ja, ich möchte den Connector deaktivieren, wodurch automatisch auch der erwähnte technische Benutzer gelöscht wird.",
"techUserCheckBoxLabel": "Ja, ich möchte den Connector löschen, wodurch automatisch auch der erwähnte technische Benutzer gelöscht wird.",
"techDetails": {
"title": "Technical Details",
"name": "Name",
Expand Down Expand Up @@ -954,7 +955,10 @@
"spoc": "SPOC",
"permission": "Berechtigungen",
"companyServiceAccountTypeID": "Firmenservicekontotyp",
"authenticationType": "Authentifizierungstyp"
"authenticationType": "Authentifizierungstyp",
"userType": "Benutzertyp",
"serviceEndpoint": "Dienstendpunkt",
"missingInfoHint": "Diese Informationen stehen älteren Benutzern möglicherweise nicht zur Verfügung. Erstellen Sie den Benutzer neu, um die vollständigen Details zu erhalten."
},
"status": {
"ACTIVE": "AKTIV",
Expand Down Expand Up @@ -1471,7 +1475,7 @@
"description": "Do you wan't to rather use the autosetup; connect your service to automate marketplace subscription build",
"readMore": "Read More",
"registerURL": "RegisterURL",
"search": "...search by entering the app name here.",
"search": "...search by entering the company name here.",
"noDataMessage": "No data available",
"subscriptionHeading": ">> there are already active subscriptions for the service {serviceName}",
"subscribeSuccessMsg": "Subscribed Successfully",
Expand Down Expand Up @@ -2327,7 +2331,9 @@
"alias": "Alias",
"authMethod": "Auth Method",
"progress": "Progress",
"action": "Action"
"action": "Action",
"ownership": "Ownership",
"userType": "Usertype"
},
"actions": {
"cancel": "Abbrechen",
Expand Down
3 changes: 2 additions & 1 deletion src/assets/locales/de/servicerelease.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
"maximum": "Maximum",
"charactersAllowed": " characters allowed",
"validCharactersIncludes": "Valid characters includes: ",
"spaceAloneNotAllowed": " and spaces alone are not allowed",
"isMandatory": " is mandatory",
"fileUploadIsMandatory": "File upload is mandatory",
"error": {
Expand Down Expand Up @@ -152,7 +153,7 @@
"description": "Do you wan't to rather use the autosetup; connect your service to automate marketplace subscription build",
"readMore": "Read More",
"registerURL": "RegisterURL",
"search": "...search by entering the service name here.",
"search": "...search by entering the company name here.",
"noDataMessage": "No data available",
"subscriptionHeading": ">> there are already active subscriptions for the service {serviceName}",
"subscribeSuccessMsg": "Subscribed Successfully",
Expand Down
20 changes: 13 additions & 7 deletions src/assets/locales/en/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -449,8 +449,8 @@
"technicalUser": "Technical User",
"unsubscribe": "Unsubscribe",
"table": {
"appIcon": "App Icon",
"appTitle": "App title",
"appIcon": "Icon",
"appTitle": "Title",
"status": "Status",
"details": "Details",
"action": "Action"
Expand All @@ -460,7 +460,8 @@
"active": "active",
"inactive": "inactive",
"showAll": "show all"
}
},
"searchName": "..search by company name here"
},
"companySubscriptionsDetail": {
"language": "Language",
Expand Down Expand Up @@ -681,7 +682,7 @@
"title": "Delete Connector",
"description": "Do you really want to delete the registered connector? Please note that the deletion is not reversable.",
"techUserdescription": "Do you really want to delete the connector? With the deletion the connector will be automatically deleted from the „connector discovery“ endpoint as well as the self-description document will be set to inactive.\n\n Please note, the connector has a technical user connected - the technical user can be deleted if you select the checkbox below otherwise only the mapping between connector and technical user will be deleted.",
"techUserCheckBoxLabel": "Yes, I want to deactivate the connector which will automatically also delete the mentioned technical user.",
"techUserCheckBoxLabel": "Yes, I want to delete the connector which will automatically also delete the mentioned technical user.",
"techDetails": {
"title": "Technical Details",
"name": "Name",
Expand Down Expand Up @@ -959,7 +960,10 @@
"spoc": "SPOC",
"permission": "Permission",
"companyServiceAccountTypeID": "Company Service Account Type",
"authenticationType": "Authentication Type"
"authenticationType": "Authentication Type",
"userType": "User Type",
"serviceEndpoint": "Service Endpoint",
"missingInfoHint": "This information may not be available to older users. Recreate the user to get the complete details."
},
"status": {
"ACTIVE": "ACTIVE",
Expand Down Expand Up @@ -1439,7 +1443,7 @@
"description": "Do you wan't to rather use the autosetup; connect your service to automate marketplace subscription build",
"readMore": "Read More",
"registerURL": "RegisterURL",
"search": "...search by entering the app name here.",
"search": "...search by entering the company name here.",
"noDataMessage": "No data available",
"subscriptionHeading": ">> there are already active subscriptions for the service {serviceName}",
"subscribeSuccessMsg": "Subscribed Successfully",
Expand Down Expand Up @@ -2302,7 +2306,9 @@
"alias": "Alias",
"authMethod": "Auth Method",
"progress": "Progress",
"action": "Action"
"action": "Action",
"ownership": "Ownership",
"userType": "Usertype"
},
"actions": {
"cancel": "Cancel",
Expand Down
3 changes: 2 additions & 1 deletion src/assets/locales/en/servicerelease.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
"maximum": "Maximum",
"charactersAllowed": " characters allowed",
"validCharactersIncludes": "Valid characters includes: ",
"spaceAloneNotAllowed": " and spaces alone are not allowed",
"isMandatory": " is mandatory",
"fileUploadIsMandatory": "File upload is mandatory",
"error": {
Expand Down Expand Up @@ -152,7 +153,7 @@
"description": "Do you wan't to rather use the autosetup; connect your service to automate marketplace subscription build",
"readMore": "Read More",
"registerURL": "RegisterURL",
"search": "...search by entering the service name here.",
"search": "...search by entering the company name here.",
"noDataMessage": "No data available",
"subscriptionHeading": ">> there are already active subscriptions for the service {serviceName}",
"subscribeSuccessMsg": "Subscribed Successfully",
Expand Down
2 changes: 1 addition & 1 deletion src/components/overlays/OSPRegister/OSPRegisterContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ const OSPRegisterForm = ({
variant: 'filled',
clearText: 'clear',
keyTitle: 'id',
onChangeItem: (value: ItemType): void => {
onChangeItem: (value): void => {
updateData({
...data,
uniqueIds: [
Expand Down
2 changes: 1 addition & 1 deletion src/components/overlays/UpdateCertificate/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ export default function UpdateCertificate() {
)
}
onChangeItem={(e) => {
setSelectedCertificate(e.title)
setSelectedCertificate(e.title as string)
}}
keyTitle={'title'}
disabled={certificatetypesArr.length === 1}
Expand Down
Loading

0 comments on commit 83b62d4

Please sign in to comment.