Skip to content

Commit

Permalink
Fix certificate form link
Browse files Browse the repository at this point in the history
  • Loading branch information
Ph0tonic committed Nov 23, 2023
1 parent 41ff585 commit 1f37321
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion certificateservice/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ def _get_user_certificate(user):
return certificate_file, own_certificate


@app.route(url_prefix + 'certificate_form', methods=['POST'])
@app.route(url_prefix + '/certificate_form', methods=['POST'])
@upload_authenticated
def personnal_certificate_form(user):
# check if the post request has the file part
Expand Down
20 changes: 10 additions & 10 deletions download_certificate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,23 @@ production_pod=${production_pod_fullname#"$prefix"}
echo Staging pod : ${staging_pod}
echo Production pod : ${staging_pod}

# UPLOAD
# DOWNLOAD
# Staging
echo
echo STAGING UPLOAD ...
echo Uploading cabundle file \'$cabundle_file\' to staging
echo STAGING DOWNLOAD ...
echo Downloading cabundle file \'$cabundle_file\' to staging
kubectl --kubeconfig $kubeconfig_file cp -n jh-staging-system "${staging_pod}:/certificateservice-data/dcache_cabundle.pem" "${download_folder}/dev_$cabundle_file"
echo Uploading clientcert file \'$clientcert_file\' to staging
echo Downloading clientcert file \'$clientcert_file\' to staging
kubectl --kubeconfig $kubeconfig_file cp -n jh-staging-system "${staging_pod}:/certificateservice-data/dcache_clientcert.crt" "${download_folder}/dev_$clientcert_file"

# Production
echo
echo PRODUCTION UPLOAD ...
echo Uploading cabundle file \'$cabundle_file\' to production
kubectl --kubeconfig $kubeconfig_file cp -n jh-prod-system "${production_pod}:/certificateservice-data/dcache_cabundle.pem" "${download_folder}/prod_$cabundle_file"
echo Uploading clientcert file \'$clientcert_file\' to production
kubectl --kubeconfig $kubeconfig_file cp -n jh-prod-system "${production_pod}:/certificateservice-data/dcache_clientcert.crt" "${download_folder}/prod_$clientcert_file"
echo PRODUCTION DOWNLOAD ...
echo Downloading cabundle file \'$cabundle_file\' to production
kubectl --kubeconfig $kubeconfig_file cp -n jh-prod-system "${production_pod}:/downloadservice-data/dcache_cabundle.pem" "${download_folder}/prod_$cabundle_file"
echo Downloading clientcert file \'$clientcert_file\' to production
kubectl --kubeconfig $kubeconfig_file cp -n jh-prod-system "${production_pod}:/downloadservice-data/dcache_clientcert.crt" "${download_folder}/prod_$clientcert_file"

# Finish
echo
echo Upload complete !
echo Download complete !

0 comments on commit 1f37321

Please sign in to comment.