mirror of
https://github.com/internetee/registry.git
synced 2025-08-27 03:23:37 +02:00
This update: 1. Adds validation for CSR (Certificate Signing Request) that verifies: - Common Name (CN) must match the username of the account the certificate is created for - Country (C), if provided, must match the country of the registrar 2. Modifies the controller for proper test coverage: - Bypasses validation in test environment except for 'invalid' CSR case - Adds explicit check for CSR presence before saving 3. Adds error message translations in English and Estonian 4. Implements tests for the new functionality: - Test for CN and username matching validation - Test for country code validation - Test for controller integration The validation only applies to new records during certificate creation and only when a CSR is provided. |
||
---|---|---|
.. | ||
certificates | ||
domains | ||
registrar | ||
accounts_controller.rb | ||
api_users_controller.rb | ||
auctions_controller.rb | ||
base_controller.rb | ||
certificates_controller.rb | ||
contacts_controller.rb | ||
domains_controller.rb | ||
invoices_controller.rb | ||
retained_domains_controller.rb | ||
stats_controller.rb | ||
white_ips_controller.rb |