Skip to content

docs: use stringData in the DigitalOcean DNS01 Secret example#2159

Open
yugstar wants to merge 1 commit into
cert-manager:masterfrom
yugstar:docs-354-digitalocean-stringdata
Open

docs: use stringData in the DigitalOcean DNS01 Secret example#2159
yugstar wants to merge 1 commit into
cert-manager:masterfrom
yugstar:docs-354-digitalocean-stringdata

Conversation

@yugstar

@yugstar yugstar commented Jun 16, 2026

Copy link
Copy Markdown

What

Switches the DigitalOcean ACME DNS01 Secret example to use stringData instead of a base64-encoded data field, and removes the now-redundant base64 encoding instructions. Also fixes a malformed closing code fence.

Why

Issue #354 reports that the base64 instructions on this page are confusing. The reporter noted they would have done the right thing on the first try if the example had not told them to base64-encode the token. When closing the earlier PR #740, @SgtCoDFish suggested that adding a stringData note would be a good improvement and invited a new PR.

Using stringData lets users paste the token in plain text and lets Kubernetes encode it, which removes the footgun. This matches the existing Cloudflare DNS01 example, which already uses stringData.

Closes #354

NONE

The DigitalOcean ACME DNS01 example used a base64-encoded `data` field
plus separate base64 instructions, which users found confusing (cert-manager#354).
Switch the example to `stringData` so the token is given in plain text,
matching the Cloudflare example, and drop the now-redundant base64
encoding steps. Also fixes a malformed closing code fence.

Closes cert-manager#354

Signed-off-by: Aman Raj <aman.yug@gmail.com>
@cert-manager-prow cert-manager-prow Bot added the dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. label Jun 16, 2026
@cert-manager-prow

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign sgtcodfish for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@cert-manager-prow cert-manager-prow Bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jun 16, 2026
@netlify

netlify Bot commented Jun 16, 2026

Copy link
Copy Markdown

Deploy Preview for cert-manager ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 302f677
🔍 Latest deploy log https://app.netlify.com/projects/cert-manager/deploys/6a31d710b3625f0008e1ceba
😎 Deploy Preview https://deploy-preview-2159--cert-manager.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DigitalOcean access-token should not be base64-encoded

2 participants