~jan0sch/smederee

Showing 11 changes starting from 72d8e10511a63dee4337be05bdff26523ee8e5ff.
2022-10-13 (Thu), 2:30 PM - Jens Grassel - 72d8e10511a63dee4337be05bdff26523ee8e5ff

SSH: Start ssh key management for users.

- BREAKING: add `key_type` column to ssh table
- prepare some data types
- tests and test keys
Summary of changes
9 files added
  • modules/hub/src/main/scala/de/smederee/ssh/PublicSshKey.scala
  • modules/hub/src/test/resources/de/smederee/ssh/ssh-key-with-comment.pub
  • modules/hub/src/test/resources/de/smederee/ssh/ssh-key-without-comment.pub
  • modules/hub/src/test/resources/de/smederee/ssh/test-ssh-dsa.pub
  • modules/hub/src/test/resources/de/smederee/ssh/test-ssh-ecdsa.pub
  • modules/hub/src/test/resources/de/smederee/ssh/test-ssh-ed25519.pub
  • modules/hub/src/test/resources/de/smederee/ssh/test-ssh-rsa.pub
  • modules/hub/src/test/scala/de/smederee/ssh/PublicSshKeyTest.scala
  • modules/hub/src/test/scala/de/smederee/ssh/SshKeyTypeTest.scala
1 files modified with 2 lines added and 0 lines removed
  • modules/hub/src/main/resources/db/migration/V1__base_tables.sql with 2 added and 0 removed lines
2022-10-12 (Wed), 11:02 AM - Jens Grassel - 4b2124d076730f1756db6df3c18c752d83f7ae9c

Update scalafmt to 3.5.9

- change maximum line length to 120 characters
Summary of changes
43 files modified with 280 lines added and 323 lines removed
  • .scalafmt.conf with 2 added and 2 removed lines
  • modules/darcs/src/main/scala/de/smederee/darcs/DarcsCommands.scala with 4 added and 4 removed lines
  • modules/darcs/src/test/scala/de/smederee/darcs/DarcsCommandsTest.scala with 1 added and 3 removed lines
  • modules/darcs/src/test/scala/de/smederee/darcs/TestHelpers.scala with 1 added and 2 removed lines
  • modules/email/src/main/scala/de/smederee/email/EmailMiddleware.scala with 3 added and 4 removed lines
  • modules/email/src/main/scala/de/smederee/email/SimpleJavaMailMiddleware.scala with 3 added and 4 removed lines
  • modules/hub/src/it/scala/de/smederee/hub/AuthenticationMiddlewareTest.scala with 6 added and 6 removed lines
  • modules/hub/src/it/scala/de/smederee/hub/BaseSpec.scala with 6 added and 7 removed lines
  • modules/hub/src/it/scala/de/smederee/hub/DoobieAccountManagementRepositoryTest.scala with 11 added and 11 removed lines
  • modules/hub/src/it/scala/de/smederee/hub/DoobieAuthenticationRepositoryTest.scala with 29 added and 29 removed lines
  • modules/hub/src/it/scala/de/smederee/hub/DoobieSignupRepositoryTest.scala with 8 added and 8 removed lines
  • modules/hub/src/it/scala/de/smederee/hub/DoobieVcsMetadataRepositoryTest.scala with 15 added and 15 removed lines
  • modules/hub/src/main/scala/de/smederee/html/LinkTools.scala with 6 added and 6 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/Account.scala with 2 added and 4 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/AccountManagementRepository.scala with 3 added and 4 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/AccountManagementRoutes.scala with 4 added and 4 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/AuthenticationMiddleware.scala with 10 added and 11 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/AuthenticationRepository.scala with 7 added and 8 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/AuthenticationRoutes.scala with 10 added and 12 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/DatabaseMigrator.scala with 2 added and 2 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/DoobieAccountManagementRepository.scala with 1 added and 2 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/DoobieAuthenticationRepository.scala with 2 added and 3 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/DoobieVcsMetadataRepository.scala with 1 added and 1 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/EditVcsRepositoryForm.scala with 11 added and 16 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/HubServer.scala with 1 added and 2 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/LandingPageRoutes.scala with 7 added and 8 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/NewVcsRepositoryForm.scala with 7 added and 11 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/Session.scala with 4 added and 4 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/SessionHelpers.scala with 11 added and 12 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/SignupForm.scala with 1 added and 2 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/SignupRepository.scala with 4 added and 4 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/SignupRoutes.scala with 5 added and 6 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/VcsMetadataRepository.scala with 8 added and 8 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/VcsRepository.scala with 9 added and 10 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/VcsRepositoryRoutes.scala with 20 added and 24 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/config/SmedereeHubConfig.scala with 19 added and 25 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/forms/FormValidator.scala with 6 added and 6 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/forms/types.scala with 7 added and 9 removed lines
  • modules/hub/src/main/scala/de/smederee/ssh/DarcsSshCommand.scala with 2 added and 2 removed lines
  • modules/hub/src/main/scala/de/smederee/ssh/NoLogin.scala with 2 added and 2 removed lines
  • modules/hub/src/main/scala/de/smederee/ssh/SshServer.scala with 4 added and 4 removed lines
  • modules/i18n/src/main/scala/de/smederee/i18n/Messages.scala with 4 added and 5 removed lines
  • modules/security/src/main/scala/de/smederee/security/SignAndValidate.scala with 11 added and 11 removed lines
