Skip to content
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

feat: Add mssql_tools_versions, mssql_tls_self_sign to allow installing different versions of mssql-tools #307

Merged
merged 3 commits into from
Nov 20, 2024

Conversation

spetrosi
Copy link
Collaborator

@spetrosi spetrosi commented Nov 6, 2024

Enhancement: Add mssql_tools_versions variable to allow installing different versions of mssql-tools package.
Add mssql_tls_self_sign variable for specifying whether self-signed certificates are used, applicable when users set mssql_tls_enable: true.

Reason: Microsoft added a new version of the mssql-tools package - mssql-tools18. This package adds some new functionality, which is not backward-compatible with the previous versions, hence Microsoft added a new package mssql-tools18 instead of just bumping the version of mssql-tools.
With mssql-tools18, when self-signed TLS certificates are used, it is required to set -C flag with sqlcmd to trust certificates.

Result: You can set mssql_tools_versions to install version 17, 18, or both version in parallel. By default, the role now installs the newer mssql-tools18.
With mssql-tools18, when you use self-signed TLS certificates, you must set mssql_tls_self_sign: true to make sqlcmd trust your certificates.

Issue Tracker Tickets (Jira or BZ if any): https://issues.redhat.com/browse/SYSROLES-166

@spetrosi spetrosi requested a review from richm as a code owner November 6, 2024 17:44
@spetrosi
Copy link
Collaborator Author

spetrosi commented Nov 6, 2024

[citest]

@spetrosi
Copy link
Collaborator Author

spetrosi commented Nov 6, 2024

[citest]

@spetrosi
Copy link
Collaborator Author

[citest]

@spetrosi
Copy link
Collaborator Author

[citest]

@spetrosi
Copy link
Collaborator Author

[citest]

Microsoft added a new version of the `mssql-tools` package -
`mssql-tools18`. This package adds some new functionality, which is not
backward-compatible with the previous versions, hence Microsoft added a
new package `mssql-tools18` instead of just bumping the version of
`mssql-tools`.
* Move configuring TLS encryption earlier in the role because it's
required for sqlcmd on mssql-tools18
* If TLS encryption is not configured, append -C to sqlcmd
* TODO: if encryption is configured with self-signed keys - append -C
@spetrosi
Copy link
Collaborator Author

[citest]

3 similar comments
@spetrosi
Copy link
Collaborator Author

[citest]

@spetrosi
Copy link
Collaborator Author

[citest]

@spetrosi
Copy link
Collaborator Author

[citest]

@spetrosi
Copy link
Collaborator Author

[citest]

Append either -C or -No to sqlcmd
Add mssql_tls_self_sign to all tls tests
@spetrosi
Copy link
Collaborator Author

[citest]

1 similar comment
@spetrosi
Copy link
Collaborator Author

[citest]

@spetrosi spetrosi merged commit ac6a17d into linux-system-roles:main Nov 20, 2024
10 of 15 checks passed
@spetrosi spetrosi changed the title feat: Add mssql_tools_versions to allow installing different versions feat: Add mssql_tools_versions, mssql_tls_self_sign to allow installing different versions of mssql-tools Nov 20, 2024
@spetrosi spetrosi mentioned this pull request Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants