Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Metabase
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Engineering Digital Service
Metabase
Commits
f4bd9e3d
Commit
f4bd9e3d
authored
2 years ago
by
Alexander Polyankin
Browse files
Options
Downloads
Patches
Plain Diff
Add description for the ssl client key for postgres
parent
e8526c75
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
frontend/src/metabase/entities/databases/forms.js
+23
-1
23 additions, 1 deletion
frontend/src/metabase/entities/databases/forms.js
with
23 additions
and
1 deletion
frontend/src/metabase/entities/databases/forms.js
+
23
−
1
View file @
f4bd9e3d
import
React
from
"
react
"
;
import
{
t
,
j
t
}
from
"
ttag
"
;
import
{
j
t
,
t
}
from
"
ttag
"
;
import
MetabaseSettings
from
"
metabase/lib/settings
"
;
import
{
getElevatedEngines
}
from
"
metabase/lib/engine
"
;
...
...
@@ -77,6 +77,9 @@ const DATABASE_DETAIL_OVERRIDES = {
placeholder
:
t
`Paste the contents of the server's SSL certificate chain here`
,
type
:
"
text
"
,
}),
"
ssl-key-options
"
:
engine
=>
({
description
:
getSslKeyOptionsDescription
(
engine
),
}),
"
schedules.metadata_sync
"
:
()
=>
({
name
:
"
schedules.metadata_sync
"
,
type
:
MetadataSyncScheduleWidget
,
...
...
@@ -149,6 +152,25 @@ function getSshDescription() {
return
jt
`If a direct connection to your database isn't possible, you may want to use an SSH tunnel.
${
link
}
.`
;
}
function
getSslKeyOptionsDescription
(
engine
)
{
if
(
engine
!==
"
postgres
"
)
{
return
null
;
}
const
link
=
(
<
ExternalLink
href
=
{
MetabaseSettings
.
docsUrl
(
"
databases/connections/postgresql
"
,
"
authenticate-client-certificate
"
,
)}
>
{
t
`Learn more`
}
<
/ExternalLink
>
);
return
jt
`If you have a PEM SSL client key, you can convert that key to the PKCS-8/DER format using OpenSSL.
${
link
}
.`
;
}
const
AUTH_URL_PREFIXES
=
{
bigquery
:
"
https://accounts.google.com/o/oauth2/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=code&scope=https://www.googleapis.com/auth/bigquery&client_id=
"
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment