clevis-luks-bind.1.adoc 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. CLEVIS-LUKS-BIND(1)
  2. ===================
  3. :doctype: manpage
  4. == NAME
  5. clevis-luks-bind - Bind a LUKSv1 device using the specified policy
  6. == SYNOPSIS
  7. *clevis luks bind* [-f] -d DEV [-s SLT] [-k KEY] PIN CFG
  8. == OVERVIEW
  9. The *clevis luks bind* command binds a LUKSv1 device using the specified
  10. policy. This is accomplished with a simple command:
  11. $ clevis luks bind -d /dev/sda tang '{"url":...}'
  12. This command performs four steps:
  13. 1. Creates a new key with the same entropy as the LUKS master key.
  14. 2. Encrypts the new key with Clevis.
  15. 3. Stores the Clevis JWE in the LUKS header with LUKSMeta.
  16. 4. Enables the new key for use with LUKS.
  17. This disk can now be unlocked with your existing password as well as with
  18. the Clevis policy. You will additionally need to enable one or more of the
  19. Clevis LUKS unlockers. See link:clevis-luks-unlockers.7.adoc[*clevis-luks-unlockers*(7)].
  20. == OPTIONS
  21. * *-f* :
  22. Do not prompt for LUKSMeta initialization
  23. * *-d* _DEV_ :
  24. The LUKS device on which to perform binding
  25. * *-s* _SLT_ :
  26. The LUKSMeta slot to use for metadata storage
  27. * *-k* _KEY_ :
  28. Non-interactively read LUKS password from KEY file
  29. * *-k* - :
  30. Non-interactively read LUKS password from standard input
  31. == CAVEATS
  32. This command does not change the LUKS master key. This implies that if you
  33. create a LUKS-encrypted image for use in a Virtual Machine or Cloud
  34. environment, all the instances that run this image will share a master key.
  35. This is extremely dangerous and should be avoided at all cost.
  36. This is not a limitation of Clevis but a design principle of LUKS. If you wish
  37. to have encrypted root volumes in the cloud, you will need to make sure that
  38. you perform the OS install method for each instance in the cloud as well.
  39. The images cannot be shared without also sharing a master key.
  40. == SEE ALSO
  41. link:clevis-luks-unlockers.7.adoc[*clevis-luks-unlockers*(7)],
  42. link:clevis-encrypt-tang.1.adoc[*clevis-encrypt-tang*(1)],
  43. link:clevis-encrypt-sss.1.adoc[*clevis-encrypt-sss*(1)],
  44. link:clevis-decrypt.1.adoc[*clevis-decrypt*(1)]