Skip to content

Commit bab0369

Browse files
authored
Document password migration (#346)
1 parent 5d0df00 commit bab0369

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

seqware-distribution/docs/site/content/docs/4-metadb.md

+21
Original file line numberDiff line numberDiff line change
@@ -118,3 +118,24 @@ Third, you'll probably want to create the initial file-provenance-report (note,
118118
Optionally, you may want to setup database comments if you wish to explore the database schema:
119119

120120
psql -U seqware seqware_meta_db < comments_on_tables.sql
121+
122+
## Upgrading From 1.0.X to 1.2.X
123+
124+
SeqWare web service passwords starting with 1.2.X are salted and encrypted. To perform this migration, run the following utility.
125+
126+
java -jar seqware-distribution/target/seqware-distribution-<%= seqware_release_version %>-full.jar --plugin net.sourceforge.seqware.pipeline.plugins.RegistrationMigrationPlugin
127+
128+
Note that from a user POV, their password will remain the same. This just means that their passwords will be stored more securely on the server-side in the database.
129+
130+
The simplest way of creating new users is to simply create them in the database and then re-run the migration utility to encrypt their password.
131+
132+
$ psql seqware_meta_db
133+
psql (9.3.14)
134+
Type "help" for help.
135+
136+
seqware_meta_db=# insert into registration(email, password, password_hint, first_name, last_name, create_tstmp, last_update_tstmp) VALUES('[email protected]', 'test-password', 'a test password hint', 'firstname', 'lastname', now(), now());
137+
INSERT 0 1
138+
seqware_meta_db=# \quit
139+
$ java -jar seqware-distribution/target/seqware-distribution-<%= seqware_release_version %>-full.jar --plugin net.sourceforge.seqware.pipeline.plugins.RegistrationMigrationPlugin
140+
141+

0 commit comments

Comments
 (0)