mirror of
https://github.com/shankar0123/certctl.git
synced 2026-06-10 01:49:11 +00:00
docs: Phase 4 (structural) — move connectors.md + 5 deep dives into reference/connectors/
Per Phase 1 audit at cowork/docs-overhaul-phase-1-audit-2026-05-04/.
Phase 4 in the audit recommended a full split of connectors.md (2055
lines) into an index + 27 per-connector pages (12 issuer + 15 target).
This commit lands the structural half of that work; full per-target
page extraction is deferred to follow-up commits.
Renames (all blame-preserving):
docs/connectors.md → docs/reference/connectors/index.md
docs/connector-apache.md → docs/reference/connectors/apache.md
docs/connector-f5.md → docs/reference/connectors/f5.md
docs/connector-iis.md → docs/reference/connectors/iis.md
docs/connector-k8s.md → docs/reference/connectors/k8s.md
docs/connector-nginx.md → docs/reference/connectors/nginx.md
Edits:
- docs/reference/connectors/index.md gets a top-of-doc note
explaining the per-connector deep-dive sibling pattern + a forward
list of the 5 per-target pages.
- The 5 per-connector deep-dive pages each get a `Last reviewed:
2026-05-05` header + a back-link to the index.
Deferred to future commits (Phase 4b/c follow-on):
- Extracting the 12 issuer sections from index.md into per-issuer
pages at reference/connectors/{acme,awsacmpca,digicert,ejbca,
entrust,globalsign,googlecas,local,openssl,sectigo,stepca,vault}.md
- Extracting the 10 remaining target sections from index.md into
per-target pages at reference/connectors/{caddy,traefik,envoy,
haproxy,postfix-dovecot,ssh,javakeystore,wincertstore,awsacm,
azurekv}.md
The pragmatic split makes this Phase 4 work incrementally landable —
each per-connector extraction is a small follow-up commit that doesn't
change the docs/ tree shape further. Cross-references from README.md
and other docs to docs/connectors.md still need fixing in Phase 11.
This commit is contained in:
@@ -0,0 +1,106 @@
|
||||
# Apache httpd Connector — Operator Deep-Dive
|
||||
|
||||
> Last reviewed: 2026-05-05
|
||||
>
|
||||
> Per Phase 14 of the deploy-hardening II master bundle. For the
|
||||
> connector-development context (interface contract, registry, atomic
|
||||
> deploy primitive shared across all targets), see the
|
||||
> [connector index](index.md).
|
||||
|
||||
## Overview
|
||||
|
||||
The Apache connector (`internal/connector/target/apache/`) deploys
|
||||
TLS certs to Apache 2.4 LTS via separate cert/chain/key files +
|
||||
`apachectl configtest` validate + `apachectl graceful` reload.
|
||||
Mirrors the canonical NGINX template (Bundle I Phase 5).
|
||||
|
||||
## Vendor versions tested
|
||||
|
||||
- **Apache httpd 2.4 LTS** (only LTS branch; 2.6 is dev branch)
|
||||
|
||||
## Per-quirk operator guidance
|
||||
|
||||
### Multi-vhost cert-by-vhost
|
||||
|
||||
`TestVendorEdge_Apache_MultiVhostCertByVhost_DeployIsolated_E2E`
|
||||
|
||||
When Apache has multiple `<VirtualHost>` blocks each with its own
|
||||
`SSLCertificateFile`, connector deploys to the matching vhost
|
||||
only. Other vhosts unchanged.
|
||||
|
||||
### `apachectl graceful-stop` drains cleanly
|
||||
|
||||
`TestVendorEdge_Apache_ApachectlGracefulStop_DrainsCleanly_E2E`
|
||||
|
||||
`apachectl graceful` (the connector default) preserves in-flight
|
||||
TLS connections. `apachectl restart` drops them.
|
||||
|
||||
### `mod_ssl` absent
|
||||
|
||||
`TestVendorEdge_Apache_ModSSLAbsent_DeployFailsWithActionableError_E2E`
|
||||
|
||||
If `mod_ssl` isn't loaded, `apachectl configtest` fails with
|
||||
"Invalid command 'SSLCertificateFile'". Connector surfaces this
|
||||
verbatim — operator action: `LoadModule ssl_module modules/mod_ssl.so`.
|
||||
|
||||
### `.htaccess` interactions
|
||||
|
||||
`TestVendorEdge_Apache_HtaccessRequireSSL_NotImpactedByDeploy_E2E`
|
||||
|
||||
`.htaccess` rules requiring SSL are not impacted by cert rotation.
|
||||
The `Require` directive evaluates per-request against the
|
||||
connection's TLS state, not the cert file.
|
||||
|
||||
### Apache 2.4 LTS reload semantics pinned
|
||||
|
||||
`TestVendorEdge_Apache_Apache24LTSReloadSemanticsPinned_E2E`
|
||||
|
||||
`apachectl graceful` semantics stable across 2.4.x patch versions.
|
||||
No per-version branch needed.
|
||||
|
||||
### Syntax error rollback
|
||||
|
||||
`TestVendorEdge_Apache_SyntaxErrorRollback_E2E`
|
||||
|
||||
`apachectl configtest` failure aborts before atomic rename. Live
|
||||
cert untouched.
|
||||
|
||||
### Per-vhost key ownership
|
||||
|
||||
`TestVendorEdge_Apache_PerVhostKeyOwnership_E2E`
|
||||
|
||||
When multiple vhosts share the same key file, ownership is
|
||||
preserved across rotation. When each vhost has its own key,
|
||||
per-file ownership is preserved per Bundle I Phase 5.
|
||||
|
||||
### Reload preserves connections
|
||||
|
||||
`TestVendorEdge_Apache_ReloadVsRestart_PreservesConnections_E2E`
|
||||
|
||||
In-flight TLS sessions survive `apachectl graceful` worker
|
||||
swap. Documented in `docs/deployment-atomicity.md`.
|
||||
|
||||
### SNI server_name binding
|
||||
|
||||
`TestVendorEdge_Apache_SNIServerNameDeployBindsCorrect_E2E`
|
||||
|
||||
When deploy specifies `server_name` metadata, connector targets
|
||||
the matching `<VirtualHost>` block.
|
||||
|
||||
### Cert chain ordering
|
||||
|
||||
`TestVendorEdge_Apache_ChainOrderingNormalized_E2E`
|
||||
|
||||
Apache requires leaf cert FIRST in `SSLCertificateFile` (or
|
||||
chain in `SSLCertificateChainFile`). Connector preserves operator-
|
||||
supplied ordering across rotation.
|
||||
|
||||
## V3-Pro deferrals
|
||||
|
||||
- Apache 2.6 (when it ships LTS).
|
||||
- mod_md (Apache's built-in ACME) interop.
|
||||
|
||||
## Related docs
|
||||
|
||||
- [Atomic deploy + post-verify + rollback](deployment-atomicity.md)
|
||||
- [Vendor compatibility matrix](deployment-vendor-matrix.md)
|
||||
Reference in New Issue
Block a user