Skip to content

Commit

Permalink
Set ActiveRecord encryption keys
Browse files Browse the repository at this point in the history
  • Loading branch information
colby-swandale committed Nov 1, 2024
1 parent 591b1a8 commit 00ef0ee
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
5 changes: 4 additions & 1 deletion config/deploy/production/secrets.ejson
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@
"github_app_id": "EJ[1:zFzdMbOJMc0969knLIhVeYUJh1oPfj6QPGoGClZ2jms=:dkDD7o7eQ0D2O9e012lXn07d4zilt7ou:jmR05XNWkK8sCLqeH4psmXdoQ5gb]",
"github_installation_id": "EJ[1:zFzdMbOJMc0969knLIhVeYUJh1oPfj6QPGoGClZ2jms=:XXEmmIWvA7lUfNS2X5fI66ai4PGEpnuT:83yvniyv9rnbFCG4y7laPM4LVLPojJY=]",
"github_webhook_secret": "EJ[1:zFzdMbOJMc0969knLIhVeYUJh1oPfj6QPGoGClZ2jms=:0ZyMpTd5rIhwrKcJgHMpxPPTs40ngSzX:7/XwrqiCoGMrzw8NBrwNIGtpk7RkZxPedWVeVkAIugGqEZCiB2Z9FH4s2i5+LN6boN6LfodOUF8=]",
"github_private_key": "EJ[1:zFzdMbOJMc0969knLIhVeYUJh1oPfj6QPGoGClZ2jms=:7w7vtIR+tKaP2WKXaksspLFBc9P6GjAI:SEBX+AIeqCWOBoOZDSVjOIwnqlRLP3tJmrr2cBmv5AX0OBa4nXy0SuNF4pLcKBQ8/f6ErtYN1js4bCMhyAJrpRJoHH3JHOX9DnCk3X2yFkOk7oJ87mvsSuwBG3GHWTK46xjrYtO25xMcjkKoTbUgEq1nO6ObU693Qv3W2Uv//COlzm0NGFE049SIMFIboxX6/OIb7eGTTL6OhdoNTBtPw49w2DqwOSknF0KoAb8knXbwlNBJJxWEK3HxafsQ8g9xZ/ADUiB0/k6WQWlJQIhv2LVajvXK76pQMFT9WOSOY5kdaVEVpT9+Y6E0byJ82TWb+Dt4g7qCfdEAudaigvZD6J8vKy3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wJIiMurrAsJN9lhPWIiuSIi7zHhykAg/JgrE2k=:ZZ+Ca/4GkkPx/3kmvOZ1LfPsvTMxAuZh:6m3BHI6OSKKW5RjyEB6nhhxIDVTbHzuq2F5hA/36flOVH6s3zxmn6CdV1e+xkT/Y8H3tZMB5WsqkYVCJS+GudQ56lGPA/i8aCEi7LXIClbc=]",
"active_record_encryption_deterministic_key": "EJ[1:Qmr5gwJIiMurrAsJN9lhPWIiuSIi7zHhykAg/JgrE2k=:mHqcPXVYOEhiDnRVchGTSaNhS2Tz/ZlQ:uotrPOzSESya+2A3QzMx6AVg7/06a72r+5WlWjrzg5XC6DcI58sO70Yp7aQuyd1cxSVLjh5SMenAYwaGBw4OXWtlbHkz7JG34t6wvaiJrz4=]",
"active_record_encryption_key_derivation_salt": "EJ[1:Qmr5gwJIiMurrAsJN9lhPWIiuSIi7zHhykAg/JgrE2k=:rH+5vMz0z3ukAN+DF2JxZxpryZwMIiZ4:PeUvySslYjscyYlN9q+DA6hEJvdkrn7oKpzPIg68bEsFMd/LpuVkP3Q6kmd/o2TEostuAY9ycGGUNF3l/4ie/o+OU+rsO3/dGjtky2PoM4I=]"
}
}
}
Expand Down
15 changes: 15 additions & 0 deletions config/deploy/production/sidekiq.yaml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,21 @@ spec:
secretKeyRef:
name: production
key: github_private_key
- name: ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY
valueFrom:
secretKeyRef:
name: production
key: active_record_encryption_primary_key
- name: ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY
valueFrom:
secretKeyRef:
name: production
key: active_record_encryption_deterministic_key
- name: ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT
valueFrom:
secretKeyRef:
name: production
key: active_record_encryption_key_derivation_salt
securityContext:
privileged: false
volumeMounts:
Expand Down
4 changes: 4 additions & 0 deletions config/secrets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ test:
oauth:
redis_url: redis://localhost
production:
active_record_encryption:
primary_key: <%= ENV['ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY'] %>
deterministic_key: <%= ENV['ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY'] %>
key_derivation_salt: <%= ENV['ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT'] %>
secret_key_base: <%= ENV['SECRET_KEY_BASE'] %>
host: <%= ENV['SHIPIT_HOST'] %>
github_api:
Expand Down

0 comments on commit 00ef0ee

Please sign in to comment.