Module: IBMDBPassword
- Defined in:
- lib/active_record/connection_adapters/ibm_db_password.rb
Overview
Sample yaml files 1) config/database.yml – standard config/database.yml loaded by Rails automatic 2) /path/password.yml – operator maintained user/password/attributes file (QTMHHTTP access only) 3) /path/key.yml – operator maintained passkey file used in runtime decode password (QTMHHTTP access only)
file 1) standard database.yml (key=“development” RAILS_ENV) =====
development:
adapter: ibm_db
database: LP0364D
username: DB2
pwd_yaml: /path/password.yml
production:
adapter: ibm_db
database: LP0364D
username: DB2
pwd_yaml: /path/password.yml
test:
adapter: ibm_db
database: LP0364D
username: DB2
pwd_yaml: /path/password.yml
file 2) password.yml (key=“username”)=====
key_yaml: /path/key.yml DB2:
pwd_enc: "YiYNfodSh5MGZVX7TXktEPSrnVlrAPjoyzzn48SdC/k=%0A"
... possibly other attributes custom DB2, db2_yaml.yml, etc
user2:
pwd_enc: "YiYNfodSh5MGOHBOYFLINROCKIlrAPjoyzzn48SdC/k=%0A"
... possibly other attributes custom DB2, db2_yaml.yml, etc
file 3) key.yml (key=“*ALL”) ===== (used runtime)
pwd_key: “YIPS4321AAAAAAAAAAAAAAA132424245”
... possibly other attributes, DB2, etc ...
Defined Under Namespace
Classes: Encrypt
Constant Summary collapse
- PWD_TYPE =
encryption type
"aes-256-cbc"
- PWD_KEY =
"YIPS4321AAAAAAAAAAAAAAA132424245"