← Back to Pull requests

docs: rewrite the README, IAM docs and CONTRIBUTING #511

Open
unknown opened this pull request with 598 lines diff across 7 files
View on GitHub
unknown unknown commented on Nov 21, 2026 00:37 UTC
Author

Issue # (if applicable)

N/A

Reason for this change

The README was hard to follow. It opened with three warnings before saying what the project is, mixed user docs with contributor setup, and had drifted from the code: the cert-manager install link pointed at the wrong page, the Ingress annotation advice no longer works, the approval-check section only applied to cert-manager releases before 1.3, and the install command produced a random ServiceAccount name that EKS Pod Identity can't be associated with. Credentials were explained one feature at a time, led with access keys and EC2 instance roles, and never described how the controller picks credentials for each kind of Issuer. The examples used secretRef.

Description of changes

Three commits:

  • Examples stop using secretRef. The examples that set it, and the minimal example, are now AWSPCAClusterIssuers that use the controller's own credentials, so they work with the default settings.

  • Contributor docs move to CONTRIBUTING.md, with the end-to-end setup in the order it runs and the stale parts fixed: the Go version, the ServiceAccount the IRSA test role trusts, the e2e test files, and the safe to test label.

  • The README is rewritten, and credential docs move to a new docs/iam.md. docs/iam.md starts with the recommended setup by Issuer kind (EKS Pod Identity for the controller, IRSA per Issuer for namespaced Issuers), then covers the IAM policy, ambient credentials, CAs in other accounts, IAM Roles Anywhere, and the options that are not recommended. The README now says what the project is, installs the chart with a fixed name and namespace, collects the upgrade notes, and shows an annotated Issuer. It also corrects the Ingress annotations, which need the Issuer kind and group, adds the isCA template, and drops the approval-check and client-side rate limiting sections, since controller-runtime already turns that limit off.
  • The Supported workflows list keeps every credential method the controller supports, and marks access keys from a Secret as deprecated.

    Decisions

  • Recommend by Issuer kind. The controller already treats the two kinds differently: AWSPCAClusterIssuers use the controller's own credentials by default, and since v1.12.0 AWSPCAIssuers don't. The docs lead with that. EKS Pod Identity for the controller, used by cluster-scoped Issuers that administrators create, and IRSA per Issuer for namespaced Issuers that other teams create, so each team's IAM role decides which CAs it can use.

  • Who chooses the role matters. An EKS Pod Identity target role is recommended over spec.role for reaching another account, because the cluster administrator sets it in the EKS API, while spec.role is chosen by whoever can create an Issuer.

  • Discouraged options are named once, without setup steps. Access keys from a Secret and EC2 instance roles still work, and stay in Supported workflows, but the docs only say they're not recommended and why. Showing how to set them up would keep teaching them.

  • Deprecate the behavior, not break it. Access keys from a Secret and the controller's own ServiceAccount token stay enabled by default (#509 and #510), so this change only documents them as deprecated.

  • Examples should work with the defaults. They're AWSPCAClusterIssuers with no credentials set, so they use the controller's credentials without enabling anything.

  • A predictable ServiceAccount. The install command uses a fixed release name and namespace, because an EKS Pod Identity association has to name the ServiceAccount.

  • "Controller" versus "Issuer". cert-manager calls these resources issuers, so the docs use "the controller" for the running Deployment and its configuration, and "Issuer" for the AWSPCAIssuer and AWSPCAClusterIssuer objects.

  • One place for each topic. Credentials and IAM live in docs/iam.md, contributor setup in CONTRIBUTING.md, and the README links to both.
  • Left for a follow-up: the minimum supported cert-manager version (the README's "1.4+" was out of date, and the e2e tests use v1.21.2).

    Describe any new or updated permissions being added

    None. Documentation and examples only.

    Description of how you validated changes

  • Every relative link and anchor in README.md, CONTRIBUTING.md, docs/iam.md, docs/issue-categories.md and docs/severity.md resolves at each commit.

  • The JSON and YAML examples parse.

  • helm template with the README's install command gives the ServiceAccount aws-privateca-issuer/aws-privateca-issuer that the Pod Identity instructions use.

  • Facts in docs/iam.md and the README were checked against pkg/aws/pca.go, main.go, the chart and the Makefile.
  • This depends on #510, and includes its commit until it merges.

    Diff: 598 lines (+448 / -150) across 7 files Reviewer: micahhausler Review duration: 13882m
    All Vouch review confidence checks passed
    Residual risk 0.29 = Change Risk (0.50) × (1 − Review Confidence (0.43)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.50 · 598 lines diff across 7 files
    0.50
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    42%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.383
    Shallow Review Depth shallow_review_depth
    0.344
    Real PR Conversation Timeline
    1 comments
    "Review active on #511"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 43.0% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 50% (MEDIUM) · Higher = larger blast radius
    50%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 43.0% · Lower = rushed or shallow review
    43.0%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 28.5% · Safe to merge
    28.5%