Skip to content

[#2922] Add KvK API setup configuration and cert management - #2923

Draft
swrichards wants to merge 8 commits into
developfrom
2922-kvk-setup-configuration
Draft

[#2922] Add KvK API setup configuration and cert management#2923
swrichards wants to merge 8 commits into
developfrom
2922-kvk-setup-configuration

Conversation

@swrichards

Copy link
Copy Markdown
Collaborator

Closes: #2922.

bin/fetch_kvk_cert_chain.sh regenerates kvk-chain.pem from the
official KVK API bundle. Pinning the chain lets it be validated and
diffed independently of a code deploy.
Runs on push/PR touching the chain and weekly on a schedule, so an
upcoming expiry is caught even without a code change.
Exposed as a button on the KvK config admin via the
with_config_checks decorator, mirroring the openzaak fetch_cases
check.
legalSubjectID/aanvrager.kvk and vestiging on the eherkenning-* test
users now match the KvK basisprofielen mock ("Test BV Donald"), so a
local eHerkenning login resolves to a company the KvK check/client can
actually look up.
Wire up a KvKConfigurationStep (api_root/api_key) and enable it for the
local Docker stack, pointed at the real KvK test sandbox since no local
mock exists for it.
…check

Previously only hit basisprofielen. Now also calls
retrieve_rsin_with_kvk, get_all_company_branches, and
get_vestigingsprofiel for the first branch found, mirroring the exact
sequence real login/branch-switch code paths use.
…enning

oidc-eherkenning being enabled only wires up the OIDC client; the
"Zakelijk" tab and eHerkenning button on the login page are gated
separately by SiteConfiguration.eherkenning_enabled, which the
site_config step was resetting to its False default every run.
Not used anywhere and easily confused with eherkenning-vestiging;
that one already carries the same claims plus vestiging.
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.

Setup config and cert management for KvK service

1 participant