mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 11:38:02 +00:00
Add message while adding Oracle db connection (#13087)
* Add message while adding Oracle db connection - Since UI currently doesn't have support for custom plugin names, inform user to use the default plugin name for oracle * Updated warning message * Updated message
This commit is contained in:
@@ -83,6 +83,14 @@
|
|||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if (eq @mode 'create')}}
|
{{#if (eq @mode 'create')}}
|
||||||
|
|
||||||
|
{{#if (eq @model.plugin_name "vault-plugin-database-oracle")}}
|
||||||
|
<AlertBanner @type="warning">
|
||||||
|
Please ensure that your Oracle plugin has the default name of <b>vault-plugin-database-oracle</b>.
|
||||||
|
Custom naming is not supported in the UI at this time. If the plugin is already named vault-plugin-database-oracle, disregard this warning.
|
||||||
|
</AlertBanner>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
<form {{on 'submit' this.handleCreateConnection}}>
|
<form {{on 'submit' this.handleCreateConnection}}>
|
||||||
{{#each @model.fieldAttrs as |attr|}}
|
{{#each @model.fieldAttrs as |attr|}}
|
||||||
{{#if (not-eq attr.options.readOnly true)}}
|
{{#if (not-eq attr.options.readOnly true)}}
|
||||||
|
|||||||
@@ -136,7 +136,7 @@ export const AVAILABLE_PLUGIN_TYPES = [
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: 'oracle-database-plugin',
|
value: 'vault-plugin-database-oracle',
|
||||||
displayName: 'Oracle',
|
displayName: 'Oracle',
|
||||||
fields: [
|
fields: [
|
||||||
{ attr: 'plugin_name' },
|
{ attr: 'plugin_name' },
|
||||||
@@ -188,7 +188,7 @@ export const STATEMENT_FIELDS = {
|
|||||||
'mysql-aurora-database-plugin': [],
|
'mysql-aurora-database-plugin': [],
|
||||||
'mysql-legacy-database-plugin': [],
|
'mysql-legacy-database-plugin': [],
|
||||||
'mysql-rds-database-plugin': [],
|
'mysql-rds-database-plugin': [],
|
||||||
'oracle-database-plugin': [],
|
'vault-plugin-database-oracle': [],
|
||||||
'postgresql-database-plugin': [],
|
'postgresql-database-plugin': [],
|
||||||
},
|
},
|
||||||
dynamic: {
|
dynamic: {
|
||||||
@@ -200,7 +200,7 @@ export const STATEMENT_FIELDS = {
|
|||||||
'mysql-aurora-database-plugin': ['creation_statements', 'revocation_statements'],
|
'mysql-aurora-database-plugin': ['creation_statements', 'revocation_statements'],
|
||||||
'mysql-legacy-database-plugin': ['creation_statements', 'revocation_statements'],
|
'mysql-legacy-database-plugin': ['creation_statements', 'revocation_statements'],
|
||||||
'mysql-rds-database-plugin': ['creation_statements', 'revocation_statements'],
|
'mysql-rds-database-plugin': ['creation_statements', 'revocation_statements'],
|
||||||
'oracle-database-plugin': ['creation_statements', 'revocation_statements'],
|
'vault-plugin-database-oracle': ['creation_statements', 'revocation_statements'],
|
||||||
'postgresql-database-plugin': [
|
'postgresql-database-plugin': [
|
||||||
'creation_statements',
|
'creation_statements',
|
||||||
'revocation_statements',
|
'revocation_statements',
|
||||||
|
|||||||
@@ -212,7 +212,7 @@ const connectionTests = [
|
|||||||
// keep oracle as last DB because it is skipped in some tests (line 285) the UI doesn't return to empty state after
|
// keep oracle as last DB because it is skipped in some tests (line 285) the UI doesn't return to empty state after
|
||||||
{
|
{
|
||||||
name: 'oracle-connection',
|
name: 'oracle-connection',
|
||||||
plugin: 'oracle-database-plugin',
|
plugin: 'vault-plugin-database-oracle',
|
||||||
url: `{{username}}/{{password}}@localhost:1521/OraDoc.localhost`,
|
url: `{{username}}/{{password}}@localhost:1521/OraDoc.localhost`,
|
||||||
requiredFields: async (assert, name) => {
|
requiredFields: async (assert, name) => {
|
||||||
assert.dom('[data-test-input="username"]').exists(`Username field exists for ${name}`);
|
assert.dom('[data-test-input="username"]').exists(`Username field exists for ${name}`);
|
||||||
@@ -282,7 +282,7 @@ module('Acceptance | secrets/database/*', function(hooks) {
|
|||||||
await connectionPage.connectionUrl(testCase.url);
|
await connectionPage.connectionUrl(testCase.url);
|
||||||
}
|
}
|
||||||
// skip adding oracle db connection since plugin doesn't exist
|
// skip adding oracle db connection since plugin doesn't exist
|
||||||
if (testCase.plugin === 'oracle-database-plugin') {
|
if (testCase.plugin === 'vault-plugin-database-oracle') {
|
||||||
testCase.requiredFields(assert, testCase.name);
|
testCase.requiredFields(assert, testCase.name);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ const testCases = [
|
|||||||
dynamicRoleFields: ['creation_statements', 'revocation_statements', 'ttl', 'max_ttl'],
|
dynamicRoleFields: ['creation_statements', 'revocation_statements', 'ttl', 'max_ttl'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
pluginType: 'oracle-database-plugin',
|
pluginType: 'vault-plugin-database-oracle',
|
||||||
staticRoleFields: ['username', 'rotation_period'],
|
staticRoleFields: ['username', 'rotation_period'],
|
||||||
dynamicRoleFields: ['creation_statements', 'revocation_statements', 'ttl', 'max_ttl'],
|
dynamicRoleFields: ['creation_statements', 'revocation_statements', 'ttl', 'max_ttl'],
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user