Deploy Files v2
Note
Deploy File Plugin is not a feature in the CC evaluation, so it cannot be used by public institutions that require CC authentication.
The Deploy Files Plugin runs a file or downloads it to a specific location. The policy server can communicate with the agent to deploy, run and install files to the device.
- Deploying files for your device
- Installing software on the device
Deploy Files v2 Plugin is added with a focus on security enhancement in the existing Deploy Files Plugin.
Deploy Files v2 Plugin provides file integrity verification and distributor identification for secure file distribution.
- Perform three steps of integrity verification
- Identifying and approving end-user distributors
Deploy Files v2 Plugin requires an digital signature for the file you deploy, and it uses the Sigstore Signing method designed for supply chain security for digital signatures and signature verification. Deploy Files v2 Plugin uses Sigstore Signing to selectively use two methods: Sigstore Keyless Signing and Public Key Signing
Sigstore Keyless Signing Method
OIDC is an extension of OAuth 2.0, a framework that uses login authentication to provide users with access to resources. OIDC can generate certificates without requiring a user's password, it is used by Sigstore to generate certificates with a short expiration date.
How to use Sigstore Keyless Signing
Step1. Digital signature of distribution file
- Download the cosign and store it in the directory that you want to use for the digital signature of the distribution file.
- Change the file name to cosign.
- Copy the file to be digitally signed to the directory.
- From the termianl, navigate to the directory where the cosign file is located.
- Enter the following command to perform the digital signature.
> cosign sign-blob {FILE_NAME} --output-certificate {CERT_FILE_NAME.cert} --output-signature {SIG_FILE_NAME.sig}
- After a while, in ther terminal, enter
y
in Acceptance of the Terms of Service. - When the URL for authentication opens in the browser, select one of the three OIDCs:
Git, Google, Microsoft
and perform authentication. - Check that the file
Cert, Sig
is successfully created within the directory.
Step2. Verifying digital signature
- Enter the following command in the terminal:
> cosign verify-blob {FILE_NAME} --certificate {CERT_FILE_NAME.cert} --signature {SIG_FILE_NAME.sig} --certificate-identity={AUTH_USER_ID} --certificate-oidc-issuer={OIDC 발행자} Example> cosign verify-blob agent.zip --certificate agent.cert --signature agent.sig --certificate-identity=genian@genians.com --certificate-oidc-issuer=https://accounts.google.com
- If the digital signature is valid, it will display Verified OK.
Step3. Creating Node Actions
- Access the Policy Server Web Console and navigate to Policy at the top.
- Go to Node Policy > Agent Actions from the left menu.
- Click on Actions Selection > Create at the top.
Below are the Basic Settings.
- For Action Name, use the format "(Purpose) Action Name" to easily differentiate node actions during operation.
- Description can be used to differentiate node actions based on their purpose.
- Adding Labels allows custom labels to be displayed in the Description input field, facilitating plugin categorization.
Configure the Action Execution Settings below.
- Choose the appropriate OS type for macOS, Linux, or Windows targets under OS Type.
- Condition Settings are typically used to deploy to specific users based on certain conditions during deployment.
Example: "c:\%ProgramFiles%\abc.exe 가 존재하지 않는 경우" 라는 조건을 사용하여 배포하게 되면 abc.exe 가 존재하지 않는 단말에만 배포가 가능합니다.
- Select File Deployment V2 in Plugin Selection.
- Click the
Upload
button under Deployment File to select the file. - Choose Sigstore Keyless Signing for Deployment File Verification Method.
- Select the OIDC (Github, Google, Microsoft) used for authentication during digital signing in Trusted OIDC Issuer.
- Enter the ID (in email address format) used for authentication during digital signing in Trusted ID.
- Click the
Read File
button on the right side of Certificate to add the cert file generated during digital signing. - Click the
Read File
button on the right side of Signature to add the sig file generated during digital signing. - In Deployment Options, configure the deployment method:
- Run App: Execute macOS app file(.app).
- Execute File: If it's a compressed file, set the "File Path" to the file to execute, configure "Execution Options," and specify the "Execution Account" to run the file. Set the "Reboot Option" to specify whether to reboot after executing the file.
- Download: Specify the file and folder path where the deployment file will be copied.
- Install Package: Install macOS package file (.pkg).
- Open File: Open the uploaded file.
- Run Script: Runs the uploaded script file.
- Click the Edit button.
- Navigate from the left policy menu to Node Policy, then click on Target Policy ID.
- Find Agent Action Settings, click the Assign button.
- In the Available section, locate File Deployment, drag it to the Selected section.
- Click the Edit button, then click Update.
Note
Public Key Signing Method
Usage of Public Key Signing
Step 1. Digital Signature of Deployment File
- Perform Steps 1 to 4 of Sigstore Keyless Signing Method, then proceed with the following.
- If you don't have a separate digital signing key, generate an digital signing private key and public key using the following command:
> cosign generate-key-pair > Enter passphrase for key > Confirm passphrase for key > Type ls to verify that the private key (key) and public key (pub) files are created.
- If the keys are generated, sign the deployment file using the generated key as follows:
> cosign sign-blob {FILE_NAME} --key cosign.key --tlog-upload=false --output-signature {SIG_FILE_NAME.sig} Example> cosign sign-blob agent.zip --key cosign.key --tlog-upload=false --output-signature agent.sig
Step 2. Verifying Digital Signature
- Enter the following command in the termianl:
> cosign verify-blob {FILE_NAME} --key {PUB_FILE_NAME.pub} --signature {SIG_FILE_NAME.sig} --insecure-ignore-tlog=true --insecure-ignore-sct=true Example> cosign verify-blob agent.zip --key cosign.pub --signature agent.sig --insecure-ignore-tlog=true --insecure-ignore-sct=true
- If the digital signature is valid, it will display Verified OK.
Step 3. Creating Node Actions
- Perform Steps 1 to 10 of Sigstore Keyless Signing Method, then proceed with the following.
- Select Public Key Signing for Deployment File Verification Method.
- Click the
Read File
button on the right side of Trusted Public Key to add the pub file generated during key creation. - Click the
Read File
button on the right side of Signature to add the sig file generated during electronic signature. - Perform steps 16 to 21 of Sigstore Keyless Signing Method in Step 3.
Danger