2022-10-12 (Wed), 11:02 AM - Jens Grassel - 93c9040c80cc16f4a5b35a921f988ffffc2295db

Update scalafix to 0.10.4

Summary of changes
1 files modified with 1 lines added and 1 lines removed
  • project/plugins.sbt with 1 added and 1 removed lines
2022-10-12 (Wed), 10:52 AM - Jens Grassel - 286722a69f64a614c6d4cdd56433b54277aa2bdc

VCS: Allow editing and deleting of repositories.

- add editing for repositories (no renaming yet)
- add deleting for repositories
Summary of changes
3 files added
  • modules/hub/src/main/scala/de/smederee/hub/EditVcsRepositoryForm.scala
  • modules/hub/src/main/twirl/de/smederee/hub/views/deleteRepository.scala.html
  • modules/hub/src/main/twirl/de/smederee/hub/views/editRepository.scala.html
6 files modified with 364 lines added and 8 lines removed
  • modules/hub/src/it/scala/de/smederee/hub/DoobieVcsMetadataRepositoryTest.scala with 42 added and 6 removed lines
  • modules/hub/src/main/resources/messages_en.properties with 16 added and 0 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/DoobieVcsMetadataRepository.scala with 11 added and 0 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/VcsMetadataRepository.scala with 18 added and 0 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/VcsRepositoryRoutes.scala with 271 added and 2 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/showRepositoryOverview.scala.html with 6 added and 0 removed lines
2022-10-11 (Tue), 11:30 AM - Jens Grassel - 622a533f666731bf769afce362d2a26cc4b8d589

Account Management: Also delete user directory on account removal.

- check if dir is sub dir of configured repos dir before removing
- remove directory before account removal from database
Summary of changes
1 files modified with 65 lines added and 2 lines removed
  • modules/hub/src/main/scala/de/smederee/hub/AccountManagementRoutes.scala with 65 added and 2 removed lines
2022-10-11 (Tue), 10:39 AM - Jens Grassel - da3551a633de7666cd3f74a1dca87c2873e6fa32

Account Validation: Validate the account via email

- BREAKING: rename `verify` to `validate` etc.
- refactor code accordingly
- add local `application.conf` for hub to ignore file
- add ValidationToken
- add routes for sending validation email and actual validation
- add tests for DoobieAccountManagementRepository
Summary of changes
1 files added
  • modules/hub/src/main/twirl/de/smederee/hub/views/emails/validate.scala.txt
