Skip to content

Commit

Permalink
fix SmartKey provider name
Browse files Browse the repository at this point in the history
  • Loading branch information
celloman committed Jun 30, 2021
1 parent 274eea4 commit b07dbcb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Constant/affiliate.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
export enum KEY_PROVIDERS {
DATABASE = 'DATABASE',
SMART_KEY = 'SMART_KEY',
SMARTKEY = 'SMARTKEY',
}

export const KEY_PROVIDER_META = {
[KEY_PROVIDERS.DATABASE]: { label: 'Database', description: 'Store keys directly in the database. Note: this is a less secure method of key storage' },
[KEY_PROVIDERS.SMART_KEY]: { label: 'SmartKey', description: 'Use external cloud Hardware Security Module (HSM) provider Equinix SmartKey® to securely store private keys' },
[KEY_PROVIDERS.SMARTKEY]: { label: 'SmartKey', description: 'Use external cloud Hardware Security Module (HSM) provider Equinix SmartKey® to securely store private keys' },
} as const

export const KEY_PROVIDERS_ARRAY = Object.entries(KEY_PROVIDERS).map(([key, value]) => ({ ...KEY_PROVIDER_META[key], value }));
2 changes: 1 addition & 1 deletion src/components/KeyManagement/AddKeyModalContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export const AddKeyModalContainer = withFormik<AddKeyModalContainerProps, AddKey
mapPropsToValues: () => ({
alias: '',
indexName: '',
keyProvider: KEY_PROVIDERS.SMART_KEY,
keyProvider: KEY_PROVIDERS.SMARTKEY,
signingPrivateKey: '',
encryptionPrivateKey: '',
}),
Expand Down

0 comments on commit b07dbcb

Please sign in to comment.