Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.

Always add parseTime=true for mysql query string #352

Merged
merged 2 commits into from
Jun 20, 2023

Conversation

faisal-memon
Copy link
Contributor

If parseTime=true is not present spire server will error. This pr ensures that it is always present when mysql db is used, rather than leaving it to use to add it to options:.

@marcofranssen
Copy link
Contributor

Could you show the printout of the template in the PR description. Looks good, but hard to judge without seeing the result.

@kfox1111
Copy link
Contributor

If it really is always needed, I'm good with it. Are there times where it may not? If you say, point it against vitess does it still need the flag? It would be good to get a confirmation with the spire devs on this flag if not already done?

Signed-off-by: Faisal Memon <fymemon@yahoo.com>
@faisal-memon
Copy link
Contributor Author

Could you show the printout of the template in the PR description. Looks good, but hard to judge without seeing the result.

           "sql": {
              "plugin_data": {
                "connection_string": "root:${DBPW}@tcp(mysql.default.svc:3306)/spire?parseTime=true",
                "database_type": "mysql"
              }
            }

Signed-off-by: Faisal Memon <fymemon@yahoo.com>
Copy link
Contributor

@kfox1111 kfox1111 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Copy link
Contributor

@marcofranssen marcofranssen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@marcofranssen marcofranssen enabled auto-merge (squash) June 20, 2023 19:14
@marcofranssen marcofranssen merged commit 1333b6a into spiffe:main Jun 20, 2023
marcofranssen added a commit that referenced this pull request Jun 22, 2023
* 0533d92 fixes missing template (#362)
* 1333b6a Always add parseTime=true for mysql query string (#352)
* ac3be71 Bump test chart dependencies (#358)

Signed-off-by: Marco Franssen <marco.franssen@gmail.com>
marcofranssen added a commit that referenced this pull request Jun 27, 2023
* f4c421a Ensure the released OCI artifact is also captured in rekor
* 386e736 Bump sigstore/cosign-installer from 3.0.5 to 3.1.0 (#368)
* 99e01c6 Bump spire-controller-manager from 0.2.2 to 0.2.3 (#367)
* 4dccb0d Bump spire Helm Chart version from 0.9.0 to 0.9.1 (#365)
* 8409674 Fix the init container flags of the statefulset (#366)
* 3b66660 add missing federatesWith option (#361)
* 0533d92 fixes missing template (#362)
* 1333b6a Always add parseTime=true for mysql query string (#352)
* ac3be71 Bump test chart dependencies (#358)

Signed-off-by: Marco Franssen <marco.franssen@gmail.com>
marcofranssen added a commit that referenced this pull request Jun 28, 2023
* f4c421a Ensure the released OCI artifact is also captured in rekor
* 386e736 Bump sigstore/cosign-installer from 3.0.5 to 3.1.0 (#368)
* 99e01c6 Bump spire-controller-manager from 0.2.2 to 0.2.3 (#367)
* 4dccb0d Bump spire Helm Chart version from 0.9.0 to 0.9.1 (#365)
* 8409674 Fix the init container flags of the statefulset (#366)
* 3b66660 add missing federatesWith option (#361)
* 0533d92 fixes missing template (#362)
* 1333b6a Always add parseTime=true for mysql query string (#352)
* ac3be71 Bump test chart dependencies (#358)

Signed-off-by: Marco Franssen <marco.franssen@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants