Uploaded image for project: 'EJBCA'
  1. EJBCA
  2. ECA-8192

Move REST resources into separate modules

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: EJBCA 7.2.0
    • Component/s: None
    • Labels:
    • Provenance:
      Internal Delivery
    • Sprint:
      EJBCA Team Alice - 2019 w21, EJBCA Team Alice - 2019 w24

      Description

      Currently all REST resources live in the same package. This limits us from including certain resources in CE edition as well as restricting access to each one of them using protocol configuration. Current resources are:

      /ca/
      /certificate/
      /cryptotoken/
      /ca_management/

      "ca" and "certificate" should keep on living in "Certificate Management REST API".
      "cryptotoken" and "ca_management" should live in two separate modules.

      Suggested solution:

      • Move RestApiApplication into its own package, depending on (knowing about) all the resources.
      • Move common code (ExceptionHandlers, JsonSerializers etc) into either a new common package or reuse an existing one (e.g. "ejbca-common-web").
      • Packages containing the resources should only depend on common code packages.

      Testing:

      • Verify unit tests and system test results
      • Make sure Swagger-UI behaves as it currently does (all resources available under the same Swagger URL ".../ejbca/swagger-ui/")

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              laurik_helmes Lauri Kongas
              Reporter:
              hsunmark Henrik Sunmark
              Verified by:
              Henrik Sunmark
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 4 days Original Estimate - 4 days
                  4d
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 week, 1 day
                  1w 1d