Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
SEO Metadata
keywordsAgent Cluster, High Availabilitly
titleSecurity Architecture

JS7 brings a security architecture based on certificates for connections between products and for digital signing of workflows and jobs

Table of Contents

Introduction

  • The Security Architecture includes:
    • Secure Communication:
      • Certificate Management: Create and deploy certificates for secure network communication between componentsproducts.
      • Life Cycle Management: Create, update and delete certificates and deploy changes to componentsproducts.
    • Secure Configuration:
      • Configurations include workflows, jobs and related objects.
      • These objects are digitally signed and deployed by a responsible person.
    • Secure Operation:
      • Access Management: Authentication and Authorization via an LDAP Directory Servicea LDAP, OIDC, Certificates, FIDO etc.
      • Credential Management: Use of a Credential Store for confidential data.
  • Wording
    • The term Deployment applies to a situation when a configuration is transferred from the JOC Cockpit to a Controller and Agents.
    • The term Roll-out applies to a situation when a configuration is transferred between environments, e.g. for example from non-production to production environments. Within the respective target environment a Deployment is performed to transfer configuration objects to Controllers and Agents.

...

  • Network connections between components use products use the HTTPS protocol.
  • Such connections are secured by x509 certificates, optionally by default using mutual client and server authentication.
  • Connections are established in one direction only.

Image RemovedImage Added

Certificate Management

Certificate Preparation

Image Modified

Certificate Deployment

Image Modified

Certificate Management Life Cycle

...

  • Certificates are created:
    • either from a CA independently from JS7,
      • This applies to users of JS7 who require the "high" Security Level and therefore operate a CA on of their own.
    • or directly from the the JS7 - Certificate Authority in JOC Cockpit.
      • This applies to users of JS7 who prefer a modest Security Level "low" or "medium" Security Level without the effort of maintaining a CA.
      • The JOC Cockpit implements:
        • a Root CA and Intermediate CA to create certificates for JS7 componentsproducts.
        • deployment capabilities to prepare the security configuration for JS7 componentsproducts, i.e. to generate keystores and truststores which the relevant certificates are added to.
  • Certificates can be maintained with JOC Cockpit if an individual CA is not in place.
    • Private Keys and Certificates are stored with the JS7 database.
    • A user interface is available for operations on certificates, such as creating, updating and deleting certificates.
  • Certificates are prepared for deployment:
    • A keystore and truststore to hold the required certificates is created for individual JS7 components products such as Controllers or Agents.
    • Keystores and truststores can be forwarded to Controllers and Agents by any suitable means, for example by file transfer, SSH, transportable disks etc.
    • Keystores and truststores can be imported to Controllers and Agents using a shell script.

...

  • To deploy scheduling objects to a Controller in a given environment includes transferring objects such as workflows and jobs.
  • This step can be simplified for development environments, when frequent changes occur to scheduling objects and deployments are performed with a single mouse click.
  • This step can be more complex if sharing of responsibilities duties is includedin place, for example, when rolling-out scheduling objects from a development environment to a test or production environment. This situation is called a roll-out and is explained in the subsequent chapter.
  • A secure deployment matches the security requirements in a given environment. Therefore the JOC Cockpit can be operated with different Security Levels.
    • "Low" and "medium" Security Levels allow simplified deployment and are suitable for environments with modest security requirements.
    • The "high" Security Level takes more effort and is targeted towards organizations with more elaborate security requirements.
  • Security Levels are put in place during the installation of the JOC Cockpit. Each instance of the JOC Cockpit can be only operated at a single Security Level. There is no fallback from a Security Level "high" to a "medium" or "low" security levelSecurity Level. Changing the Security Level requires reinstalling JOC Cockpit.

...

  • Configuration objects are automatically signed by JOC Cockpit. This task is performed implicitly when deploying objects.
  • This mechanism is easy to use from a single-click operation as signing operations are performed without user interaction.
  • At the same time there is no certainty about who has deployed objects, as any user who is authorized to deploy objects can use the relevant deployment function with a single mouse click.


Image Modified

