sshpiper icon indicating copy to clipboard operation
sshpiper copied to clipboard

Is the `database` routing plugin supported in v1?

Open carlo-quinonez opened this issue 1 year ago • 1 comments

We have an project using ssh-piper v0 that uses the databases routing plugin.

Is the database plugin still supported?

carlo-quinonez avatar Oct 19 '24 00:10 carlo-quinonez

is it possible to migrate to kubernetes plugin?

kubectl and kubeapi works better than database

tg123 avatar Oct 19 '24 01:10 tg123

The kubernetes plugin won't work for our use-case. We'll try going with the v0 version and the database plugin, if that doesn't work, I'll reach back out.

carlo-quinonez avatar Oct 22 '24 16:10 carlo-quinonez

hi @carlo-quinonez port https://github.com/tg123/sshpiper-plugins/tree/main/database to v1

the code is not fully tested, will add testcase later, please let me if this works

tg123 avatar Oct 29 '24 09:10 tg123

testcase passed, database plugin is now good with v1

tg123 avatar Nov 10 '24 11:11 tg123

@tg123 I'll test and make a PR for the docs. Is the tunnel management API/CLI same as v0?

carlo-quinonez avatar Nov 12 '24 17:11 carlo-quinonez

a little change to the schema, removed some unsupported field

you can find code to create routing https://github.com/tg123/sshpiper-plugins/blob/4f69c56fcdf55d630d0ea28bc859093641671e49/database/e2e_test.go#L248C1-L269C4

detail diff here https://github.com/tg123/sshpiper-plugins/commit/8c630546cff60968f106401b5166bfb5f27fabb4#diff-bb1fbea522d7baea1edd74762a89b1445d3f71e032b199d1c5a833413224baa7

tg123 avatar Nov 12 '24 18:11 tg123