-
Notifications
You must be signed in to change notification settings - Fork 8
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 config ssh jump server #1522
add config ssh jump server #1522
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume we'll have a follow up where we add the ability for the user to pass in these config options
c.Assert(err, qt.IsNil) | ||
hostKey := pem.EncodeToMemory( | ||
&pem.Block{ | ||
Type: "RSA PRIVATE KEY", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's no constant for this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i've looked around and it's always a string, no types.
even in the godoc of this field:
Type string // The type, taken from the preamble (i.e. "RSA PRIVATE KEY").
cmd/jimmsrv/main.go
Outdated
@@ -209,5 +209,18 @@ func start(ctx context.Context, s *service.Service) error { | |||
}) | |||
s.Go(httpsrv.ListenAndServe) | |||
zapctx.Info(ctx, "Successfully started JIMM server") | |||
|
|||
// // this is to show the integration, we will uncommented it once the ssh implementation is ready. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i would not add this in this PR as it might require a bit of discussion: do we start the jump server in main.go or in cmd/jimmsrv/service/service.go?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, it was just to show how that would have worked, we can do it in another time.
yep, i will open a PR for the k8s charm as well |
7e98e4f
to
48be1cb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
generally lgtm, but i would suggest keeping type definitions in the same file as method implementations.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM if you make the resolver a field on the Config type
type Config struct { | ||
Port string | ||
HostKey []byte | ||
MaxConcurrentConnections string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why isn't the resolver field on the Config struct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the resolver is not a config but a service needed to operate the ssh server. I would leave it as a separate argument.
Don't you agree?
Description
In this PR we add configuration for SSH jump server.
Such as:
Engineering checklist
Test instructions