Skip to content

Conversation

kirill-levitskiy
Copy link
Contributor

Currently one have to enter an MSSQL URI as a string like:

mssql://username:password@localhost/database

Issues with it:

Not very user friendly
Password is visible in UI and not protected
However, advantages are that many possible settings could be build in as encoded in URI. We need t good solution to combine streights but not weaknesses.

Issue: https://github.com/elasticio/mssql-component/issues/6

function init(cfg) {
const conString = cfg.uri;
const conString = 'mssql://'
+ cfg.username
Copy link
Contributor

Choose a reason for hiding this comment

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

Username can't contain ':' right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The issue was fixed in the last commit by escaping special characters in username

const conString = 'mssql://'
+ cfg.username
+ ':'
+ cfg.password
Copy link
Contributor

Choose a reason for hiding this comment

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

same here, no ':' and '@' allowed right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The issue was fixed in the last commit by escaping special characters in password

"request-promise": "^4.1.1"
"elasticio-node": "0.0.9",
"elasticio-sailor-nodejs": "^2.2.1",
"mssql": "^4.1.0",
Copy link
Contributor

Choose a reason for hiding this comment

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

Good idea 👍

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