Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CloudImage license #1145

Open
fanux opened this issue Feb 16, 2022 · 3 comments
Open

CloudImage license #1145

fanux opened this issue Feb 16, 2022 · 3 comments
Assignees
Labels
ClusterImage kind/feature Category issues or PRs related to feature request

Comments

@fanux
Copy link
Collaborator

fanux commented Feb 16, 2022

No description provided.

@fanux fanux added the kind/feature Category issues or PRs related to feature request label Feb 16, 2022
@fanux fanux self-assigned this Feb 16, 2022
@allencloud
Copy link
Member

What is the purpose of CloudImage License?
And what is the detailed demand of it?

Could you please attach more information? @fanux

@fanux
Copy link
Collaborator Author

fanux commented Feb 16, 2022

ADP relies on this feature, and I will add a detailed design, mainly to encrypt the image through the private key, and decrypt the image through the public key when the license plug-in is successfully executed.

@fanux
Copy link
Collaborator Author

fanux commented Feb 16, 2022

Build encrypt CloudImage

sealer build my-encrypt-image:latest . --private-key="xxxxxxxx"

decrypt CloudImage and use it

Clusterfile

apiVersion: sealer.cloud/v2
kind: Cluster
metadata:
  name: default-kubernetes-cluster
spec:
  image: kubernetes:v1.19.8
  ssh:
    passwd: xxx
  hosts:
    - ips: [ 192.168.0.2,192.168.0.3,192.168.0.4 ]
      roles: [ master ]
    - ips: [ 192.168.0.5 ]
      roles: [ node ]
---
apiVersion: sealer.aliyun.com/v1alpha1
kind: Plugin
metadata:
  name: taint
spec:
  type: LICENSE
  data: |
      "env": "env data, collet and encrypt by license tools, like iplist CPU model and quantity...",

The LICENSE plugin will check the env data and decrypt the CloudImage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ClusterImage kind/feature Category issues or PRs related to feature request
Projects
None yet
Development

No branches or pull requests

2 participants