Security Level Medium: User based Signing

  • Configuration objects are signed individually with the private key of the user. This applies within the scope of permissions used in JOC Cockpit to authorize individual accounts for deploying configuration objects.
  • This mechanism is similar to implicit signing except for the fact that the private key stored with the current user's profile is used.
  • Note that similarly to implicit signing, all private and public keys of users are stored in a database and therefore are accessible to a DBA or system administrator.


Image Modified

Security Level High: External Signing

  • The security level requires any configuration objects to be exported and to be signed individually outside of the JOC Cockpit.
  • This guarantees that at any point in time, the JOC Cockpit has no knowledge about the private key used for signing.
  • Security has a price: there is some effort required to export a configuration, to sign it and to import the signed configuration.


Image Modified

Secure Roll-out

  • A roll-out includes transferring configuration objects between environments, e.g. for example from development to test and to production environments.


Image Modified


  • Steps for a roll-out include considering:
    • that the roll-out might include shared responsibilities, e.g for example being performed by a different individual to the one who managed manages the configuration. For example:
      • a developer would will create workflows and jobs in a development environment and deploy them to Controllers and Controllers and Agents in that environment.
      • an application manager would will perform quality assurance and pick up configurations from a development environment for roll-out to a test environment
      • a release manager would will authorize roll-out from a test environment to a production environment.
    • that when exporting a configuration, the affected configuration objects are downloaded to a single archive file (.zip, .tar.gz)
    • that should Security Level High be in place, then signing the downloaded configuration objects will include the tasks:
      • transferring the downloaded archive to a secure environment, e.g. for example to a computer that is separated from the network.
      • extracting the archive to disk and to use a program that applies to company proven standards to signing the files included with the archive. This step includes the user's private key being used to sign files. As a result a signature file is created for each file extracted from the archive.
      • adding the extracted files and the signature files to an archive file.
    • that the archive with signed files has to be transferred to the target environment. This includes using any means for file transfer such as copying between servers, use of SCP, SFTP etc.
    • that the archive with signed files has to be imported to JOC Cockpit in the target environment.
  • The final step includes deploying the imported and signed configuration objects to the target environment.
    • This task can be performed by the same individual who signed and transferred the archive file or this can require a separate role in the JOC Cockpit to be authorized to deploy in the target environment.

...

  • Access Management includes access to JOC Cockpit and to the REST Web Service API. This applies to both users who access the JOC Cockpit GUI and & scripts, and applications that directly access the REST Web Service API.
  • The JobScheduler Controller is assumed not to be accessed by users directly but exclusively via the JOC Cockpit REST Web Service API. No default authentication is provided if the insecure HTTP protocol is used.
  • JobScheduler Universal Agents are assumed not to be accessed by users directly but exclusively by a JobScheduler Controller.  No No default authentication is provided if the insecure HTTP protocol is used.

Access to JOC Cockpit is subject to authentication and authorization. 

JOC Cockpit implements a number of JS7 - Identity Services:

  • Identity Services with built-in support for local user management, LDAP, OIDC, Certificates, FIDO.
  • Identity Services for use with external Identity Providers such as Keycloak®, HashiCorp® Vault

JOC Cockpit offers Role Based Access Management, see JS7 - Authorization

  • Permissions for operations in the GUI and in the JS7 REST Web Service API can freely be grouped to roles.
  • Users are assigned roles.

Identity Services

JOC Cockpit offers a number of Identity Services for authentication and authorization:

Image Added

Certificate Based Authentication

Certificates can be used as a single factor for authentication or as a second factor (MFA). For details see JS7 - Certificate Identity Service.

Image Added

FIDO Authentication

The FIDO family of protocols offers FIDO2 and Passkeys as a single factor and as second factor in MFA. The FIDO U2F protocol can be used as a second factor.

For details see JS7 - FIDO Identity Service.

Image Added

Credential Management

  • Users frequently ask if JobScheduler can encrypt credentials. The answer is "no" as it makes no sense for an Open Source software to handle a symmetric key that is stored in the JS7 configuration. Encrypting credentials contributes to obfuscation, not to security.
  • There is only one way to handle passwords: not to use them.
  • Alternatives include use of a JS7 - Credential Store.

References