-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UI/Add Elasticsearch DB #12672
UI/Add Elasticsearch DB #12672
Conversation
tls_server_name: attr('string', { | ||
label: 'TLS server name', | ||
subText: 'If set, this name is used to set the SNI host when connecting via 1TLS.', | ||
}), | ||
root_rotation_statements: attr({ | ||
subText: `The database statements to be executed to rotate the root user's credentials. If nothing is entered, Vault will use a reasonable default.`, | ||
editType: 'stringArray', | ||
defaultShown: 'Default', | ||
}), | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Databases unsupported by the UI will trigger EmptyState
components in templates
@@ -106,9 +103,9 @@ export default Model.extend({ | |||
'username', | |||
'rotation_period', | |||
'creation_statements', | |||
'creation_statement', // only for MongoDB (styling difference) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No longer just for MongoDB, Elasticsearch needed as well :)
subText: | ||
'The connection string used to connect to the database. This allows for simple templating of username and password of the root user.', | ||
label: 'URL', | ||
subText: `The URL for Elasticsearch's API ("https://localhost:9200").`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Connection works if http://127.0.0.1:9200
or https://localhost:9200
@@ -10,7 +10,10 @@ export default create({ | |||
dbPlugin: selectable('[data-test-input="plugin_name"]'), | |||
name: fillable('[data-test-input="name"]'), | |||
toggleVerify: clickable('[data-test-input="verify_connection"]'), | |||
url: fillable('[data-test-input="connection_url"'), | |||
connectionUrl: fillable('[data-test-input="connection_url"]'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed selector to match attribute name now that we have both connection_url
and url
inputs
{{/if}} | ||
</ToolbarActions> | ||
</Toolbar> | ||
{{#if @model.isAvailablePlugin}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple of questions, but granted none of them have any issues, this looks great. Nice work. (edit: and there's a failing UI test).
Aha! Found the error - thanks for your comments! |
Adds Elasticsearch DB support to UI. Also now UI shows empty state when a database is connected via CLI but unsupported by the UI