From 79ecb7d8fc1a1202a2f1cda2401dbb29f9b5c7c5 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 28 Nov 2020 22:38:59 +0000 Subject: [PATCH] rename organization --- API.md | 12 ++++++------ BUILD.md | 8 ++++---- create-test-user.sh | 12 ++++++------ databunker.yaml | 8 ++++---- 4 files changed, 20 insertions(+), 20 deletions(-) diff --git a/API.md b/API.md index cae8af8..704002a 100644 --- a/API.md +++ b/API.md @@ -247,7 +247,7 @@ Additional parameter is **expiration** specifies TTL for this session record. ### Example: ``` -curl -s http://localhost:3000/v1/session/email/test@paranoidguy.com -XPOST \ +curl -s http://localhost:3000/v1/session/email/test@securitybunker.io -XPOST \ -H "X-Bunker-Token: "$DATABUNKER_APIKEY -H "Content-Type: application/json" \ -d '{"expiration":"3d","clientip":"1.1.1.1","x-forwarded-for":"2.2.2.2"}'` {"status":"ok","session":"7a77ffad-2010-4e47-abbe-bcd04509f784"} @@ -350,7 +350,7 @@ When consent is expired, the status value is changed to **expired**. Create consent by posting JSON: ``` -curl -s http://localhost:3000/v1/consent/email/test@paranoidguy.com/send-sms -XPOST \ +curl -s http://localhost:3000/v1/consent/email/test@securitybunker.io/send-sms -XPOST \ -H "X-Bunker-Token: $XTOKEN" \ -H "Content-Type: application/json" \ -d '{"mesasge":"Optional long text here."}' @@ -360,7 +360,7 @@ curl -s http://localhost:3000/v1/consent/email/test@paranoidguy.com/send-sms -XP Create consent by POSTing user key/value fiels as POST fields: ``` -curl -s http://localhost:3000/v1/consent/email/test@paranoidguy.com/send-sms -XPOST \ +curl -s http://localhost:3000/v1/consent/email/test@securitybunker.io/send-sms -XPOST \ -H "X-Bunker-Token: $XTOKEN" -d 'mesasge=optional+text' {"status":"ok"} @@ -380,7 +380,7 @@ This API is used to withdraw user consent. Withdraw consent: ``` -curl -s http://localhost:3000/v1/consent/email/test@paranoidguy.com/send-sms -XDELETE \ +curl -s http://localhost:3000/v1/consent/email/test@securitybunker.io/send-sms -XDELETE \ -H "X-Bunker-Token: $XTOKEN" {"status":"ok"} ``` @@ -399,10 +399,10 @@ Fetch by user email: ``` curl --header "X-Bunker-Token: $XTOKEN" -XGET \ - https://localhost:3000/v1/consent/email/test@paranoidguy.com + https://localhost:3000/v1/consent/email/test@securitybunker.io {"status":"ok","total":2,"rows":[ {"brief":"send-email-mailgun-on-login","message":"send-email-mailgun-on-login","status":"accept", - "token":"254d2abf-e927-bdcf-9cb2-f43c3cb7a8fa","mode":"email","when":1576154130,"who":"test@paranoidguy.com"}, + "token":"254d2abf-e927-bdcf-9cb2-f43c3cb7a8fa","mode":"email","when":1576154130,"who":"test@securitybunker.io"}, {"brief":"send-sms-twilio-on-login","message":"send-sms-twilio-on-login","status":"accept", "token":"254d2abf-e927-bdcf-9cb2-f43c3cb7a8fa","mode":"phone","when":1576174683,"who":"4444"}]} ``` diff --git a/BUILD.md b/BUILD.md index e80e94f..869515a 100644 --- a/BUILD.md +++ b/BUILD.md @@ -19,10 +19,10 @@ Web UI files will be fetched from ui/ directory. ## Build container -It will generate "paranoidguy/databunker" container and save it locally. +It will generate "securitybunker/databunker" container and save it locally. ``` -docker build -t paranoidguy/databunker:latest . +docker build -t securitybunker/databunker:latest . ``` ## Push container @@ -31,7 +31,7 @@ docker build -t paranoidguy/databunker:latest . ``` docker login -docker push paranoidguy/databunker:latest +docker push securitybunker/databunker:latest ``` @@ -43,4 +43,4 @@ docker kill dbunker docker container stats dbunker docker run --rm -ti alpine /bin/busybox wget localhost:3000 -``` \ No newline at end of file +``` diff --git a/create-test-user.sh b/create-test-user.sh index 6e57d9c..fb66c72 100755 --- a/create-test-user.sh +++ b/create-test-user.sh @@ -51,7 +51,7 @@ echo "Get a list of legal basis objects: $RESULT" RESULT=`curl -s $DATABUNKER/v1/lbasis/send-sms -XDELETE -H "X-Bunker-Token: $XTOKEN"` echo "Deleting legal basis object: $RESULT" -RESULT=`curl -s $DATABUNKER/v1/agreement/core-send-sms-on-login/email/test@paranoidguy.com -XPOST \ +RESULT=`curl -s $DATABUNKER/v1/agreement/core-send-sms-on-login/email/test@securitybunker.io -XPOST \ -H "X-Bunker-Token: $XTOKEN" -H "Content-Type: application/json" \ -d '{"lawfulbasis":"contract"}'` echo "Giving consent for legal basis obj 2: $RESULT" @@ -59,22 +59,22 @@ echo "Giving consent for legal basis obj 2: $RESULT" RESULT=`curl -s $DATABUNKER/v1/agreement/core-send-sms-on-login -XDELETE -H "X-Bunker-Token: $XTOKEN"` echo "Revoking legal basis object 2: $RESULT" -RESULT=`curl -s $DATABUNKER/v1/agreement/contract-approval/email/test@paranoidguy.com -XPOST \ +RESULT=`curl -s $DATABUNKER/v1/agreement/contract-approval/email/test@securitybunker.io -XPOST \ -H "X-Bunker-Token: $XTOKEN" -H "Content-Type: application/json" \ -d '{"lawfulbasis":"contract"}'` echo "Giving consent for fake legal basis: $RESULT" -RESULT=`curl -s $DATABUNKER/v1/agreement/core-send-sms-on-login/email/test@paranoidguy.com -XDELETE -H "X-Bunker-Token: $XTOKEN"` +RESULT=`curl -s $DATABUNKER/v1/agreement/core-send-sms-on-login/email/test@securitybunker.io -XDELETE -H "X-Bunker-Token: $XTOKEN"` echo "Withdraw legal basis 2 consent: $RESULT" echo "Creating user." RESULT=`curl -s $DATABUNKER/v1/user \ -H "X-Bunker-Token: $XTOKEN" -H "Content-Type: application/json" \ - -d '{"fname":"Test","lname":"Account","email":"test@paranoidguy.com","phone":"4444","passportid":"123456789","status":"prospect"}'` + -d '{"fname":"Test","lname":"Account","email":"test@securitybunker.io","phone":"4444","passportid":"123456789","status":"prospect"}'` STATUS=`echo $RESULT | jq ".status" | tr -d '"'` if [ "$STATUS" = "error" ]; then echo "Error to create user, trying to lookup by email. Result: $RESULT" - RESULT=`curl -s $DATABUNKER/v1/user/email/test@paranoidguy.com -H "X-Bunker-Token: $XTOKEN"` + RESULT=`curl -s $DATABUNKER/v1/user/email/test@securitybunker.io -H "X-Bunker-Token: $XTOKEN"` echo "Result: $RESULT" STATUS=`echo $RESULT | jq ".status" | tr -d '"'` fi @@ -122,7 +122,7 @@ RESULT=`curl -s $DATABUNKER/v1/agreement/send-sms/token/$TOKEN -XPOST \ -H "X-Bunker-Token: $XTOKEN" -d "expiration=30s"` echo "Enable consent send-sms for user by token: $RESULT" -RESULT=`curl -s $DATABUNKER/v1/agreement/core-send-sms-on-login/email/test@paranoidguy.com -XPOST \ +RESULT=`curl -s $DATABUNKER/v1/agreement/core-send-sms-on-login/email/test@securitybunker.io -XPOST \ -H "X-Bunker-Token: $XTOKEN"` echo "Enable consent send-sms for user by email: $RESULT" diff --git a/databunker.yaml b/databunker.yaml index dc62891..263e931 100644 --- a/databunker.yaml +++ b/databunker.yaml @@ -58,7 +58,7 @@ server: smtp: # You need to get SMTP server to send out email notification for example to allow user login. # You can look for a email service company offering SMTP services. You can pick from here: - # https://paranoidguy.com/blog/european-saas-companies/ + # https://privacybunker.io/blog/european-cloud-saas-vendors/ server: "email-smtp-server.com" port: 587 user: "user@your-company.com" @@ -67,9 +67,9 @@ smtp: ui: logo_link: "https://logosbynick.com/wp-content/uploads/2018/03/final-logo-example.png" company_title: "Your company here" - company_link: "https://paranoidguy.com/" + company_link: "https://privacybunker.io/" term_of_service_title: "Your Terms of service link" - term_of_service_link: "https://paranoidguy.com/" + term_of_service_link: "https://privacybunker.io/" privacy_policy_title: "Your Privacy Policy link" - privacy_policy_link: "https://paranoidguy.com/" + privacy_policy_link: "https://privacybunker.io/" custom_css_link: ""