threefoldtech / zos

Autonomous operating system
https://threefold.io/host/
Apache License 2.0
84 stars 14 forks source link

Only allow verified user to deploy #2444

Closed AhmedHanafy725 closed 1 month ago

AhmedHanafy725 commented 1 month ago

require: https://github.com/threefoldtech/tfgrid-kyc-verifier/issues/5

The account's status can be queried from the KYC service using the account's address.

Eslam-Nawara commented 1 month ago

WIP

After the kyc server is updated I tested the status endpoint and now it's working as expected

I was able to boot a zos node on mainnet that is able to restrict deployments to users with verified accounts and I was able to only deploy on this node with a verified account, deployment failed if the account is not verified

Note: this only works with mainnet as there's only one kyc server instance is up only for mainnet, for all other stacks the check is skipped for now

rawdaGastan commented 1 month ago

Verification for zos3 and zos4

Failure scenarios

Screenshot from 2024-10-30 13-24-09

image

Success scenario

Tried a local running nodes 255 on zos4 and 197 on zos3