Skip to content
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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

touhidurabir
Copy link
Member

@touhidurabir touhidurabir marked this pull request as ready for review May 3, 2024 13:40
Copy link
Member

@asmecher asmecher left a 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
Copy link
Member

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" />
Copy link
Member

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.

Copy link
Member Author

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 ?

Copy link
Member

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants