-
Notifications
You must be signed in to change notification settings - Fork 900
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pkp/pkp-lib#9895 app key and encryption service integration #4257
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some small rearrangement, thanks!
; cipher = 'aes-256-cbc' | ||
|
||
; Define should the cookie at user's end need to be encrypted | ||
; Enabling/Disbaling will force all user to re-login |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
*Disabling
@@ -13,6 +13,7 @@ | |||
|
|||
<install version="3.5.0.0"> | |||
<code function="checkPhpVersion" /> | |||
<code function="addAppKey" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be added as a migration, not a <code ...>
addition in the Upgrade
class.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@asmecher I understand it should part of upgrade and need to moved to upgrade class but I am confused about the migration part . I does not modify/update any DB tables but update the config.inc.php to add a unique app key if the app_key
variable defined/set in the config.inc.php
file . thats why it's added as <code ...>
to run. or I am misunderstanding something ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The <code ...>
pattern leads to accumulating cruft in the Upgrade
class, so we're using Migration classes instead for new code. Migrations are good for whatever, not just database schema adaptations!
for pkp/pkp-lib#9895