Skip to content

Commit

Permalink
[hotfix] add nonce where applies (#256)
Browse files Browse the repository at this point in the history
  • Loading branch information
sijav authored Jun 18, 2024
1 parent 5d61b35 commit bb16659
Show file tree
Hide file tree
Showing 13 changed files with 170 additions and 146 deletions.
15 changes: 4 additions & 11 deletions src/assets/icons/aws-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 1 addition & 3 deletions src/assets/icons/createIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import { Palette, useTheme } from '@mui/material'
import { FC, FunctionComponent, SVGProps, forwardRef } from 'react'
import { useNonce } from 'src/shared/providers'

type SvgIconProps = SVGProps<SVGSVGElement> & { title?: string; nonce?: string }

export const createIcon = (Icon: FunctionComponent<SvgIconProps>) => {
const SvgIconComp: FC<SvgIconProps> = forwardRef(({ color, fill, ...props }, ref) => {
const { palette } = useTheme()
const nonce = useNonce()
type KeyOfPalette = 'common'
type PaletteAsObject = Palette[KeyOfPalette]
type KeyOfPaletteAsObject = keyof PaletteAsObject
Expand All @@ -22,7 +20,7 @@ export const createIcon = (Icon: FunctionComponent<SvgIconProps>) => {
) {
iconColor = palette[firstColorKey][secondColorKey as KeyOfPaletteAsObject]
}
return <Icon nonce={nonce} {...props} ref={ref} fill={iconColor} />
return <Icon {...props} ref={ref} fill={iconColor} />
})
SvgIconComp.displayName = Icon.displayName || Icon.name
return SvgIconComp
Expand Down
84 changes: 42 additions & 42 deletions src/locales/de-DE/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ msgstr "<0>Datenschutzerklärung</0> | <1>Allgemeine Geschäftsbedingungen</1>"
msgid "<0>Step 1: Scan the QR Code</0><1>First up, see this QR code on your screen? Grab your phone and open your favorite authenticator app (like Google Authenticator).</1><2>Step 2: Add a New Account</2><3>In the app, tap on \"Add\" or \"+\" to set up a new account. Select \"Scan a QR Code\" and point your phone's camera at the QR code displayed here. This will link your account to the app.</3><4><5/></4><6>Step 3: Enter the Code</6><7>Once linked, the app will display a 6-digit code. It changes every 30 seconds, so it's super fresh! Enter that code in the box below and hit \"Activate\". And voilà, you're all set!</7>"
msgstr "<0>Schritt 1: Scannen Sie den QR-Code</0><1>Zuerst, sehen Sie diesen QR-Code auf Ihrem Bildschirm? Nehmen Sie Ihr Handy und öffnen Sie Ihre bevorzugte Authenticator-App (wie Google Authenticator).</1><2>Schritt 2: Ein neues Konto hinzufügen</2><3>In der App, tippen Sie auf \"Hinzufügen\" oder \"+\", um ein neues Konto einzurichten. Wählen Sie \"QR-Code scannen\" und richten Sie die Kamera Ihres Handys auf den hier angezeigten QR-Code. Dies verknüpft Ihr Konto mit der App.</3><4><5/></4><6>Schritt 3: Geben Sie den Code ein</6><7>Sobald verknüpft, zeigt die App einen 6-stelligen Code an. Er ändert sich alle 30 Sekunden, also ist er super aktuell! Geben Sie diesen Code in das Feld unten ein und klicken Sie auf \"Aktivieren\". Und voilà, Sie sind fertig!</7>"

#: src/pages/panel/inventory/InventoryAdvanceSearch.tsx:47
#: src/pages/panel/inventory/InventoryAdvanceSearch.tsx:50
msgid "<0>This search is complex.</0>The combo boxes below may not display all filter details but can help narrow your results. For full control, please use the Advanced tab."
msgstr ""

Expand Down Expand Up @@ -204,8 +204,8 @@ msgstr ""
msgid "Accept"
msgstr "Akzeptieren"

#: src/pages/panel/workspace-settings-accounts/WorkspaceSettingsAccountRow.tsx:239
#: src/pages/panel/workspace-settings-accounts/WorkspaceSettingsAccountRow.tsx:365
#: src/pages/panel/workspace-settings-accounts/WorkspaceSettingsAccountRow.tsx:241
#: src/pages/panel/workspace-settings-accounts/WorkspaceSettingsAccountRow.tsx:367
msgid "Access to your account is broken"
msgstr "Der Zugriff auf Ihr Konto ist unterbrochen"

Expand Down Expand Up @@ -278,13 +278,13 @@ msgstr "Manuell hinzufügen"
msgid "Added accounts"
msgstr "Konten hinzugefügt"

#: src/pages/panel/workspace-settings-users/WorkspaceSettingsUserRoles.tsx:58
#: src/pages/panel/workspace-settings-users/WorkspaceSettingsUserRoles.tsx:59
#: src/pages/panel/workspace-settings-users/workspaceSettingsUserRoleToString.ts:10
#: src/pages/panel/workspace-settings-users/workspaceSettingsUserRoleToString.ts:18
msgid "Admin"
msgstr "Admin"

#: src/pages/panel/inventory/InventoryAdvanceSearch.tsx:72
#: src/pages/panel/inventory/InventoryAdvanceSearch.tsx:75
msgid "Advanced"
msgstr ""

Expand Down Expand Up @@ -384,7 +384,7 @@ msgstr "Möchten Sie die Verbindung zu {name} wirklich trennen?"
msgid "Are you sure you want to remove the {name} account {0}?"
msgstr "Sind Sie sicher, dass Sie das {name}-Konto {0} entfernen möchten?"

#: src/pages/panel/workspace-settings-accounts/WorkspaceSettingsAccountRow.tsx:383
#: src/pages/panel/workspace-settings-accounts/WorkspaceSettingsAccountRow.tsx:385
#: src/pages/panel/workspace-settings-users/WorkspaceSettingsUserInvitationRow.tsx:85
#: src/pages/panel/workspace-settings-users/WorkspaceSettingsUserRow.tsx:107
msgid "Are you sure?"
Expand All @@ -408,7 +408,7 @@ msgstr "AWS Marketplace"
msgid "AWS Marketplace has been successfully subscribed"
msgstr "AWS Marketplace wurde erfolgreich abonniert"

#: src/pages/panel/workspace-settings-accounts-setup-cloud-gcp/WorkspaceSettingsAccountsSetupCloudGCPInstructions.tsx:90
#: src/pages/panel/workspace-settings-accounts-setup-cloud-gcp/WorkspaceSettingsAccountsSetupCloudGCPInstructions.tsx:93
msgid "Back"
msgstr ""

Expand Down Expand Up @@ -446,7 +446,7 @@ msgstr "Benchmarks"
msgid "Billing"
msgstr "Abrechnung"

#: src/pages/panel/workspace-settings-users/WorkspaceSettingsUserRoles.tsx:62
#: src/pages/panel/workspace-settings-users/WorkspaceSettingsUserRoles.tsx:63
#: src/pages/panel/workspace-settings-users/workspaceSettingsUserRoleToString.ts:13
msgid "Billing Admin"
msgstr "Abrechnungsadmin"
Expand All @@ -466,14 +466,14 @@ msgstr "Business"
#: src/pages/panel/user-settings/UserSettingsSocialNetworkDeleteButton.tsx:68
#: src/pages/panel/user-settings/UserSettingsTotpActivationModal.tsx:121
#: src/pages/panel/user-settings/UserSettingsTotpDeactivationModal.tsx:49
#: src/pages/panel/workspace-settings-accounts/WorkspaceSettingsAccountRow.tsx:285
#: src/pages/panel/workspace-settings-accounts/WorkspaceSettingsAccountRow.tsx:289
#: src/pages/panel/workspace-settings-accounts/WorkspaceSettingsAccountRow.tsx:290
#: src/pages/panel/workspace-settings-accounts/WorkspaceSettingsAccountRow.tsx:402
#: src/pages/panel/workspace-settings-accounts/WorkspaceSettingsAccountRow.tsx:287
#: src/pages/panel/workspace-settings-accounts/WorkspaceSettingsAccountRow.tsx:291
#: src/pages/panel/workspace-settings-accounts/WorkspaceSettingsAccountRow.tsx:292
#: src/pages/panel/workspace-settings-accounts/WorkspaceSettingsAccountRow.tsx:404
#: src/pages/panel/workspace-settings-users/WorkspaceSettingsUserInvitationRow.tsx:92
#: src/pages/panel/workspace-settings-users/WorkspaceSettingsUserRoles.tsx:152
#: src/pages/panel/workspace-settings-users/WorkspaceSettingsUserRoles.tsx:156
#: src/pages/panel/workspace-settings-users/WorkspaceSettingsUserRoles.tsx:157
#: src/pages/panel/workspace-settings-users/WorkspaceSettingsUserRoles.tsx:154
#: src/pages/panel/workspace-settings-users/WorkspaceSettingsUserRoles.tsx:158
#: src/pages/panel/workspace-settings-users/WorkspaceSettingsUserRoles.tsx:159
#: src/pages/panel/workspace-settings-users/WorkspaceSettingsUserRow.tsx:118
#: src/pages/panel/workspace-settings/workspace-settings-services/WorkspaceSettingsDisconnectServiceModal.tsx:57
#: src/pages/panel/workspace-settings/workspace-settings-services/WorkspaceSettingsEmailService.tsx:105
Expand Down Expand Up @@ -546,7 +546,7 @@ msgstr "Schließen"
#: src/pages/panel/inventory/inventory-form/InventoryFormMore.tsx:96
#: src/pages/panel/resource-detail/ResourceDetailView.tsx:235
#: src/pages/panel/security/AccountCard.tsx:37
#: src/pages/panel/workspace-settings-accounts/WorkspaceSettingsAccountRow.tsx:422
#: src/pages/panel/workspace-settings-accounts/WorkspaceSettingsAccountRow.tsx:424
#: src/pages/panel/workspace-settings-accounts/WorkspaceSettingsAccountsTableItem.tsx:50
msgid "Cloud"
msgstr "Cloud"
Expand Down Expand Up @@ -625,7 +625,7 @@ msgstr "Verbundene Konten"
msgid "Connected Services"
msgstr "Vernetzte Dienste"

#: src/pages/panel/workspace-settings-accounts-setup-cloud-gcp/WorkspaceSettingsAccountsSetupCloudGCPInstructions.tsx:85
#: src/pages/panel/workspace-settings-accounts-setup-cloud-gcp/WorkspaceSettingsAccountsSetupCloudGCPInstructions.tsx:88
msgid "Continue"
msgstr ""

Expand Down Expand Up @@ -723,10 +723,10 @@ msgid "Delayed Effect"
msgstr "Verzögerte Wirkung"

#: src/pages/panel/user-settings/UserSettingsSocialNetworkDeleteButton.tsx:79
#: src/pages/panel/workspace-settings-accounts/WorkspaceSettingsAccountRow.tsx:352
#: src/pages/panel/workspace-settings-accounts/WorkspaceSettingsAccountRow.tsx:356
#: src/pages/panel/workspace-settings-accounts/WorkspaceSettingsAccountRow.tsx:357
#: src/pages/panel/workspace-settings-accounts/WorkspaceSettingsAccountRow.tsx:413
#: src/pages/panel/workspace-settings-accounts/WorkspaceSettingsAccountRow.tsx:354
#: src/pages/panel/workspace-settings-accounts/WorkspaceSettingsAccountRow.tsx:358
#: src/pages/panel/workspace-settings-accounts/WorkspaceSettingsAccountRow.tsx:359
#: src/pages/panel/workspace-settings-accounts/WorkspaceSettingsAccountRow.tsx:415
#: src/pages/panel/workspace-settings-users/WorkspaceSettingsUserInvitationRow.tsx:73
#: src/pages/panel/workspace-settings-users/WorkspaceSettingsUserInvitationRow.tsx:77
#: src/pages/panel/workspace-settings-users/WorkspaceSettingsUserInvitationRow.tsx:78
Expand All @@ -744,7 +744,7 @@ msgstr "Anbieter löschen"

#: src/pages/panel/shared/setup-cloud-button/SetupCloudButton.tsx:13
#: src/pages/panel/shared/setup-cloud-button/SetupCloudButton.tsx:29
#: src/pages/panel/workspace-settings-accounts/WorkspaceSettingsAccountRow.tsx:370
#: src/pages/panel/workspace-settings-accounts/WorkspaceSettingsAccountRow.tsx:372
msgid "Deploy Stack"
msgstr "Deploy Stack"

Expand Down Expand Up @@ -786,7 +786,7 @@ msgstr ""
msgid "Do not show me again"
msgstr "Zeig es mir nicht noch einmal"

#: src/pages/panel/workspace-settings-accounts/WorkspaceSettingsAccountRow.tsx:386
#: src/pages/panel/workspace-settings-accounts/WorkspaceSettingsAccountRow.tsx:388
msgid "Do you want to delete this account?"
msgstr "Möchten Sie dieses Konto löschen?"

Expand Down Expand Up @@ -816,10 +816,10 @@ msgstr "CSV herunterladen"
msgid "Drop Service Account Key File"
msgstr ""

#: src/pages/panel/workspace-settings-accounts/WorkspaceSettingsAccountRow.tsx:301
#: src/pages/panel/workspace-settings-accounts/WorkspaceSettingsAccountRow.tsx:302
#: src/pages/panel/workspace-settings-users/WorkspaceSettingsUserRoles.tsx:173
#: src/pages/panel/workspace-settings-users/WorkspaceSettingsUserRoles.tsx:174
#: src/pages/panel/workspace-settings-accounts/WorkspaceSettingsAccountRow.tsx:303
#: src/pages/panel/workspace-settings-accounts/WorkspaceSettingsAccountRow.tsx:304
#: src/pages/panel/workspace-settings-users/WorkspaceSettingsUserRoles.tsx:175
#: src/pages/panel/workspace-settings-users/WorkspaceSettingsUserRoles.tsx:176
msgid "Edit"
msgstr "Edit"

Expand Down Expand Up @@ -974,8 +974,8 @@ msgstr "Passwort vergessen? Klicken Sie hier, um Ihr Passwort zurückzusetzen."
msgid "Forgot Password"
msgstr "Passwort vergessen"

#: src/pages/panel/inventory/InventoryAdvanceSearch.tsx:60
#: src/pages/panel/inventory/InventoryAdvanceSearch.tsx:63
#: src/pages/panel/inventory/InventoryAdvanceSearch.tsx:66
msgid "Form"
msgstr ""

Expand Down Expand Up @@ -1043,7 +1043,7 @@ msgstr ""

#: src/pages/panel/resource-detail/ResourceDetailView.tsx:232
#: src/pages/panel/security/AccountCard.tsx:34
#: src/pages/panel/workspace-settings-accounts/WorkspaceSettingsAccountRow.tsx:419
#: src/pages/panel/workspace-settings-accounts/WorkspaceSettingsAccountRow.tsx:421
#: src/pages/panel/workspace-settings-accounts/WorkspaceSettingsAccountsTableItem.tsx:53
#: src/shared/charts/NetworkDiagram.tsx:407
msgid "ID"
Expand Down Expand Up @@ -1237,7 +1237,7 @@ msgstr "maximal {0} Cloud-Konten"
msgid "Medium"
msgstr "Mittel"

#: src/pages/panel/workspace-settings-users/WorkspaceSettingsUserRoles.tsx:64
#: src/pages/panel/workspace-settings-users/WorkspaceSettingsUserRoles.tsx:65
#: src/pages/panel/workspace-settings-users/workspaceSettingsUserRoleToString.ts:16
msgid "Member"
msgstr "Mitglied"
Expand Down Expand Up @@ -1273,7 +1273,7 @@ msgstr "Die meisten nicht konformen Konten"

#: src/pages/panel/benchmark-detail/BenchmarkDetailCheckDetail.tsx:173
#: src/pages/panel/resource-detail/ResourceDetailView.tsx:233
#: src/pages/panel/workspace-settings-accounts/WorkspaceSettingsAccountRow.tsx:425
#: src/pages/panel/workspace-settings-accounts/WorkspaceSettingsAccountRow.tsx:427
#: src/pages/panel/workspace-settings-accounts/WorkspaceSettingsAccountsTableItem.tsx:56
#: src/pages/panel/workspace-settings-external-directory/AddExternalDirectory.tsx:42
#: src/pages/panel/workspace-settings-external-directory/AddExternalDirectory.tsx:46
Expand Down Expand Up @@ -1370,7 +1370,7 @@ msgstr ""
msgid "Non-Compliant Resources"
msgstr ""

#: src/pages/panel/workspace-settings-accounts/WorkspaceSettingsAccountRow.tsx:389
#: src/pages/panel/workspace-settings-accounts/WorkspaceSettingsAccountRow.tsx:391
msgid "Note: You are about to delete a management or delegated admin account. Please be aware that once deleted, we will no longer have the capability to retrieve any account names, requiring you to edit them manually."
msgstr "Sie löschen gerade ein Management- oder delegiertes Admin-Konto. Beachten Sie bitte, dass wir nach der Löschung nicht mehr in der Lage sein werden, Kontonamen abzurufen, wodurch Sie diese manuell bearbeiten müssen."

Expand Down Expand Up @@ -1415,7 +1415,7 @@ msgstr "Einmal"
msgid "Oops, the username or password doesn't seem to match our records. Please try again."
msgstr "Hoppla, der Benutzername oder das Passwort scheinen nicht mit unseren Aufzeichnungen übereinzustimmen. Bitte versuche es erneut."

#: src/pages/panel/inventory/InventoryAdvanceSearch.tsx:94
#: src/pages/panel/inventory/InventoryAdvanceSearch.tsx:97
#: src/pages/panel/inventory/InventoryAdvanceSearchTextField.tsx:114
msgid "Oops! It looks like your query didn't match our format. Please check and try again."
msgstr "Ups! Ihre Eingabe entspricht nicht unserem Format. Bitte überprüfen Sie sie und versuchen Sie es erneut."
Expand Down Expand Up @@ -1473,7 +1473,7 @@ msgstr "Andere Arbeitsbereichseinstellungen"
msgid "OTP Code"
msgstr "OTP-Code"

#: src/pages/panel/workspace-settings-users/WorkspaceSettingsUserRoles.tsx:60
#: src/pages/panel/workspace-settings-users/WorkspaceSettingsUserRoles.tsx:61
#: src/pages/panel/workspace-settings-users/workspaceSettingsUserRoleToString.ts:7
msgid "Owner"
msgstr "Eigentümer"
Expand Down Expand Up @@ -1557,11 +1557,11 @@ msgstr ""
msgid "Print or copy the following recovery codes"
msgstr "Drucken oder kopieren Sie die folgenden Wiederherstellungscodes"

#: src/shared/cloud-avatar/CloudAvatar.tsx:44
#: src/shared/cloud-avatar/CloudAvatar.tsx:46
msgid "Privileged"
msgstr "Privilegiert"

#: src/pages/panel/workspace-settings-accounts/WorkspaceSettingsAccountRow.tsx:234
#: src/pages/panel/workspace-settings-accounts/WorkspaceSettingsAccountRow.tsx:236
msgid "Privileged account"
msgstr "Privilegiertes Konto"

Expand Down Expand Up @@ -1821,11 +1821,11 @@ msgstr "Es ist ein Fehler aufgetreten. Bitte versuchen Sie es später noch einma
msgid "Sources"
msgstr "Quellen"

#: src/pages/panel/workspace-settings-accounts/WorkspaceSettingsAccountRow.tsx:274
#: src/pages/panel/workspace-settings-accounts/WorkspaceSettingsAccountRow.tsx:275
#: src/pages/panel/workspace-settings-accounts/WorkspaceSettingsAccountRow.tsx:280
#: src/pages/panel/workspace-settings-users/WorkspaceSettingsUserRoles.tsx:145
#: src/pages/panel/workspace-settings-users/WorkspaceSettingsUserRoles.tsx:146
#: src/pages/panel/workspace-settings-accounts/WorkspaceSettingsAccountRow.tsx:276
#: src/pages/panel/workspace-settings-accounts/WorkspaceSettingsAccountRow.tsx:277
#: src/pages/panel/workspace-settings-accounts/WorkspaceSettingsAccountRow.tsx:282
#: src/pages/panel/workspace-settings-users/WorkspaceSettingsUserRoles.tsx:147
#: src/pages/panel/workspace-settings-users/WorkspaceSettingsUserRoles.tsx:148
msgid "Submit"
msgstr "Einreichen"

Expand Down Expand Up @@ -1887,7 +1887,7 @@ msgstr ""
msgid "There's no account configured for this workspace."
msgstr "Für diesen Arbeitsbereich ist kein Konto konfiguriert."

#: src/pages/panel/workspace-settings-accounts/WorkspaceSettingsAccountRow.tsx:375
#: src/pages/panel/workspace-settings-accounts/WorkspaceSettingsAccountRow.tsx:377
msgid "This account is currently in a degraded state possibly due to a misconfiguration. Fix was unable to access the account. To resume security scans, please log into account {accountName} ({0}) and re-deploy the CloudFormation stack that establishes the IAM role trust."
msgstr "Dieses Konto befindet sich derzeit in einem nicht-funktionalen Zustand, möglicherweise aufgrund einer Fehlkonfiguration. Fix konnte nicht auf das Konto zugreifen. Um die Sicherheitsscans fortzusetzen, loggen Sie sich bitte in das Konto {accountName} ({0}) ein und erzeugen Sie den CloudFormation-Stacks, der die IAM Vertrauensstellung herstellt, erneut."

Expand Down
Loading

0 comments on commit bb16659

Please sign in to comment.