René's URL Explorer Experiment


Title: SSL Mode support for MySQL · Issue #337 · jasync-sql/jasync-sql · GitHub

Open Graph Title: SSL Mode support for MySQL · Issue #337 · jasync-sql/jasync-sql

X Title: SSL Mode support for MySQL · Issue #337 · jasync-sql/jasync-sql

Description: Hello! I would like to ask if there's a plan to support sslMode configuration for MySQL database? According to FAQ, currently, only PostgreSQL is supported. I also noticed that com.github.jasync.sql.db.SSLConfiguration defaults to sslMod...

Open Graph Description: Hello! I would like to ask if there's a plan to support sslMode configuration for MySQL database? According to FAQ, currently, only PostgreSQL is supported. I also noticed that com.github.jasync.sq...

X Description: Hello! I would like to ask if there's a plan to support sslMode configuration for MySQL database? According to FAQ, currently, only PostgreSQL is supported. I also noticed that com.github.jasyn...

Opengraph URL: https://github.com/jasync-sql/jasync-sql/issues/337

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"SSL Mode support for MySQL","articleBody":"Hello!\r\n\r\n**I would like to ask if there's a plan to support `sslMode` configuration for MySQL database?** According to FAQ, currently, only PostgreSQL is supported. I also noticed that `com.github.jasync.sql.db.SSLConfiguration` defaults to `sslMode=disabled` mode for MySQL which leads to problems when the MySQL Server is configured to enforce SSL connections.\r\n\r\nI had a look at the implementation details and found that this library integrates with R2DBC SPI (https://r2dbc.io/spec/0.8.1.RELEASE/spec/html/#overview.connection.discovery). The driver will be discovered by R2DBC SPI which will use `com.github.jasync.r2dbc.mysql.MysqlConnectionFactoryProvider#create` to create `io.r2dbc.spi.ConnectionFactory` object:\r\n```kotlin\r\n// from: com.github.jasync.r2dbc.mysql.MysqlConnectionFactoryProvider#create\r\n@Suppress(\"NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS\")\r\noverride fun create(connectionFactoryOptions: ConnectionFactoryOptions): JasyncConnectionFactory {\r\n    val configuration = Configuration(\r\n        host = connectionFactoryOptions.getValue(HOST),\r\n        port = connectionFactoryOptions.getValue(PORT),\r\n        username = connectionFactoryOptions.getValue(USER),\r\n        password = connectionFactoryOptions.getValue(PASSWORD)?.toString(),\r\n        database = connectionFactoryOptions.getValue(DATABASE),\r\n        applicationName = connectionFactoryOptions.getValue(APPLICATION_NAME),\r\n        connectionTimeout = connectionFactoryOptions.getValue(CONNECT_TIMEOUT)?.toMillis()?.toInt() ?: 5000,\r\n        queryTimeout = connectionFactoryOptions.getValue(QUERY_TIMEOUT)\r\n    )\r\n    return JasyncConnectionFactory(MySQLConnectionFactory(configuration))\r\n}\r\n```\r\nThe above method does not configure `com.github.jasync.sql.db.SSLConfiguration` and thus, the default `sslMode` (`Mode.Disable`) will be used. Even though, the `connectionFactoryOptions` could have the option `ssl` set to `true` or any `sslMode` parameter specified.\r\n\r\nI suspect that changing this factory to interpret the `ssl` and `sslMode` parameter of `connectionFactoryOptions` would quickly resolve the issue. It seems that `com.github.jasync.sql.db.mysql.MySQLConnection#onHandshake` already supports SSL.\r\n\r\n**I would be happy to contribute and resolve this issue**. But first I would like to make sure:\r\n - Is my understanding of current implementation described above correct?\r\n - The ssl option in `connectionFactoryOptions` would return true in case the secure protocol (`r2dbcs`) is used. However how should it handle the combination of secure protocol and `sslMode=disabled`, for example through the following connection string:  `r2dbcs:mysql://example.com?sslMode=disabled`?\r\n - Should my contribution also support other MySQL parameters. If so, would anyone be able to specify which? I know there are legacy parameters like  'useSSL', 'requireSSL', and 'verifyServerCertificate' which are still accepted but translated into a value for 'sslMode' by MySQL Server. The `com.github.jasync.sql.db.SSLConfiguration` also accepts `sslrootcert`, `sslcert`, `sslkey`.\r\n\r\nThanks!\r\n\r\n","author":{"url":"https://github.com/tkurylek","@type":"Person","name":"tkurylek"},"datePublished":"2022-12-05T07:49:08.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/337/jasync-sql/issues/337"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:15f6ea9c-c9f8-8622-a63b-9c944f065da2
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE0C8:3207D8:15A9FD9:1B8B478:697F20B1
html-safe-nonceb312bd8d65b214515366a9c9e9dce7af8ad117aa83ac344b7091baf9c5553bfe
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMEM4OjMyMDdEODoxNUE5RkQ5OjFCOEI0Nzg6Njk3RjIwQjEiLCJ2aXNpdG9yX2lkIjoiODQwMTkyOTgyMjA5MTAyNjYwOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac5cc454c523cbdd217e6f5ba6df15896b4806bc19bffe3b05d2469d1167b2ecf2
hovercard-subject-tagissue:1475931786
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/jasync-sql/jasync-sql/337/issue_layout
twitter:imagehttps://opengraph.githubassets.com/f4f47cb0c083e75e4edde0d480cefcd2f0904f0c31e737956325e3490242557a/jasync-sql/jasync-sql/issues/337
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f4f47cb0c083e75e4edde0d480cefcd2f0904f0c31e737956325e3490242557a/jasync-sql/jasync-sql/issues/337
og:image:altHello! I would like to ask if there's a plan to support sslMode configuration for MySQL database? According to FAQ, currently, only PostgreSQL is supported. I also noticed that com.github.jasync.sq...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernametkurylek
hostnamegithub.com
expected-hostnamegithub.com
None60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6
turbo-cache-controlno-preview
go-importgithub.com/jasync-sql/jasync-sql git https://github.com/jasync-sql/jasync-sql.git
octolytics-dimension-user_id42655245
octolytics-dimension-user_loginjasync-sql
octolytics-dimension-repository_id145898133
octolytics-dimension-repository_nwojasync-sql/jasync-sql
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id145898133
octolytics-dimension-repository_network_root_nwojasync-sql/jasync-sql
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7c85641c598ad130c74f7bcc27f58575cac69551
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/jasync-sql/jasync-sql/issues/337#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fjasync-sql%2Fjasync-sql%2Fissues%2F337
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fjasync-sql%2Fjasync-sql%2Fissues%2F337
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=jasync-sql%2Fjasync-sql
Reloadhttps://github.com/jasync-sql/jasync-sql/issues/337
Reloadhttps://github.com/jasync-sql/jasync-sql/issues/337
Reloadhttps://github.com/jasync-sql/jasync-sql/issues/337
jasync-sql https://github.com/jasync-sql
jasync-sqlhttps://github.com/jasync-sql/jasync-sql
Please reload this pagehttps://github.com/jasync-sql/jasync-sql/issues/337
Notifications https://github.com/login?return_to=%2Fjasync-sql%2Fjasync-sql
Fork 139 https://github.com/login?return_to=%2Fjasync-sql%2Fjasync-sql
Star 1.7k https://github.com/login?return_to=%2Fjasync-sql%2Fjasync-sql
Code https://github.com/jasync-sql/jasync-sql
Issues 15 https://github.com/jasync-sql/jasync-sql/issues
Pull requests 2 https://github.com/jasync-sql/jasync-sql/pulls
Discussions https://github.com/jasync-sql/jasync-sql/discussions
Actions https://github.com/jasync-sql/jasync-sql/actions
Wiki https://github.com/jasync-sql/jasync-sql/wiki
Security 0 https://github.com/jasync-sql/jasync-sql/security
Insights https://github.com/jasync-sql/jasync-sql/pulse
Code https://github.com/jasync-sql/jasync-sql
Issues https://github.com/jasync-sql/jasync-sql/issues
Pull requests https://github.com/jasync-sql/jasync-sql/pulls
Discussions https://github.com/jasync-sql/jasync-sql/discussions
Actions https://github.com/jasync-sql/jasync-sql/actions
Wiki https://github.com/jasync-sql/jasync-sql/wiki
Security https://github.com/jasync-sql/jasync-sql/security
Insights https://github.com/jasync-sql/jasync-sql/pulse
New issuehttps://github.com/login?return_to=https://github.com/jasync-sql/jasync-sql/issues/337
New issuehttps://github.com/login?return_to=https://github.com/jasync-sql/jasync-sql/issues/337
#349https://github.com/jasync-sql/jasync-sql/pull/349
SSL Mode support for MySQLhttps://github.com/jasync-sql/jasync-sql/issues/337#top
#349https://github.com/jasync-sql/jasync-sql/pull/349
https://github.com/tkurylek
https://github.com/tkurylek
tkurylekhttps://github.com/tkurylek
on Dec 5, 2022https://github.com/jasync-sql/jasync-sql/issues/337#issue-1475931786
https://r2dbc.io/spec/0.8.1.RELEASE/spec/html/#overview.connection.discoveryhttps://r2dbc.io/spec/0.8.1.RELEASE/spec/html/#overview.connection.discovery
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.