Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Use a custom sshj config #878

Merged
merged 4 commits into from
Jun 23, 2020
Merged

Use a custom sshj config #878

merged 4 commits into from
Jun 23, 2020

Conversation

fmeum
Copy link
Member

@fmeum fmeum commented Jun 23, 2020

📢 Type of change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring
  • Dependency updates

📜 Description

Use a custom, relatively modern sshj config that:

  • Gets random numbers directly from SecureRandom
  • Uses Timber calls for logging
  • Removes all algorithms that are not in the Mozilla Intermediate SSH config

💡 Motivation and Context

I decided to get this merged now rather than wait for #807 because I noticed that the default sshj config relies on an RNG that has some known weaknesses that allow its output to be distinguished from a fully random distribution (which doesn't sound too relevant in the context of SSH authentication,but should certainly be prevented by switching to a different RNG).

💚 How did you test it?

I verified that ssh-rsa and ssh-ed25519 keys still work.

📝 Checklist

  • I formatted the code with the IDE's reformat action (Ctrl + Shift + L/Cmd + Shift + L)
  • I reviewed submitted code
  • I added a CHANGELOG entry if applicable

🔮 Next steps

Figure out how/whether to update the changelog now or after #807 lands, which adds support for the very common rsa-sha2-* types.

📸 Screenshots / GIFs

* Get random numbers directly from SecureRandom
* Use Timber calls for logging
* Remove all algorithms that are not in the Mozilla Intermediate SSH config
msfjarvis
msfjarvis previously approved these changes Jun 23, 2020
Copy link
Member

@msfjarvis msfjarvis left a comment

Choose a reason for hiding this comment

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

LGTM. Changelog can be deferred till we're able to get the other PR in.

msfjarvis
msfjarvis previously approved these changes Jun 23, 2020
@fmeum fmeum changed the title Use a custom sshj config WIP: Use a custom sshj config Jun 23, 2020
@fmeum
Copy link
Member Author

fmeum commented Jun 23, 2020

The logs were full of "{}", now I know why. slf4j is painful.

@fmeum fmeum changed the title WIP: Use a custom sshj config Use a custom sshj config Jun 23, 2020
@fmeum fmeum merged commit e1f81e8 into master Jun 23, 2020
@fmeum fmeum deleted the enhancement/sshj_config branch June 23, 2020 13:39
msfjarvis added a commit that referenced this pull request Jun 27, 2020
* develop: (24 commits)
  UI fixups (#892)
  Update Public Suffix List data (#888)
  Use remembered credential even if it is empty (#880)
  Reset SSH passphrase after SSH key import (#885)
  Prevent cached passwords from being wiped (#884)
  build: uprev all dependencies (#882)
  github: update actions for updated branching logic
  Use a custom sshj config (#878)
  Remove API 30 from pull request test matrix (#879)
  Add Google Play/F-Droid badges to the README (#877)
  Retire Android Arsenal badge (#876)
  Add paragraphs to F-Droid summary (#874)
  Replace YAML with HTML in F-Droid fastlane summary (#873)
  Add relnotes for #871 (#872)
  Add org.gnu.icecat as a trusted multi-origin browser (#871)
  README: re-add F-Droid (#870)
  build: prepare next development version
  build: bump version to 1.9.0
  Prepare release 1.9.0
  PasswordCreationActivity: properly guard rename code
  ...

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants