Created
September 17, 2018 15:50
-
-
Save sbose78/8661e0f03cf49735edc988c4dbfbe74a to your computer and use it in GitHub Desktop.
analytics-token
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@startuml | |
actor client | |
participant "GitHub" as gh | |
participant "Jenkins Proxy" as bs | |
participant "Auth Service" as auth | |
participant "OSO Proxy" as osoproxy | |
participant "Jenkins" as jenkins | |
participant "user namespace" as uns | |
participant "Analytics service" as as | |
title Use User tokens for calling Analytics service from build | |
gh->bs:send webhook request | |
bs->bs:determine OSIO user ID | |
bs->auth:Obtain user token \n using OSiO service account. | |
auth->bs:{"access_token":"USER_TOKEN",\n"expiry":"in_15_min"} | |
bs->osoproxy:PATCH /api/v1/namespaces/shbose/secrets/$secret_user_token | |
osoproxy->uns:PATCH .../shbose/secrets/$secret_user_token | |
uns->osoproxy:200 OK | |
osoproxy->bs:200 OK | |
||| | |
jenkins->uns:Get secret from usernamespace/$secret_user_token | |
uns->jenkins:return usertoken | |
jenkins->as:Trigger Analytics service \n using user token | |
as->jenkins:200 OK Triggered | |
@enduml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment