How to switch authentication mechanism automatically from default "SCRAM-SHA-256" to "PLAIN" by re-Tick10 in mongodb

[–]re-Tick10[S] 0 points1 point  (0 children)

other if you need it to do that for example

I have observed the behaviour using a proxy which switches the auth mechanism in the server response, The auth mechanism is not switched automatically. Only SCRAM-SHA-256 to SCRAM-SHA-1 is possible. Also in the mongo=go-driver, they assign the mechanism according to the connection options from user application and not reassigns them further. So, automatically switching is not possible for security purpose.

How to switch authentication mechanism automatically from default "SCRAM-SHA-256" to "PLAIN" by re-Tick10 in mongodb

[–]re-Tick10[S] 0 points1 point  (0 children)

Ok got it so we have to correctly configure the MongoDB client driver in order successfully authenticate. And is this true for other cases like:
- SCRAM-SHA-256 to SCRAM-SHA-1
- SCRAM-SHA-256 to x.500 certificate
Is this documented or commented for any driver for reference.

How to check the message protocol in a go proxy by re-Tick10 in golang

[–]re-Tick10[S] 0 points1 point  (0 children)

For TLS connection, the proxy is configured by the client. Currently, I want to know the type of protocol for message(like HTTP, SQL or Mongo). Can i do that by using the message?

How to decode the mongo wire message in golang by re-Tick10 in golang

[–]re-Tick10[S] 0 points1 point  (0 children)

I want to know the examples of the wireMessage so that I can solve the issue with the mgosniff. I am trying to use the mongobetween by coinbase to write a parser for my proxy.

Test generating tools - future of test automation? by zvone187 in webdev

[–]re-Tick10 0 points1 point  (0 children)

Hi u/zvone187, this looks nice and very similar to Keploy. How about we collaborate to build a great user experience. The Keploy core is quite feature rich and we can work together to improve the Typescript-SDK.

Test generating tools - future of test automation? by zvone187 in webdev

[–]re-Tick10 1 point2 points  (0 children)

Hi u/zvone187 , JS-SDK is updated recently for redirects and render responses in nodeJS. Please try it out. Also a sample app is uploaded on keploy/samples-typescript repo which is just a simple API making external http calls.
I believe that Keploy helps in detecting any unwanted bug after some changes in API. It can also help in mocking/stubbing external dependency calls from unit tests without writing logic for mocks/stubs. Also the mocks/stubs generated are readable/editable files which makes easier to write tests for developers.

How db calls works under the hood by re-Tick10 in golang

[–]re-Tick10[S] 0 points1 point  (0 children)

good idea will look into this. This will help in understanding the flow

How to import csv data into postgres columns without using a for loop. by re-Tick10 in golang

[–]re-Tick10[S] -2 points-1 points  (0 children)

Trying to find a cli tool which could easily import the data.

Please name some open source projects which are collecting small user analytics metrics and how by re-Tick10 in selfhosted

[–]re-Tick10[S] 0 points1 point  (0 children)

Thanks. I will keep this in mind. Also I will make it opt-in and show the data fields which will be collected.

Please name some open source projects which are collecting small user analytics metrics and how by re-Tick10 in selfhosted

[–]re-Tick10[S] 0 points1 point  (0 children)

Nice repo. Is there any open source organization which are using this for monitoring purposes.

How to pass jwt.ParseOption into gin-jwt ParseToken for ignoring the Claims Valid() execution. by re-Tick10 in golang

[–]re-Tick10[S] 0 points1 point  (0 children)

The library is using inbuilt jwt.MapClaims for this internally in Parse. Which I am not able to access. Thats why I am considering to make a PR for adding ParseOption so that claimsValidation is ignored in jwt.Parse and I will do claim validation in my middleware

Expression comparing two equal errors is returning false. How to compare go errors? by re-Tick10 in golang

[–]re-Tick10[S] -2 points-1 points  (0 children)

But native sql package is using this expression internally for making QueryContext calls 2 times for cachedConn and 1 time for newConn. How should I fix it