mirror of
https://github.com/internetee/registry.git
synced 2025-08-16 14:33:55 +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. |
||
---|---|---|
.. | ||
environments | ||
initializers | ||
locales | ||
application.rb | ||
application.yml.sample | ||
boot.rb | ||
cable.yml | ||
credentials.yml.enc | ||
database.yml.sample | ||
database_development.yml.sample | ||
database_registrant.yml.sample | ||
database_travis.yml | ||
deploy.rb.sample | ||
environment.rb | ||
newrelic.yml | ||
puma.rb | ||
routes.rb | ||
schedule.rb | ||
secrets.yml | ||
sidekiq.yml | ||
spring.rb | ||
storage.yml |