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

jetty-demo/etc/keystore should not be distributed #1673

Closed
jagland opened this issue Jul 17, 2017 · 10 comments · Fixed by #5862
Closed

jetty-demo/etc/keystore should not be distributed #1673

jagland opened this issue Jul 17, 2017 · 10 comments · Fixed by #5862

Comments

@jagland
Copy link

jagland commented Jul 17, 2017

Jetty should not be distributing a static private and public key within their Jetty-distribution, which is currently distributed in the file jetty-demo/etc/keystore, you should move to a model of scripting the creation of a unique private and public key within a keystore, and instructing users of the jetty-demo folder to run that script before hand.

If you leave these keys hanging around, somebody can, will and has managed to use these as part of their live Jetty configuration.

I've noted this related ticket #1615, but this relates only to they password in the default configuration. Ideally, you should also be scripting the insertion of the password into a relevant part of configuration [also in jetty-demo]

Observed in jetty-distribution-9.4.6.v20170531

@joakime
Copy link
Contributor

joakime commented Jul 17, 2017

This would apply to the jetty-home-<version>.<archive> distribution.

@gregw
Copy link
Contributor

gregw commented Jul 18, 2017

Agreed. However, I'll fix #1615 first and create a testssl module, which we can then experiment with using a scripting approach rather than a distributed keystore.

The major hurdle here is actually documentation/education. @WalkerWatch what do you think about these changes? Should we do them in 10.0.x? I'm thinking we could do them in 9.4.x but it has been like this for literally decades, so no huge hurry to fix.

@WalkerWatch
Copy link
Contributor

@gregw I think this is something we should tackle as part of Jetty 10.x. As you've said, it has been like this for many, many years. I think it might be worthwhile writing up a blog or page that goes into the contents of the distribution more specifically.

I'd be remiss if I didn't say though that there is only so much we can do to protect users from themselves. I do think this would be a smart move, but it is worth noting that Jetty does spit out several warnings about using demo-base in production.

@stale
Copy link

stale bot commented Nov 20, 2019

This issue has been automatically marked as stale because it has been a full year without activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Stale For auto-closed stale issues and pull requests label Nov 20, 2019
@lachlan-roberts
Copy link
Contributor

@gregw should I experiment with a scripting approach to generating the keystore, or are we happy now we have the test-keystore module?

@stale stale bot removed the Stale For auto-closed stale issues and pull requests label Nov 21, 2019
@gregw
Copy link
Contributor

gregw commented Nov 21, 2019

I think before the certs next expire, we should look at a scripting approach. So let's do it... bu low priority.

@lachlan-roberts
Copy link
Contributor

The cert already expired Tuesday, 18 August 2015 at 21:38:03 so I will look into this.

@lachlan-roberts lachlan-roberts self-assigned this Nov 21, 2019
@stale
Copy link

stale bot commented Nov 24, 2020

This issue has been automatically marked as stale because it has been a full year without activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Stale For auto-closed stale issues and pull requests label Nov 24, 2020
@sbordet
Copy link
Contributor

sbordet commented Nov 24, 2020

@lachlan-roberts @gregw nudge.

@stale stale bot removed the Stale For auto-closed stale issues and pull requests label Nov 24, 2020
@gregw
Copy link
Contributor

gregw commented Nov 25, 2020

We've moved the keystores into demo only modules... but scripting would still be better.
We probably need a feature for a module to be able to run a script... but then it needs to be portable...

lachlan-roberts added a commit that referenced this issue Jan 7, 2021
lachlan-roberts added a commit that referenced this issue Jan 7, 2021
lachlan-roberts added a commit that referenced this issue Jan 11, 2021
lachlan-roberts added a commit that referenced this issue Jan 12, 2021
…eystore

Issue #1673 - generate test keystore instead of distributing one
sbordet added a commit that referenced this issue Jan 12, 2021
Updated documentation: now the test-keystore is generated on-the-fly.

Signed-off-by: Simone Bordet <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants