index
int64
0
0
repo_id
stringclasses
829 values
file_path
stringlengths
34
254
content
stringlengths
6
5.38M
0
code_files/vets-api-private/config
code_files/vets-api-private/config/form_profile_mappings/10182.yml
nonPrefill: veteranSsnLastFour: [identity_information, ssn_last_four] veteranVaFileNumberLastFour: [va_file_number_last_four]
0
code_files/vets-api-private/config
code_files/vets-api-private/config/form_profile_mappings/22-10203.yml
veteranFullName: [identity_information, full_name] veteranSocialSecurityNumber: [identity_information, ssn] homePhone: [contact_information, us_phone] mobilePhone: [contact_information, mobile_phone] veteranAddress: [contact_information, address] email: [contact_information, email] schoolName: [school_information, name...
0
code_files/vets-api-private/config
code_files/vets-api-private/config/form_profile_mappings/21-526EZ.yml
veteran: [veteran_contact_information, veteran] disabilities: [rated_disabilities_information, rated_disabilities] servicePeriods: [military_information, service_periods] reservesNationalGuardService: obligationTermOfServiceDateRange: [military_information, latest_guard_reserve_service_period] bankAccountType: [payme...
0
code_files/vets-api-private/config
code_files/vets-api-private/config/form_profile_mappings/26-4555.yml
veteran: fullName: [identity_information, full_name] ssn: [identity_information, ssn] dateOfBirth: [identity_information, date_of_birth] mobilePhone: [contact_information, mobile_phone] homePhone: [contact_information, home_phone] email: [contact_information, email] address: [contact_information, address]
0
code_files/vets-api-private/config
code_files/vets-api-private/config/form_profile_mappings/22-5495.yml
relativeDateOfBirth: [identity_information, date_of_birth] relativeFullName: [identity_information, full_name] relativeSocialSecurityNumber: [identity_information, ssn] toursOfDuty: [military_information, tours_of_duty] currentlyActiveDuty: [military_information, currently_active_duty]
0
code_files/vets-api-private/config
code_files/vets-api-private/config/form_profile_mappings/21-686C.yml
veteranFullName: [veteran_information, veteran_full_name] veteranAddress: [veteran_information, veteran_address] veteranEmail: [veteran_information, veteran_email] veteranSocialSecurityNumber: [veteran_information, veteran_social_security_number] vaFileNumber: [veteran_information, va_file_number] maritalStatus: [veter...
0
code_files/vets-api-private/config
code_files/vets-api-private/config/form_profile_mappings/FORM-MOCK-AE-DESIGN-PATTERNS.yml
data: attributes: veteran: address: addressLine1: [contact_information, address, street] addressLine2: [contact_information, address, street2] addressLine3: [street3] city: [contact_information, address, city] stateCode: [contact_information, address, state] z...
0
code_files/vets-api-private/config
code_files/vets-api-private/config/form_profile_mappings/21-22A.yml
personalInformation: fullName: [identity_information, full_name] dateOfBirth: [identity_information, date_of_birth] ssn: [identity_information, ssn] contactInformation: email: [contact_information, email] address: [contact_information, address] primaryPhone: [contact_information, us_phone] militaryInformati...
0
code_files/vets-api-private/config
code_files/vets-api-private/config/form_profile_mappings/22-5490.yml
relativeDateOfBirth: [identity_information, date_of_birth] relativeFullName: [identity_information, full_name] relativeSocialSecurityNumber: [identity_information, ssn] toursOfDuty: [military_information, tours_of_duty] currentlyActiveDuty: [military_information, currently_active_duty]
0
code_files/vets-api-private/config
code_files/vets-api-private/config/form_profile_mappings/21P-530EZ.yml
claimant_full_name: [identity_information, full_name] claimant_address: [contact_information, address] claimant_phone: [contact_information, us_phone] claimant_email: [contact_information, email]
0
code_files/vets-api-private/config
code_files/vets-api-private/config/form_profile_mappings/1010ez.yml
veteran_full_name: [identity_information, full_name] gender: [identity_information, gender] veteranDateOfBirth: [identity_information, date_of_birth] veteranSocialSecurityNumber: [identity_information, ssn] homePhone: [contact_information, us_phone] veteranAddress: [contact_information, address] email: [contact_informa...
0
code_files/vets-api-private/config
code_files/vets-api-private/config/form_profile_mappings/10-10EZR.yml
veteran_full_name: [identity_information, full_name] veteranSocialSecurityNumber: [identity_information, ssn] gender: [identity_information, gender] veteranDateOfBirth: [identity_information, date_of_birth] homePhone: [contact_information, us_phone] veteranAddress: [contact_information, address] email: [contact_informa...
0
code_files/vets-api-private/config
code_files/vets-api-private/config/form_profile_mappings/28-1900.yml
veteranInformation: fullName: [identity_information, full_name] ssn: [identity_information, ssn] dob: [identity_information, date_of_birth] veteranAddress: [contact_information, address] mainPhone: [contact_information, us_phone] cellPhone: [contact_information, mobile_phone] email: [contact_information, email]
0
code_files/vets-api-private/config
code_files/vets-api-private/config/form_profile_mappings/22-0994.yml
applicantFullName: [identity_information, full_name] applicantGender: [identity_information, gender] dateOfBirth: [identity_information, date_of_birth] applicantSocialSecurityNumber: [identity_information, ssn] dayTimePhone: [contact_information, us_phone] nightTimePhone: [contact_information, mobile_phone] mailingAddr...
0
code_files/vets-api-private/config
code_files/vets-api-private/config/form_profile_mappings/26-1880.yml
fullName: [identity_information, full_name] dateOfBirth: [identity_information, date_of_birth] applicantAddress: [contact_information, address] contactPhone: [contact_information, us_phone] contactEmail: [contact_information, email] periodsOfService: [military_information, tours_of_duty] currentlyActiveDuty: [military_...
0
code_files/vets-api-private/config
code_files/vets-api-private/config/form_profile_mappings/22-0993.yml
claimant_full_name: [identity_information, full_name] claimant_social_security_number: [identity_information, ssn]
0
code_files/vets-api-private/config
code_files/vets-api-private/config/form_profile_mappings/FORM-UPLOAD.yml
veteran: fullName: [identity_information, full_name] ssn: [identity_information, ssn] vaFileNumber: [veteran_information, va_file_number] phoneNumber: [contact_information, us_phone] address: [contact_information, address] email: [contact_information, email]
0
code_files/vets-api-private/config
code_files/vets-api-private/config/form_profile_mappings/5655.yml
personalIdentification: ssn: [identity_information, ssn_last_four] fileNumber: [va_file_number_last_four] personalData: veteranFullName: [identity_information, full_name] address: [contact_information, address] telephoneNumber: [contact_information, us_phone] emailAddress: [contact_information, email] dat...
0
code_files/vets-api-private/config
code_files/vets-api-private/config/form_profile_mappings/21P-0969.yml
email: [contact_information, email] phone: [contact_information, us_phone] nonPrefill: veteranSocialSecurityNumber: [identity_information, ssn] veteranVaFileNumber: [va_file_number]
0
code_files/vets-api-private/config
code_files/vets-api-private/config/form_profile_mappings/686C-674-V2.yml
veteranInformation: fullName: first: [identity_information, full_name, first] last: [identity_information, full_name, last] middle: [identity_information, full_name, middle] ssn: [identity_information, ssn] birthDate: [identity_information, date_of_birth] veteranContactInformation: veteranAddress: ...
0
code_files/vets-api-private/config
code_files/vets-api-private/config/form_profile_mappings/40-10007.yml
application: claimant: address: [contact_information, address] dateOfBirth: [identity_information, date_of_birth] name: [identity_information, full_name] ssn: [identity_information, ssn] email: [contact_information, email] phoneNumber: [contact_information, us_phone]
0
code_files/vets-api-private/config
code_files/vets-api-private/config/form_profile_mappings/FEEDBACK-TOOL.yml
address: [contact_information, address] serviceBranch: [military_information, last_service_branch] fullName: [identity_information, full_name] applicantEmail: [contact_information, email] phone: [contact_information, us_phone] serviceDateRange: from: [military_information, last_entry_date] to: [military_information...
0
code_files/vets-api-private/config
code_files/vets-api-private/config/form_profile_mappings/28-1900-V2.yml
veteranInformation: fullName: [identity_information, full_name] ssn: [identity_information, ssn] dob: [identity_information, date_of_birth] veteranAddress: [contact_information, address] mainPhone: [contact_information, us_phone] cellPhone: [contact_information, mobile_phone] email: [contact_information, email]
0
code_files/vets-api-private/config
code_files/vets-api-private/config/form_profile_mappings/21-2680.yml
veteranInformation: veteranFullName: [identity_information, full_name] veteranDob: [identity_information, date_of_birth] phoneNumber: [contact_information, us_phone] email: [contact_information, email] veteranAddress: [contact_information, address] veteranSsn: [identity_information, ssn]
0
code_files/vets-api-private/config/imagemagick
code_files/vets-api-private/config/imagemagick/policies/new-policy.xml
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE policy SYSTEM "policy.dtd"> <policymap> <!-- Updated resource limits --> <policy domain="resource" name="width" value="32KP"/> <policy domain="resource" name="height" value="32KP"/> <policy domain="resource" name="area" value="256MP"/> <!-- Additional resource ...
0
code_files/vets-api-private/config/health_care_application
code_files/vets-api-private/config/health_care_application/certs/VA-Internal-S2-RCA1-v1.pem
-----BEGIN CERTIFICATE----- MIIDhzCCAm+gAwIBAgIQKNXLQBAcYqRGJ+LYwX8c6TANBgkqhkiG9w0BAQsFADBK MRMwEQYKCZImiZPyLGQBGRYDZ292MRIwEAYKCZImiZPyLGQBGRYCdmExHzAdBgNV BAMTFlZBLUludGVybmFsLVMyLVJDQTEtdjEwHhcNMTYxMDI2MTYxMzIwWhcNMzYx MDI2MTYyMjU5WjBKMRMwEQYKCZImiZPyLGQBGRYDZ292MRIwEAYKCZImiZPyLGQB GRYCdmExHzAdBgNVBAMTFlZBLUludGVy...
0
code_files/vets-api-private/config/health_care_application
code_files/vets-api-private/config/health_care_application/certs/VA Internal Subordinate CA 1.pem
-----BEGIN CERTIFICATE----- MIIF2zCCBMOgAwIBAgIHPQAAAAAW2TANBgkqhkiG9w0BAQUFADBHMRMwEQYKCZIm iZPyLGQBGRYDZ292MRIwEAYKCZImiZPyLGQBGRYCdmExHDAaBgNVBAMTE1ZBIElu dGVybmFsIFJvb3QgQ0EwHhcNMTMwODE1MDA0NzA4WhcNMjMwODEzMDA0NzA4WjBQ MRMwEQYKCZImiZPyLGQBGRYDZ292MRIwEAYKCZImiZPyLGQBGRYCdmExJTAjBgNV BAMTHFZBIEludGVybmFsIFN1Ym9yZGlu...
0
code_files/vets-api-private/config/health_care_application
code_files/vets-api-private/config/health_care_application/certs/Betrusted Production SSP CA A1.pem
subject=/C=US/O=Betrusted US Inc/OU=SSP/OU=Betrusted Production SSP CA A1/CN=Betrusted Production SSP CA A1 issuer=/C=US/O=U.S. Government/OU=FPKI/CN=Federal Common Policy CA -----BEGIN CERTIFICATE----- MIIG6DCCBdCgAwIBAgICAZowDQYJKoZIhvcNAQELBQAwWTELMAkGA1UEBhMCVVMx GDAWBgNVBAoTD1UuUy4gR292ZXJubWVudDENMAsGA1UECxMERlBL...
0
code_files/vets-api-private/config/health_care_application
code_files/vets-api-private/config/health_care_application/certs/VA-Internal-S2-ICA1-v1.pem
-----BEGIN CERTIFICATE----- MIIEoDCCA4igAwIBAgITFAAAAARskyEu6lBaeQAAAAAABDANBgkqhkiG9w0BAQsF ADBKMRMwEQYKCZImiZPyLGQBGRYDZ292MRIwEAYKCZImiZPyLGQBGRYCdmExHzAd BgNVBAMTFlZBLUludGVybmFsLVMyLVJDQTEtdjEwHhcNMTYxMDI3MTY0MTA3WhcN MjYxMDI1MTY0MTA3WjBKMRMwEQYKCZImiZPyLGQBGRYDZ292MRIwEAYKCZImiZPy LGQBGRYCdmExHzAdBgNVBAMTFlZBLUlu...
0
code_files/vets-api-private/config/health_care_application
code_files/vets-api-private/config/health_care_application/certs/VA Healthcare Application - chain.pem
-----BEGIN CERTIFICATE----- MIIFZTCCBE2gAwIBAgIHPQACADR7gjANBgkqhkiG9w0BAQUFADBQMRMwEQYKCZIm iZPyLGQBGRYDZ292MRIwEAYKCZImiZPyLGQBGRYCdmExJTAjBgNVBAMTHFZBIElu dGVybmFsIFN1Ym9yZGluYXRlIENBIDEwHhcNMTYwNTA1MTcxMzMxWhcNMTcwNTA1 MTcxMzMxWjCBgTELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkRDMScwJQYDVQQKEx5E ZXBhcnRtZW50IG9mIFZldGVyYW5zIEFm...
0
code_files/vets-api-private/config/health_care_application
code_files/vets-api-private/config/health_care_application/certs/Federal Common Policy CA.pem
s:/C=US/O=U.S. Government/OU=FPKI/CN=Federal Common Policy CA i:/C=US/O=U.S. Government/OU=FPKI/CN=Federal Common Policy CA -----BEGIN CERTIFICATE----- MIIEYDCCA0igAwIBAgICATAwDQYJKoZIhvcNAQELBQAwWTELMAkGA1UEBhMCVVMx GDAWBgNVBAoTD1UuUy4gR292ZXJubWVudDENMAsGA1UECxMERlBLSTEhMB8GA1UE AxMYRmVkZXJhbCBDb21tb24gUG9saWN5IENBMB...
0
code_files/vets-api-private/config/health_care_application
code_files/vets-api-private/config/health_care_application/certs/VA Internal Root CA.pem
-----BEGIN CERTIFICATE----- MIIDfjCCAmagAwIBAgIQA399zv0pkaxAy6VO4im+hDANBgkqhkiG9w0BAQUFADBH MRMwEQYKCZImiZPyLGQBGRYDZ292MRIwEAYKCZImiZPyLGQBGRYCdmExHDAaBgNV BAMTE1ZBIEludGVybmFsIFJvb3QgQ0EwHhcNMDUxMjIyMTY0NDM1WhcNMjUxMjIy MTY1MzE5WjBHMRMwEQYKCZImiZPyLGQBGRYDZ292MRIwEAYKCZImiZPyLGQBGRYC dmExHDAaBgNVBAMTE1ZBIEludGVybmFs...
0
code_files/vets-api-private/config/health_care_application
code_files/vets-api-private/config/health_care_application/certs/Veterans Affairs Device CA B2.pem
-----BEGIN CERTIFICATE----- MIIHVTCCBj2gAwIBAgICHGAwDQYJKoZIhvcNAQEFBQAwgYgxCzAJBgNVBAYTAlVT MRkwFwYDVQQKExBCZXRydXN0ZWQgVVMgSW5jMQwwCgYDVQQLEwNTU1AxJzAlBgNV BAsTHkJldHJ1c3RlZCBQcm9kdWN0aW9uIFNTUCBDQSBBMTEnMCUGA1UEAxMeQmV0 cnVzdGVkIFByb2R1Y3Rpb24gU1NQIENBIEExMB4XDTA4MDgwNzE1MjQwMFoXDTE4 MDgwNzE1MjI0NlowcjETMBEGCgmSJomT...
0
code_files/vets-api-private/config/health_care_application
code_files/vets-api-private/config/health_care_application/wsdl/voa-voaSvc-xsd-1.xml
<?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:sch="http://jaxws.webservices.esr.med.va.gov/schemas" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://jaxws.webservices.esr.med.va.gov/schemas" targetNamespac...
0
code_files/vets-api-private/config/health_care_application
code_files/vets-api-private/config/health_care_application/wsdl/voa-voaSvc-xsd-2.xml
<!-- Published by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is Oracle JAX-WS 2.1.5. --> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:va="http://va.gov/schema/esr/voa/v1" xmlns:eeSummary="http://jaxws.webservices.esr.med.va.gov/schemas" targetNamespace="http://va.gov/schema/esr/voa/v1"...
0
code_files/vets-api-private/config/health_care_application
code_files/vets-api-private/config/health_care_application/wsdl/voa.wsdl
<!-- Published by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is Oracle JAX-WS 2.1.5. --> <definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:ns1="http://va.gov/schema/esr/voa/v1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNam...
0
code_files/vets-api-private/config
code_files/vets-api-private/config/initializers/application_controller_renderer.rb
# frozen_string_literal: true # Be sure to restart your server when you modify this file. # ActiveSupport::Reloader.to_prepare do # ApplicationController.renderer.defaults.merge!( # http_host: 'example.org', # https: false # ) # end
0
code_files/vets-api-private/config
code_files/vets-api-private/config/initializers/datadog.rb
# frozen_string_literal: true require 'datadog/appsec' envs = %w[development staging sandbox production] Datadog.configure do |c| if envs.include? Settings.vsp_environment # Namespace our app c.service = 'vets-api' c.env = Settings.vsp_environment unless ENV['DD_ENV'] c.version = AppInfo::GIT_REVIS...
0
code_files/vets-api-private/config
code_files/vets-api-private/config/initializers/backtrace_silencers.rb
# frozen_string_literal: true # Be sure to restart your server when you modify this file. # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces. # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ } # You can also remove all the silencers if...
0
code_files/vets-api-private/config
code_files/vets-api-private/config/initializers/httpi.rb
# frozen_string_literal: true # since the httpclient gem uses its own certificate store, force HTTPI to use :net_http HTTPI.adapter = :net_http
0
code_files/vets-api-private/config
code_files/vets-api-private/config/initializers/warden_github.rb
# frozen_string_literal: true module WardenGithubStrategyExtensions def authenticate! if scope == :sidekiq && session[:sidekiq_user].present? success!(session[:sidekiq_user]) redirect!(request.url) elsif scope == :coverband && session[:coverband_user].present? success!(session[:coverband_us...
0
code_files/vets-api-private/config
code_files/vets-api-private/config/initializers/flipper.rb
# frozen_string_literal: true require 'flipper' require 'flipper/adapters/active_record' require 'active_support/cache' require 'flipper/adapters/active_support_cache_store' require 'flipper/ui/action_patch' require 'flipper/instrumentation/event_subscriber' FLIPPER_FEATURE_CONFIG = YAML.safe_load(Rails.root.join('co...
0
code_files/vets-api-private/config
code_files/vets-api-private/config/initializers/loa.rb
# frozen_string_literal: true module LOA # LOA stands for Level of Assurance ONE = 1 TWO = 2 THREE = 3 # The AuthnContext values with "/vets" suffix are non-standard but # were used by ID.me to distinguish policies for Vets.gov from other # VA uses. IDME_LOA1_VETS = 'http://idmanagement.gov/ns/ass...
0
code_files/vets-api-private/config
code_files/vets-api-private/config/initializers/staccato.rb
# frozen_string_literal: true def Staccato.ga_collection_uri(*_args) URI("#{Settings.google_analytics.url}/collect") end
0
code_files/vets-api-private/config
code_files/vets-api-private/config/initializers/mime_types.rb
# frozen_string_literal: true # Add new mime types for use in respond_to blocks: Mime::Type.register 'application/vnd.geo+json', :geojson Mime::Type.register 'application/jwt', :jwt
0
code_files/vets-api-private/config
code_files/vets-api-private/config/initializers/filter_parameter_logging.rb
# frozen_string_literal: true # Be sure to restart your server when you modify this file. # Adding a key here unfilters ALL params with that name across ALL of vets-api. # Do NOT add keys that can contain PII/PHI/secrets. ALLOWLIST = %w[ action benefits_intake_uuid bpds_uuid call_location category claim_i...
0
code_files/vets-api-private/config
code_files/vets-api-private/config/initializers/okcomputer.rb
# frozen_string_literal: true OkComputer.mount_at = false
0
code_files/vets-api-private/config
code_files/vets-api-private/config/initializers/rails_semantic_logger_patch.rb
# frozen_string_literal: true # Unsubscribe from rails_semantic_logger's send_data notifications to prevent PII in filenames from being logged Rails.application.config.after_initialize do # Unsubscribe only rails_semantic_logger from send_data.action_controller notifications # to prevent logging of filenames that...
0
code_files/vets-api-private/config
code_files/vets-api-private/config/initializers/session_store.rb
# frozen_string_literal: true # Be sure to restart your server when you modify this file. Rails.application.config.session_store :cookie_store, key: '_vets_api_session'
0
code_files/vets-api-private/config
code_files/vets-api-private/config/initializers/sentry.rb
# frozen_string_literal: true # This file was previously config/initializers/raven.rb require 'sentry/event_scrubber' # This custom Transport class is need to log the error # https://github.com/getsentry/sentry-ruby/issues/1583r transport = Class.new(Sentry::HTTPTransport) do def send_data(data) super rescue...
0
code_files/vets-api-private/config
code_files/vets-api-private/config/initializers/wrap_parameters.rb
# frozen_string_literal: true # Be sure to restart your server when you modify this file. # This file contains settings for ActionController::ParamsWrapper which # is enabled by default. # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array. ActiveSupport.on_load(:action_con...
0
code_files/vets-api-private/config
code_files/vets-api-private/config/initializers/breakers.rb
# frozen_string_literal: true require 'bb/configuration' require 'breakers/statsd_plugin' require 'caseflow/configuration' require 'central_mail/configuration' require 'debt_management_center/debts_configuration' require 'decision_review/configuration' require 'vye/dgib/service' require 'dgi/automation/configuration' ...
0
code_files/vets-api-private/config
code_files/vets-api-private/config/initializers/bgs.rb
# frozen_string_literal: true require 'socket' Rails.application.reloader.to_prepare do # OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE BGS.configure do |config| config.application = Settings.bgs.application config.client_ip = Socket.ip_address_list.detect(&:ipv4_private?).ip_address config.cl...
0
code_files/vets-api-private/config
code_files/vets-api-private/config/initializers/rack_timeout.rb
# frozen_string_literal: true # Adds a global timeout for all requests if !Rails.env.test? && Settings.rack_timeout # @see https://github.com/zombocom/rack-timeout/blob/main/doc/settings.md Rails.application.configure do |config| config.middleware.insert_before( Rack::Runtime, Rack::Timeout, # Defa...
0
code_files/vets-api-private/config
code_files/vets-api-private/config/initializers/statsd.rb
# frozen_string_literal: true StatsD.logger = Logger.new 'log/statsd.log' if Rails.env.development? require 'caseflow/service' require 'central_mail/service' require 'evss/service' require 'gibft/service' require 'iam_ssoe_oauth/session_manager' require 'mpi/service' require 'saml/errors' require 'saml/responses/base...
0
code_files/vets-api-private/config
code_files/vets-api-private/config/initializers/aal.rb
# frozen_string_literal: true module AAL ONE = '1' TWO = '2' # Login.gov uses AAL for authentication standards LOGIN_GOV_AAL2 = 'http://idmanagement.gov/ns/assurance/aal/2' end
0
code_files/vets-api-private/config
code_files/vets-api-private/config/initializers/authn_context.rb
# frozen_string_literal: true module AuthnContext ID_ME = 'https://eauth.va.gov/csp/IDME' LOGIN_GOV = 'https://eauth.va.gov/csp/LOGINGOV' DSLOGON = 'https://eauth.va.gov/csp/IDME_DSL' MHV = 'https://eauth.va.gov/csp/IDME_MHV' EXACT = 'exact' MINIMUM = 'minimum' end
0
code_files/vets-api-private/config
code_files/vets-api-private/config/initializers/cookies_serializer.rb
# frozen_string_literal: true # Be sure to restart your server when you modify this file. # Specify a serializer for the signed and encrypted cookie jars. # Valid options are :json, :marshal, and :hybrid. Rails.application.config.action_dispatch.cookies_serializer = :marshal
0
code_files/vets-api-private/config
code_files/vets-api-private/config/initializers/rswag-ui.rb
# frozen_string_literal: true # For configuration options, see: # https://github.com/rswag/rswag/blob/master/README.md#customizing-the-swagger-ui # https://swagger.io/docs/open-source-tools/swagger-ui/usage/configuration/ Rswag::Ui.configure do |c| c.openapi_endpoint '/services/claims/docs/v1/api', 'Claims API V1 D...
0
code_files/vets-api-private/config
code_files/vets-api-private/config/initializers/app_info.rb
# frozen_string_literal: true module AppInfo GIT_REVISION = ENV.fetch('GIT_REVISION', 'MISSING_GIT_REVISION') GITHUB_URL = 'https://github.com/department-of-veterans-affairs/vets-api' end
0
code_files/vets-api-private/config
code_files/vets-api-private/config/initializers/sidekiq.rb
# frozen_string_literal: true require 'sidekiq_stats_instrumentation/client_middleware' require 'sidekiq_stats_instrumentation/server_middleware' require 'sidekiq/retry_monitoring' require 'sidekiq/error_tag' require 'sidekiq/semantic_logging' require 'sidekiq/set_request_id' require 'sidekiq/set_request_attributes' r...
0
code_files/vets-api-private/config
code_files/vets-api-private/config/initializers/jsonapi_serializer_blank_id_patch.rb
# frozen_string_literal: true module FastJsonapi module SerializationCore class_methods do def id_hash(id, record_type, default_return = false) # rubocop:disable Style/OptionalBooleanParameter if id.present? { id: id.to_s, type: record_type } elsif id == '' { id: '', typ...
0
code_files/vets-api-private/config
code_files/vets-api-private/config/initializers/integration_recorder.rb
# frozen_string_literal: true # This initializer has two parts. # Part 1. Overrides SecureRandom and is necessary in both the development and test environments. # It does not disable the normal behavior of SecureRandom in any way unless it is invoked. # Part 2 of this initializer introduces a Rack Middleware that help...
0
code_files/vets-api-private/config
code_files/vets-api-private/config/initializers/betamocks.rb
# frozen_string_literal: true unless Settings.vsp_environment == 'production' begin ERB.new(File.read(Settings.betamocks.services_config)).result rescue NoMethodError, ArgumentError raise ArgumentError, "Betamocks services_config error. Values in settings.yml aren't being interpolated correctly "...
0
code_files/vets-api-private/config
code_files/vets-api-private/config/initializers/shrine.rb
# frozen_string_literal: true require 'shrine' require 'shrine/storage/file_system' Rails.application.reloader.to_prepare do Shrine.storages = { cache: Shrine::Storage::FileSystem.new('tmp', prefix: 'uploads/cache'), # temporary. could be ebs? store: Shrine::Storage::FileSystem.new('tmp', prefix: 'uploads/s...
0
code_files/vets-api-private/config
code_files/vets-api-private/config/initializers/rgeo.rb
# frozen_string_literal: true RGeo::ActiveRecord::SpatialFactoryStore.instance.tap do |config| # In order to download rings from PSSG (drivetime bands) and decode them into polygons, # we need to register this spherical factory. The 'uses_lenient_assertions' config here # is particularly important, since it remo...
0
code_files/vets-api-private/config
code_files/vets-api-private/config/initializers/kms_encrypted.rb
# frozen_string_literal: true require 'kms_encrypted' ENV['KMS_KEY_ID'] ||= 'insecure-test-key' if Rails.env.development? || Rails.env.test? KmsEncrypted.key_id = ENV.fetch('KMS_KEY_ID', nil) Rails.application.reloader.to_prepare do KmsEncrypted::Model.prepend KmsEncryptedModelPatch end
0
code_files/vets-api-private/config
code_files/vets-api-private/config/initializers/renderers.rb
# frozen_string_literal: true ActionController::Renderers.add :geojson do |object, _options| self.content_type ||= 'application/vnd.geo+json' object.respond_to?(:to_json) ? object.to_json : object end ActionController::Renderers.add :csv do |obj, options| filename = options[:filename] || 'data' str = obj.resp...
0
code_files/vets-api-private/config
code_files/vets-api-private/config/initializers/console_filter_toggles.rb
# frozen_string_literal: true module ConsoleFilterStorage # We will assign constants here using const_set after initialization end module ConsoleFilterToggles def reveal! Rails.application.config.filter_parameters = [] ActiveRecord::Base.filter_attributes = [] ActiveRecord::Base.descendants.each do |...
0
code_files/vets-api-private/config
code_files/vets-api-private/config/initializers/01_redis.rb
# frozen_string_literal: true # environment specific redis host and port (see: config/redis.yml) REDIS_CONFIG = Rails.application.config_for(:redis).freeze # set the current global instance of Redis based on environment specific config $redis = if Rails.env.test? require 'mock_redis' MockRedis.new(url: REDI...
0
code_files/vets-api-private/config
code_files/vets-api-private/config/initializers/strong_migrations.rb
# frozen_string_literal: true # Mark existing migrations as safe StrongMigrations.start_after = 20201203143918 # rubocop:disable Style/NumericLiterals # Set timeouts for migrations # If you use PgBouncer in transaction mode, delete these lines and set timeouts on the database user StrongMigrations.lock_timeout = 10.s...
0
code_files/vets-api-private/config
code_files/vets-api-private/config/initializers/cookie_rotation.rb
# frozen_string_literal: true Rails.application.config.action_dispatch.cookies_rotations.tap do |cookies| config = Rails.application.config salt = config.action_dispatch.authenticated_encrypted_cookie_salt encrypted_cookie_cipher = config.action_dispatch.encrypted_cookie_cipher || 'aes-256-gcm' key_generator ...
0
code_files/vets-api-private/config
code_files/vets-api-private/config/initializers/freeze_schemas.rb
# frozen_string_literal: true %w[ 10-10EZ 10-10CG 10-10EZR ].each do |schema| VetsJsonSchema::SCHEMAS[schema] = IceNine.deep_freeze(VetsJsonSchema::SCHEMAS[schema]) end
0
code_files/vets-api-private/config
code_files/vets-api-private/config/initializers/saml.rb
# frozen_string_literal: true # rubocop:disable Layout/LineLength def saml_ssoe_cert_exists? !IdentitySettings.saml_ssoe.cert_path.nil? && File.file?(File.expand_path(IdentitySettings.saml_ssoe.cert_path)) end def saml_ssoe_key_exists? !IdentitySettings.saml_ssoe.key_path.nil? && File.file?(File.expand_path(Iden...
0
code_files/vets-api-private/config
code_files/vets-api-private/config/initializers/statsd_instrument_monkeypatch.rb
# frozen_string_literal: true require 'statsd-instrument' unless Object.const_defined?(:StatsD) # This monkeypatch is used to fix StatsD metrics that were breaking following the vets-api EKS transition. # Prior to the transition, there was a service that substituted dots in StatsD keys with underscores. # After the E...
0
code_files/vets-api-private/config
code_files/vets-api-private/config/initializers/sign_in_service.rb
# frozen_string_literal: true SignInService::Sts.configure do |config| config.base_url = IdentitySettings.sign_in.sts_client.base_url end
0
code_files/vets-api-private/config
code_files/vets-api-private/config/initializers/clamav.rb
# frozen_string_literal: true if Rails.env.development? # If running ClamAV through container # Update host and port on settings.local.yml to override the socket ENV['CLAMD_TCP_HOST'] = Settings.clamav.host ENV['CLAMD_TCP_PORT'] = Settings.clamav.port # If running ClamAV natively (via daemon) # Uncomment ...
0
code_files/vets-api-private/config
code_files/vets-api-private/config/initializers/config.rb
# frozen_string_literal: true # ENVs from Parent Helm Chart are all lowercase. # To keep with the convention, they should all # be upcased in order to not disrupt other ENVs. # This code adds an upcased version # ENV['example'] => ENV['EXAMPLE] ENV.each_key do |key| next unless key == key.downcase # WARNING: chan...
0
code_files/vets-api-private/config
code_files/vets-api-private/config/initializers/rack_attack.rb
# frozen_string_literal: true class Rack::Attack # we're behind a load balancer and/or proxy, which is what request.ip returns class Request < ::Rack::Request def remote_ip @remote_ip ||= (env['X-Real-Ip'] || ip).to_s end end Rack::Attack.cache.store = Rack::Attack::StoreProxy::RedisStoreProxy.n...
0
code_files/vets-api-private/config
code_files/vets-api-private/config/initializers/combine_pdf_log_patch.rb
# frozen_string_literal: true # Suppresses CombinePDF warning "Couldn't connect reference for" and "Form data might be lost" # more info: https://github.com/department-of-veterans-affairs/vets-api/pull/16705 if Rails.env.test? CombinePDF::PDFParser.prepend(Module.new do def warn(*msgs, **) msgs.reject! { ...
0
code_files/vets-api-private/config
code_files/vets-api-private/config/initializers/benefits_intake_submission_status_handlers.rb
# frozen_string_literal: true # Ensure the all the handlers are registered for BenefitsIntake::SubmissionStatusJob # require_all uses application root, not autoload paths require_all 'lib/lighthouse/benefits_intake/submission_handler' require 'lighthouse/benefits_intake/sidekiq/submission_status_job' # Registers ha...
0
code_files/vets-api-private/config
code_files/vets-api-private/config/initializers/inflections.rb
# frozen_string_literal: true ActiveSupport::Inflector.inflections do |inflect| inflect.acronym 'AAID' inflect.acronym 'AAL' # MHV Account Activity Log inflect.acronym 'AWS' inflect.acronym 'BB' inflect.acronym 'BGS' inflect.acronym 'BID' inflect.acronym 'BPDS' inflect.acronym 'CARMA' inflect.acronym...
0
code_files/vets-api-private/config
code_files/vets-api-private/config/initializers/vbms.rb
# frozen_string_literal: true # OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE if Settings.vbms.present? ENV['CONNECT_VBMS_BASE_URL'] = Settings.vbms.url ENV['CONNECT_VBMS_CERT'] = Settings.vbms.cert ENV['CONNECT_VBMS_CLIENT_KEYFILE'] = Settings.vbms.client_keyfile ENV['CONNECT_VBMS_KEYPASS'] = Settings...
0
code_files/vets-api-private/config
code_files/vets-api-private/config/initializers/veteran_facing_services_notification_callbacks.rb
# frozen_string_literal: true # Ensure the Callback class for any VANotify Notification is loaded # require_all uses application root, not autoload paths require_all 'lib/veteran_facing_services/notification_callback'
0
code_files/vets-api-private/config
code_files/vets-api-private/config/initializers/override_redirect_to_logging.rb
# frozen_string_literal: true require 'action_controller/log_subscriber' # tricky bit of code that removes existing subcribers def unsubscribe(log_subscriber, event_component) ActiveSupport::LogSubscriber.log_subscribers.each do |subscriber| case subscriber when log_subscriber ActiveSupport::Notificat...
0
code_files/vets-api-private/config
code_files/vets-api-private/config/initializers/rubyzip.rb
# frozen_string_literal: true require 'zip' Rails.application.reloader.to_prepare do Zip.continue_on_exists_proc = true end
0
code_files/vets-api-private/config
code_files/vets-api-private/config/initializers/ial.rb
# frozen_string_literal: true module IAL ONE = 1 TWO = 2 # Login.gov uses IAL for authentication standards LOGIN_GOV_IAL1 = 'http://idmanagement.gov/ns/assurance/ial/1' LOGIN_GOV_IAL2 = 'http://idmanagement.gov/ns/assurance/ial/2' # Some inbound logins originate from Salesforce with '2fa'/'mfa' appen...
0
code_files/vets-api-private/config
code_files/vets-api-private/config/initializers/date_formats.rb
# frozen_string_literal: true # These entries represent the possible formats for a Date for a to_s call Date::DATE_FORMATS[:iso8601] = '%Y-%m-%d' Date::DATE_FORMATS[:number_iso8601] = '%Y%m%d' Date::DATE_FORMATS[:datetime_iso8601] = '%FT%T%:z' Date::DATE_FORMATS[:month_day_year] = '%b %d, %Y'
0
code_files/vets-api-private/config
code_files/vets-api-private/config/initializers/faraday_middleware.rb
# frozen_string_literal: true require 'common/client/middleware/request/remove_cookies' require 'common/client/middleware/request/immutable_headers' require 'hca/soap_parser' Rails.application.reloader.to_prepare do Faraday::Middleware.register_middleware remove_cookies: Common::Client::Middleware::Request::RemoveC...
0
code_files/vets-api-private/config
code_files/vets-api-private/config/initializers/committee.rb
# frozen_string_literal: true require 'committee' require 'committee/unprocessable_entity_error' schema_path = Rails.public_path.join('openapi.json').to_s ERROR_HANDLER = lambda do |ex, env| req = Rack::Request.new(env) Rails.logger.warn( '[Committee] Request validation failed', { path: req.path, ...
0
code_files/vets-api-private/config
code_files/vets-api-private/config/initializers/lockbox.rb
# frozen_string_literal: true require 'lockbox' Lockbox.master_key = Settings.lockbox.master_key Lockbox.default_options = { padding: true }
0
code_files/vets-api-private
code_files/vets-api-private/rakelib/vbms.rake
# frozen_string_literal: true require 'vbms' namespace :vbms do desc 'connection testing' task initialize_upload: :environment do # This is reliant on the following Env vars being set via the settings file # CONNECT_VBMS_BASE_URL # CONNECT_VBMS_CACERT # CONNECT_VBMS_CERT # CONNECT_VBMS_CLIENT_K...
0
code_files/vets-api-private
code_files/vets-api-private/rakelib/load_test.rake
# frozen_string_literal: true namespace :load_test do # usage: bundle exec rake 'load_test:hca_ee[1235]' desc 'Load test the HCA Enrollment & Eligibility API' task :hca_ee, [:icn] => [:environment] do |_, args| require './rakelib/support/vic_load_test' require 'hca/enrollment_eligibility/service' Lo...
0
code_files/vets-api-private
code_files/vets-api-private/rakelib/decision_reviews_recovered_failures_remediation.rake
# frozen_string_literal: true require 'csv' require 'stringio' namespace :decision_reviews do namespace :remediation do # Process appeal submission error statuses def self.process_appeal_submissions(appeal_submission_ids, dry_run, output_buffer = nil) # rubocop:disable Metrics/MethodLength # Helper to...
0
code_files/vets-api-private
code_files/vets-api-private/rakelib/redis.rake
# frozen_string_literal: true namespace :redis do desc 'Flush Vets.gov User/Sessions' task flush_session: %i[flush_session_store flush_users_store] desc 'Flush RedisStore: Session' task flush_session_store: :environment do namespace = Session.new.redis_namespace.namespace flush_keys(namespace) end ...
0
code_files/vets-api-private
code_files/vets-api-private/rakelib/extract_pdf_fields.rake
# frozen_string_literal: true require 'pdf_forms' namespace :pdf do desc 'Extract PDF form field metadata and save them to a Ruby file. ' \ 'Used when adding a new form to PdfFill::Filler' \ 'Example: bundle exec rake pdf:extract_fields\[lib/pdf_fill/forms/pdfs/10-10EZ.pdf\]' \ 'generated file ...
0
code_files/vets-api-private
code_files/vets-api-private/rakelib/github_stats.rake
# frozen_string_literal: true STATSD_METRIC = 'tasks.github_stats_scraper.duration' REPOS = %w[ vets-api vets-website ].freeze namespace :github_stats do desc 'Hit the Github API and grab data on open PRs' task get_open_prs: :environment do # call the Github API and pass along the response body def g...
0
code_files/vets-api-private
code_files/vets-api-private/rakelib/config_settings.rake
# frozen_string_literal: true require 'yaml' VALID_ENV_REGEX = /<%= ENV\['[A-Z0-9_]+(?:__[A-Z0-9_]+)*'\] %>/ namespace :settings do task validate: %i[validate_alphabetical validate_key_set validate_env_convention] task validate_alphabetical: :environment do yaml_files = [ 'config/settings.yml', ...
0
code_files/vets-api-private
code_files/vets-api-private/rakelib/backfill_guid_for_digital_dispute_submissions.rake
# frozen_string_literal: true desc 'Backfill guid column for digital_dispute_submissions records' task backfill_guid_for_digital_dispute_submissions: :environment do def null_guid_count_message '[BackfillGuidForDigitalDisputeSubmissions] digital_dispute_submissions with guid: nil, ' \ "count: #{guid_nil.co...
0
code_files/vets-api-private
code_files/vets-api-private/rakelib/remove_va1995s_records.rake
# frozen_string_literal: true namespace :VA1995s do desc 'Remove temporary/stale records no longer in use' task remove_old_records: :environment do SavedClaim.where(type: 'SavedClaim::EducationBenefits::VA1995s').delete_all end end