Skip to content

Commit

Permalink
Migrate timestamp to Certigna
Browse files Browse the repository at this point in the history
  • Loading branch information
maatinito committed Dec 6, 2023
1 parent 335dc18 commit 07f2a39
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,7 @@ ENV \
TATOU_CLIENT_ID=""\
TATOU_CLIENT_SECRET=""\
TRUSTED_NETWORKS=""\
UNIVERSIGN_API_URL="https://ws.universign.eu/tsa/post/"\
UNIVERSIGN_USERPWD=""\
CERTIGNA_USERPWD=""\
WATERMARK_FILE="watermark_pf.png"\
YAHOO_CLIENT_ID=""\
YAHOO_CLIENT_SECRET=""
Expand Down
4 changes: 0 additions & 4 deletions config/env.example
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,6 @@ API_ISPF_PASSWORD=
# * For production: tps_prod
LOGRAGE_SOURCE="tps_local"

# External service: timestamping a daily archive of dossiers status changes
UNIVERSIGN_API_URL="https://ws.universign.eu/tsa/post/"
UNIVERSIGN_USERPWD=""

# External service: API Geo / Adresse
API_ADRESSE_URL="https://api-adresse.data.gouv.fr"
API_GEO_URL="https://geo.api.gouv.fr"
Expand Down
5 changes: 5 additions & 0 deletions config/env.example.optional
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ DS_ENV="staging"
# OLD_CONTACT_EMAIL=""
# CONTACT_PHONE=""

# External service: timestamping a daily archive of dossiers status changes
# CERTIGNA_API_URL points by defaults to "https://timestamp.dhimyotis.com/api/v1/"
CERTIGNA_API_URL=""
CERTIGNA_USERPWD=""

# Instance customization: postal address of the instance operator
# CONTACT_ADDRESS="Incubateur de Services Numériques / beta.gouv.fr\nServices du Premier Ministre, 20 avenue de Ségur, 75007 Paris"

Expand Down
4 changes: 2 additions & 2 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -334,10 +334,10 @@
t.bigint "commentaire_id"
t.datetime "created_at", null: false
t.bigint "dossier_id", null: false
t.datetime "resolved_at"
t.datetime "updated_at", null: false
t.string "kind", default: "correction", null: false
t.string "reason", default: "incorrect", null: false
t.datetime "resolved_at"
t.datetime "updated_at", null: false
t.index ["commentaire_id"], name: "index_dossier_corrections_on_commentaire_id"
t.index ["dossier_id"], name: "index_dossier_corrections_on_dossier_id"
t.index ["resolved_at"], name: "index_dossier_corrections_on_resolved_at", where: "((resolved_at IS NULL) OR (resolved_at IS NOT NULL))"
Expand Down
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ version: '3.3'
#
# SENTRY variables to logs exception on the SEntry platform
# HELPSCOUT variable to be able to receive administrator requests & help requests
# UNIVERSIGN variable to timstamp service (horodatage)
# CERTIGNA variable to timstamp service (horodatage)
#-------------------------------------------------------------
services:
app:
Expand Down Expand Up @@ -74,6 +74,7 @@ services:
- AR_ENCRYPTION_KEY_DERIVATION_SALT
- AR_ENCRYPTION_PRIMARY_KEY
- BANNER_MESSAGE
- CERTIGNA_USERPWD
- CLAMD_TCP_HOST=clamav-${ENV:-dev}
- CLAMD_TCP_PORT=3310
- COJO_JWT_RSA_PRIVATE_KEY
Expand Down Expand Up @@ -184,6 +185,7 @@ services:
- APP_HOST
- AR_ENCRYPTION_KEY_DERIVATION_SALT
- AR_ENCRYPTION_PRIMARY_KEY
- CERTIGNA_USERPWD
- CLAMD_TCP_HOST=clamav-${ENV:-dev}
- CLAMD_TCP_PORT=3310
- COJO_JWT_RSA_PRIVATE_KEY
Expand Down Expand Up @@ -221,8 +223,6 @@ services:
- SENTRY_DSN_JS
- SENTRY_DSN_RAILS
- SENTRY_ENABLED
- UNIVERSIGN_API_URL
- UNIVERSIGN_USERPWD
- WATERMARK_FILE
volumes:
- md-data-files:/app/storage
Expand Down

0 comments on commit 07f2a39

Please sign in to comment.