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

Add support for exporting #1

Merged
merged 2 commits into from Oct 24, 2019
Merged

Add support for exporting #1

merged 2 commits into from Oct 24, 2019

Conversation

izgeri
Copy link

@izgeri izgeri commented Oct 24, 2019

From denisenkom#533

We are adding a plugin to the secretless-broker project (https://github.com/cyberark/secretless-broker) and will be using this project to communicate with SQL Server. Secretless is written in go too and needs a bit more access to some of the internals of the project. In this PR we expose the constants & functions we need to use. Other than that, the logic stays the same.

The Secretless Broker lets your applications connect securely to services - without ever having to fetch or manage passwords or keys. It does so by acting as a connector between the application and the target, retrieving the credentials for authentication from a credentials provider. This way, it opens an authenticated stream between the application and the target, so the application doesn't need to manage credentials in its code. To do so with mssql, we need to get the underlying channel and and the credentials to the message. We needed access to some constants and structs to do so.

Note: It would be great if these minor changes will be merged to the original go-mssqldb project so we can consume it as a 3rd party to our project, rather than relying on our own fork - but for now we are putting this in our own fork.

…ming the project

- Consts
  - Prelogin consts (PreloginVERSION, PreloginENCRYPTION, etc.)
  - Encrypt consts (EncryptOff, EncryptOn, etc.)
- Types
  - TdsBuffer
  - KeySlice
- Functions
  - NewTdsBuffer
  - ReadNextPacket
@izgeri izgeri self-assigned this Oct 24, 2019
@izgeri izgeri merged commit 8597e62 into cyberark:master Oct 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants