~jan0sch/smederee

Showing 11 changes starting from bbba74c735f7fc6fd949a2e305838cdd45e90dce.
2023-12-10 (Sun), 12:21 PM - Jens Grassel - bbba74c735f7fc6fd949a2e305838cdd45e90dce

security: Add Permission model to model privileges.

The permission model follows the approach of encoding POSIX file system
permissions and the idea to store only encoded permission sets in storage
layers (database) to allow faster querying for permissions.

It currently provides the following capabilities:

- `Execute` (octal value 1)
   - Allow executing tasks related to the data e.g. start build pipeline.
- `Read` (octal value 4)
   - Allow reading data (non modifying operations) e.g. view a repository
     or organisation.
- `Write` (octal value 2)
   - Allow writing data including deletion e.g. push commits, delete a project
     or modify an organisation.

That should enable us to provide role based access control (RBAC) in
combination with organisations and teams (to be implemented).
Summary of changes
2 files added
  • modules/security/src/main/scala/de/smederee/security/Permission.scala
  • modules/security/src/test/scala/de/smederee/security/PermissionTest.scala
2023-12-03 (Sun), 7:44 PM - Jens Grassel - 8391694d2a698e686c411b8e70d51ddaee19e95c

Hub: Add FullName

- add FullName to Account
- add database migration
- adjust code
- adjust tests
Summary of changes
2 files added
  • modules/hub/src/main/resources/db/migration/hub/V6__add_full_name.sql
  • modules/hub/src/main/scala/de/smederee/hub/FullName.scala
8 files modified with 50 lines added and 19 lines removed
  • modules/hub/src/main/scala/de/smederee/hub/Account.scala with 3 added and 0 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/DoobieAccountManagementRepository.scala with 3 added and 1 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/DoobieAuthenticationRepository.scala with 5 added and 3 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/DoobieResetPasswordRepository.scala with 3 added and 1 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/SignupRoutes.scala with 1 added and 0 removed lines
  • modules/hub/src/test/scala/de/smederee/hub/BaseSpec.scala with 20 added and 13 removed lines
  • modules/hub/src/test/scala/de/smederee/hub/DoobieVcsMetadataRepositoryTest.scala with 3 added and 0 removed lines
  • modules/hub/src/test/scala/de/smederee/hub/Generators.scala with 12 added and 1 removed lines
2023-12-01 (Fri), 9:44 PM - Jens Grassel - 3f3c70e0f9ff827c3a8422d83639c78936c387c4

Hub: Add experimental support for ed25519 ssh keys.

Summary of changes
1 files modified with 2 lines added and 0 lines removed
  • build.sbt with 2 added and 0 removed lines
2023-12-01 (Fri), 7:03 PM - Jens Grassel - 3bcfdad7f45ecb4f8a61851474829a9439328e28

darcs: Fix deprecation warning about ResourceFixture

Summary of changes
2 files modified with 2 lines added and 2 lines removed
  • modules/darcs/src/test/scala/de/smederee/darcs/DarcsCommandsTest.scala with 1 added and 1 removed lines
  • modules/hub/src/test/scala/de/smederee/ssh/SshServerProviderTest.scala with 1 added and 1 removed lines
2023-12-01 (Fri), 5:40 PM - Jens Grassel - 32b447e2e48afb8ce0f60b71ef504042d9821808

Update simple java mail to 8.3.2

Summary of changes
1 files modified with 1 lines added and 1 lines removed
  • build.sbt with 1 added and 1 removed lines
2023-12-01 (Fri), 5:40 PM - Jens Grassel - e297ea43454b29600ce688ca5817e112771fe031

Update logback to 1.4.14

Summary of changes
1 files modified with 1 lines added and 1 lines removed
  • build.sbt with 1 added and 1 removed lines
2023-11-27 (Mon), 9:52 AM - Jens Grassel - 40cc63cd99410e09dc6b0d1037e96d09e2279432

email: Add basic tests for generators.

- provide `Arbitrary` givens within `Generators`
Summary of changes
3 files modified with 12 lines added and 8 lines removed
  • modules/email/src/test/scala/de/smederee/email/EmailMiddlewareTest.scala with 1 added and 5 removed lines
  • modules/email/src/test/scala/de/smederee/email/Generators.scala with 10 added and 0 removed lines
  • modules/email/src/test/scala/de/smederee/email/SimpleJavaMailMiddlewareHelpersTest.scala with 1 added and 3 removed lines
2023-11-27 (Mon), 9:34 AM - Jens Grassel - 5002c6ed6356e51ab9ba8ed8af57024a1e647099

Update munit to 2.0.0-M4 and munit-cats-effect to 2.0.0-M4

- remove munit-discipline (unused)
Summary of changes
1 files modified with 3 lines added and 11 lines removed
  • build.sbt with 3 added and 11 removed lines
2023-11-26 (Sun), 4:48 PM - Jens Grassel - 4dd6f974cabd02c32d7cd2d7e66125f7155dcd1b

Update Bouncy Castle to 1.77

Summary of changes
1 files modified with 1 lines added and 1 lines removed
  • build.sbt with 1 added and 1 removed lines
2023-11-26 (Sun), 4:42 PM - Jens Grassel - 85fe62198d862d25ac634d018589e89c0c71cc5a

Update doobie to 1.0.0-RC5

Summary of changes
1 files modified with 1 lines added and 1 lines removed
  • build.sbt with 1 added and 1 removed lines
2023-11-26 (Sun), 4:38 PM - Jens Grassel - 983686c4f311fae22e72f55928b9f5afac2e1d58

Update postgresql to 42.7.0

Summary of changes
1 files modified with 1 lines added and 1 lines removed
  • build.sbt with 1 added and 1 removed lines