Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Encryption and decryption is performed directly by the scripts that can be used outside of JS7 products or by related jobs.
  • No JS7 product is involved in encryption/decryption as otherwise the JS7 product would know the keys involved that potentially could be compromised by logging, database persistence etc.
  • Performing encryption/decryption by jobs limits the attack surface to the OS process executing the job. The job implementation is controlled by the user who can verify secure operation.

...

The basic proceeding works like this:

Flowchart
# Secret [label="   Secret   ",fillcolor="lightskyblue"]
# Encrypted_Secret [label="   Encrypted Secret   ",fillcolor="red"]
# Decrypted_Secret [label="   Decrypted Secret  ",fillcolor="lightgreen"]

# PrivateKey [shape="ellipse",label="Private Key",fillcolor="orange"]
# Certificate [shape="ellipse",label="Certificate / Public Key",fillcolor="limegreen"]

# Secret -> Certificate [label=" encrypt "] -> Encrypted_Secret

# Encrypted_Secret -> PrivateKey [label=" decrypt "] -> Decrypted_Secret


  • Consider the parties involved and related use cases:
    • A job executed on Agent A should be parameterized by a variable holding a secret.
    • A job executed on Agent B retrieves a secret that should be forwarded to a job on Agent A and possibly to other Agents too.
  • Use of asymmetric keys allows 
    • to create and to store a private key on Agent A.
    • to use Agent A's public key on Agent B or any other system involved.
    • to manage encryption and decryption like this:
      • create a symmetric one-time key and an encrypted copy of the key derived from Agent A's public key.
      • encrypt the value of a variable value with the one-time key.
      • drop the one-time key and forward the encrypted copy of the one-time key and the variable holding the encrypted value to Agent A.
      • only Agent A will be able to decrypt the encrypted one-time key using its private key which reveals the symmetric key required to decrypt the variable's value.

...