20 files modified with 365 lines added and 70 lines removed
  • modules/email/src/main/scala/de/smederee/email/SimpleJavaMailMiddleware.scala with 1 added and 0 removed lines
  • modules/hub/src/it/scala/de/smederee/hub/BaseSpec.scala with 66 added and 10 removed lines
  • modules/hub/src/it/scala/de/smederee/hub/DoobieAccountManagementRepositoryTest.scala with 59 added and 0 removed lines
  • modules/hub/src/it/scala/de/smederee/hub/DoobieVcsMetadataRepositoryTest.scala with 3 added and 3 removed lines
  • modules/hub/src/it/scala/de/smederee/hub/Generators.scala with 5 added and 5 removed lines
  • modules/hub/src/main/resources/assets/css/main.css with 9 added and 0 removed lines
  • modules/hub/src/main/resources/db/migration/V1__base_tables.sql with 15 added and 15 removed lines
  • modules/hub/src/main/resources/messages_en.properties with 5 added and 2 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/Account.scala with 50 added and 13 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/AccountManagementRepository.scala with 35 added and 0 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/AccountManagementRoutes.scala with 52 added and 4 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/DoobieAccountManagementRepository.scala with 20 added and 2 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/DoobieAuthenticationRepository.scala with 1 added and 1 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/DoobieSignupRepository.scala with 1 added and 1 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/HubServer.scala with 12 added and 2 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/SignupRoutes.scala with 1 added and 1 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/VcsRepositoryRoutes.scala with 4 added and 4 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/account/settings.scala.html with 20 added and 1 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/errors/unvalidatedAccount.scala.html with 1 added and 1 removed lines
  • modules/hub/src/test/scala/de/smederee/hub/Generators.scala with 5 added and 5 removed lines
2022-10-11 (Tue), 7:45 AM - Jens Grassel - 08cfcd89ef23ec6004a9db9667ccea484998c108

Add local hub application.conf to ignore file

Summary of changes
1 files modified with 2 lines added and 0 lines removed
  • .ignore with 2 added and 0 removed lines
2022-10-07 (Fri), 6:55 AM - Jens Grassel - 19a937351174b10e6d59e5bc573a9d8dc8d84611

Account Management: First throw at verification and deletion

- BREAKING: add verify_token to database table
- add basic settings page with delete form
- stub routing
- some CSS
- first sketch of AccountManagementRepository
- delete user account from database if requested
- add integration test for AccountManagementRepository
Summary of changes
5 files added
  • modules/hub/src/it/scala/de/smederee/hub/DoobieAccountManagementRepositoryTest.scala
  • modules/hub/src/main/scala/de/smederee/hub/AccountManagementRepository.scala
  • modules/hub/src/main/scala/de/smederee/hub/AccountManagementRoutes.scala
  • modules/hub/src/main/scala/de/smederee/hub/DoobieAccountManagementRepository.scala
  • modules/hub/src/main/twirl/de/smederee/hub/views/account/settings.scala.html
8 files modified with 31 lines added and 9 lines removed
  • modules/hub/src/main/resources/assets/css/main.css with 5 added and 0 removed lines
  • modules/hub/src/main/resources/db/migration/V1__base_tables.sql with 2 added and 0 removed lines
  • modules/hub/src/main/resources/messages_en.properties with 8 added and 0 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/AuthenticationRepository.scala with 2 added and 2 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/HubServer.scala with 9 added and 3 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/SignupRepository.scala with 2 added and 2 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/VcsMetadataRepository.scala with 2 added and 2 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/navbar.scala.html with 1 added and 0 removed lines
2022-10-06 (Thu), 6:41 PM - Jens Grassel - ea60a5c6f4a6a5a3b2102c0cdaa8987ac9257b47

Update Scala to 3.2.0

Summary of changes
1 files modified with 1 lines added and 1 lines removed
  • build.sbt with 1 added and 1 removed lines
2022-10-06 (Thu), 6:37 PM - Jens Grassel - 0e7f047a7e5a4b5fb25ad5bed0c6015870e4a2a8

Update sbt to 1.7.2

Summary of changes
1 files modified with 1 lines added and 1 lines removed
  • project/build.properties with 1 added and 1 removed lines
2022-10-01 (Sat), 9:27 AM - Jens Grassel - 5239d46b8e0412118239fc3d3f960891c05fe868

Verification: Prohibit repo creation for unverified account

If an account is not verified (verifiedEmail) then an error message is shown
instead of the create repository form. Also the parse route for the form
checks the flag an quits with an error (raiseError).
Summary of changes
1 files added
  • modules/hub/src/main/twirl/de/smederee/hub/views/errors/unverifiedAccount.scala.html
2 files modified with 19 lines added and 5 lines removed
  • modules/hub/src/main/resources/messages_en.properties with 3 added and 1 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/VcsRepositoryRoutes.scala with 16 added and 4 removed lines