internetee-registry/config
oleghasjanov 5f8660adec # Add CSR parameters validation
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.
2025-05-14 13:47:02 +03:00
..
environments Move throttling feature from gem back to the app 2022-10-28 14:00:18 +03:00
initializers refactoring 2025-04-22 11:18:18 +03:00
locales # Add CSR parameters validation 2025-05-14 13:47:02 +03:00
application.rb Corrected test errors 2023-03-16 12:32:02 +02:00
application.yml.sample added breakline 2025-04-01 12:34:03 +03:00
boot.rb Use require_relative where possible 2020-05-29 16:28:57 +03:00
cable.yml added demo env to registry 2021-12-13 15:08:37 +02:00
credentials.yml.enc added encoder for billing request 2022-05-11 11:17:47 +03:00
database.yml.sample added demo env to registry 2021-12-13 15:08:37 +02:00
database_development.yml.sample added demo env to registry 2021-12-13 15:08:37 +02:00
database_registrant.yml.sample added demo env to registry 2021-12-13 15:08:37 +02:00
database_travis.yml added demo env to registry 2021-12-13 15:08:37 +02:00
deploy.rb.sample Remove legacy que 2022-04-06 11:20:27 +03:00
environment.rb Upgrade to Rails 5.0 2019-11-15 15:26:33 +02:00
newrelic.yml Merge pull request #2238 from internetee/add-new-demo-env 2021-12-29 17:06:43 +02:00
puma.rb Pump rails version, fix tests 2020-02-05 12:43:25 +05:00
routes.rb feat: improve certificate download extensions 2025-04-16 11:47:52 +03:00
schedule.rb updated tests 2022-02-09 15:15:08 +02:00
secrets.yml added demo env to registry 2021-12-13 15:08:37 +02:00
sidekiq.yml Increase sidekiq concurrency 2021-04-12 17:22:36 +05:00
spring.rb Pump rails version, fix tests 2020-02-05 12:43:25 +05:00
storage.yml Binaries / New configs from Rails 5.2 app:update 2020-04-15 09:19:43 +03:00