~jan0sch/smederee

Showing 11 changes starting from 0e811bc8115e67ba2a3aae9791a5c2a730060afa.
2022-11-01 (Tue), 6:31 PM - Jens Grassel - 0e811bc8115e67ba2a3aae9791a5c2a730060afa

SSH: Only show ssh clone option for repository owners.

The clone via ssh option is only shown for the owner of the repository.
All others get a note that currently only owners can work via ssh with it.
Summary of changes
2 files modified with 5 lines added and 0 lines removed
  • modules/hub/src/main/resources/messages_en.properties with 1 added and 0 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/showRepositoryOverview.scala.html with 4 added and 0 removed lines
2022-11-01 (Tue), 6:23 PM - Jens Grassel - 77f7d2124d36e418892300b4589ef9ad32a9105f

Packaging: Prevent customised local config to be packaged.

Summary of changes
1 files modified with 8 lines added and 2 lines removed
  • build.sbt with 8 added and 2 removed lines
2022-11-01 (Tue), 3:09 PM - Jens Grassel - 9a18c857a2db4d5245d71043226b93cef8f2c5aa

Fix key in logback configuration

Summary of changes
1 files modified with 1 lines added and 1 lines removed
  • modules/hub/src/universal/conf/logback.xml with 1 added and 1 removed lines
2022-11-01 (Tue), 2:29 PM - Jens Grassel - 578e7a78be8a2d2b1abc067b768ce2a2194d67b1

Set next snapshot version.

Summary of changes
1 files modified with 6 lines added and 6 lines removed
  • build.sbt with 6 added and 6 removed lines
2022-11-01 (Tue), 2:28 PM - Jens Grassel - c81a7f0c2ef351be860a61e75a980d72ee70b5bd

TAG v0.1.0

- initial release
Summary of changes
2022-11-01 (Tue), 2:21 PM - Jens Grassel - 3c7207ed4f28119efbc7421951ee91a48272316a

RELEASE: Prepare the release of version 0.1.0

- set version in build file
- create entry in CHANGELOG
Summary of changes
2 files modified with 9 lines added and 7 lines removed
  • CHANGELOG.md with 2 added and 0 removed lines
  • build.sbt with 7 added and 7 removed lines
2022-11-01 (Tue), 1:37 PM - Jens Grassel - 73efde13178bfa59670e79d629834e525109c9b1

Legal: Add and adjust legally required texts

- add privacy policy
- add terms of use
- adjust contact and alpha notice page
- refer to Codeberg as source for texts
Summary of changes
3 files modified with 87 lines added and 9 lines removed
  • modules/hub/src/main/resources/messages_en.properties with 13 added and 3 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/privacyPolicy.scala.html with 11 added and 0 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/termsOfUse.scala.html with 63 added and 6 removed lines
2022-10-31 (Mon), 4:22 PM - Jens Grassel - 41c3bb902743192030102be19ba7e6e3223b143b

SSH: Authentication

This adds the foundation for authentication via ssh and public keys.

Currently the username must match our generic one (darcs) and then we try
to find a key with the same fingerprint like the provided one in our 
database. The found key is converted into the `AuthorizedKeyEntry` format
that mina sshd understands and the further authentication delegated to the
`PublickeyAuthenticator` of mina sshd.

The authorisation check inside the `DarcsSshCommandFactory` is currently
done simply by checking if the requested repository is owned by the user
owning the ssh key. So for now users can only work via ssh on their own
repositories.

*HEADS UP*
The availability of `scp` functionality (needed for darcs) implies that
we need to tighten security in that section.
Currently we simply check the scp path for relative paths and deny access.
Summary of changes
1 files added
  • modules/hub/src/main/scala/de/smederee/ssh/DoobieSshAuthenticationRepository.scala
7 files modified with 245 lines added and 59 lines removed
  • modules/hub/src/it/scala/de/smederee/ssh/SshServerProviderTest.scala with 1 added and 1 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/HubServer.scala with 2 added and 1 removed lines
  • modules/hub/src/main/scala/de/smederee/ssh/DarcsSshCommand.scala with 100 added and 35 removed lines
  • modules/hub/src/main/scala/de/smederee/ssh/PublicSshKey.scala with 27 added and 1 removed lines
  • modules/hub/src/main/scala/de/smederee/ssh/SshAuthenticationRepository.scala with 5 added and 7 removed lines
  • modules/hub/src/main/scala/de/smederee/ssh/SshAuthenticator.scala with 84 added and 4 removed lines
  • modules/hub/src/main/scala/de/smederee/ssh/SshServer.scala with 26 added and 10 removed lines
2022-10-26 (Wed), 10:59 AM - Jens Grassel - f612b92a29d0c027c202affd6e5e146ba80db669

SSH: Add template for auth repository for ssh.

- add some documentation
Summary of changes
1 files added
  • modules/hub/src/main/scala/de/smederee/ssh/SshAuthenticationRepository.scala
1 files modified with 15 lines added and 0 lines removed
  • modules/hub/src/main/scala/de/smederee/ssh/SshAuthenticator.scala with 15 added and 0 removed lines
2022-10-25 (Tue), 3:26 PM - Jens Grassel - 4d12aa1b8e9a98244da555a20e975421606c096c

SSH: Key-Management

- add functionality to delete keys
- minor fixes
- some HTML/CSS styling
Summary of changes
4 files modified with 79 lines added and 17 lines removed
  • modules/hub/src/main/resources/assets/css/main.css with 8 added and 0 removed lines
  • modules/hub/src/main/resources/messages_en.properties with 4 added and 1 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/AccountManagementRoutes.scala with 37 added and 1 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/account/sshSettings.scala.html with 30 added and 15 removed lines
2022-10-24 (Mon), 7:31 PM - Jens Grassel - 165d002e8e6688c228dba115255aa39fa3171181

SSH: Key-Management

- BREAKING: Add last_used column to ssh_keys table
- add endpoints for listing and adding ssh-keys
- extend functionality of AccountManagementRepository
- extend PublicSshKey
- HTML and CSS
Summary of changes
4 files added
  • modules/hub/src/it/resources/de/smederee/ssh/ssh-key-with-comment.pub
  • modules/hub/src/it/resources/de/smederee/ssh/ssh-key-without-comment.pub
  • modules/hub/src/main/scala/de/smederee/hub/AddPublicSshKeyForm.scala
  • modules/hub/src/main/twirl/de/smederee/hub/views/account/sshSettings.scala.html
10 files modified with 415 lines added and 89 lines removed
  • modules/hub/src/it/scala/de/smederee/hub/DoobieAccountManagementRepositoryTest.scala with 99 added and 0 removed lines
  • modules/hub/src/main/resources/assets/css/main.css with 26 added and 0 removed lines
  • modules/hub/src/main/resources/db/migration/V1__base_tables.sql with 9 added and 7 removed lines
  • modules/hub/src/main/resources/messages_en.properties with 15 added and 0 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 116 added and 3 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/DoobieAccountManagementRepository.scala with 19 added and 0 removed lines
  • modules/hub/src/main/scala/de/smederee/ssh/PublicSshKey.scala with 71 added and 73 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/account/settings.scala.html with 17 added and 1 removed lines
  • modules/hub/src/test/scala/de/smederee/ssh/PublicSshKeyTest.scala with 8 added and 5 removed lines