Skip to content

Replace cfssl/cfssljson with step cli from smallstep/cli#2

Draft
Copilot wants to merge 3 commits into
step-cafrom
copilot/replace-cfssl-with-step-cli
Draft

Replace cfssl/cfssljson with step cli from smallstep/cli#2
Copilot wants to merge 3 commits into
step-cafrom
copilot/replace-cfssl-with-step-cli

Conversation

Copy link
Copy Markdown

Copilot AI commented Feb 2, 2026

Migrates all certificate generation tooling from CloudFlare's cfssl to smallstep's step cli.

Changes

  • hack/lib/util.sh:

    • kube::util::ensure-cfsslkube::util::ensure-step (downloads step v0.29.0, supports linux/darwin amd64/arm64)
    • kube::util::create_client_certkey and kube::util::create_serving_certkey now use step certificate create
  • cluster/common.sh: Rewrote generate-etcd-cert to use step cli for CA, client, server, and peer certs

  • cluster/gce/util.sh: Updated all inline cfssl calls to use step cli

  • testdata/generate.sh scripts: Updated 4 scripts to use step cli commands

Command Mapping

# Before (cfssl)
cfssl gencert -initca csr.json | cfssljson -bare ca
cfssl gencert -ca ca.pem -ca-key ca-key.pem ... | cfssljson -bare name

# After (step)
step certificate create "CN" ca.pem ca-key.pem --profile root-ca --no-password --insecure
step certificate create "CN" name.pem name-key.pem --ca ca.pem --ca-key ca-key.pem --no-password --insecure

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • dl.smallstep.com
    • Triggering command: /usr/bin/curl curl -sL REDACTED -o step.tar.gz (dns block)
    • Triggering command: /usr/bin/curl curl -v REDACTED (dns block)
  • https://api.github.com/repos/smallstep/cli/releases/latest
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (http block)
  • smallstep.com
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)
    • Triggering command: /usr/bin/curl curl -sL REDACTED (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits February 2, 2026 09:07
Co-authored-by: upodroid <25100905+upodroid@users.noreply.github.com>
Co-authored-by: upodroid <25100905+upodroid@users.noreply.github.com>
Copilot AI changed the title [WIP] Replace cfssl and cfssljson with step cli Replace cfssl/cfssljson with step cli from smallstep/cli Feb 2, 2026
Copilot AI requested a review from upodroid February 2, 2026 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants