Skip to content

Commit

Permalink
added diagram to docs
Browse files Browse the repository at this point in the history
3goats committed Mar 16, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 6b5c25c commit 550a696
Showing 7 changed files with 766 additions and 20 deletions.
Binary file modified .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
TLSPC_API_KEY={PASTE API KEY}
VTOKEN=XXXXXXXXXXX
VTOKEN=
30 changes: 11 additions & 19 deletions demo.ipynb
Original file line number Diff line number Diff line change
@@ -67,7 +67,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 4,
"metadata": {
"vscode": {
"languageId": "shellscript"
@@ -78,24 +78,15 @@
"name": "stdout",
"output_type": "stream",
"text": [
"eyJhbGciOiJFUzI1NiIsImtpZCI6Ikg2aENHR3hlZnRmRDBPZlhfLXA0aWVmOWRLQlFzM1dXTEFVaVlQQWlIWGMiLCJ0eXAiOiJKV1QifQ.eyJleHAiOjE3MTA2MDA4NzcsImlhdCI6MTcxMDUxNDQ3NywiaXNzIjoiaHR0cDovLzE3Mi4yMC4wLjI6ODAwMCIsInN1YiI6Imp3dC10aGlzIiwidmVuYWZpLWZpcmVmbHkuYWxsb3dBbGxQb2xpY2llcyI6ZmFsc2UsInZlbmFmaS1maXJlZmx5LmFsbG93ZWRQb2xpY2llcyI6WyJCYXNpYyBEZW1vIl0sInZlbmFmaS1maXJlZmx5LmNvbmZpZ3VyYXRpb24iOiJCYXNpYyBEZW1vIn0.Hg7rBLvXGhb2_RTUPwLoVf_WZ7EiT2ByiULVzB2OoQPXv1ocTriHNTRdRgA7mob0V_NiWZlI_EzokNkRCCcsGQ\n",
"\u001b[1;39m{\n",
" \u001b[0m\u001b[1;34m\"alg\"\u001b[0m\u001b[1;39m: \u001b[0m\u001b[0;32m\"ES256\"\u001b[0m\u001b[1;39m,\n",
" \u001b[0m\u001b[1;34m\"kid\"\u001b[0m\u001b[1;39m: \u001b[0m\u001b[0;32m\"H6hCGGxeftfD0OfX_-p4ief9dKBQs3WWLAUiYPAiHXc\"\u001b[0m\u001b[1;39m,\n",
" \u001b[0m\u001b[1;34m\"typ\"\u001b[0m\u001b[1;39m: \u001b[0m\u001b[0;32m\"JWT\"\u001b[0m\u001b[1;39m\n",
"\u001b[1;39m}\u001b[0m\n",
"\u001b[1;39m{\n",
" \u001b[0m\u001b[1;34m\"exp\"\u001b[0m\u001b[1;39m: \u001b[0m\u001b[0;39m1710600877\u001b[0m\u001b[1;39m,\n",
" \u001b[0m\u001b[1;34m\"iat\"\u001b[0m\u001b[1;39m: \u001b[0m\u001b[0;39m1710514477\u001b[0m\u001b[1;39m,\n",
" \u001b[0m\u001b[1;34m\"iss\"\u001b[0m\u001b[1;39m: \u001b[0m\u001b[0;32m\"http://172.20.0.2:8000\"\u001b[0m\u001b[1;39m,\n",
" \u001b[0m\u001b[1;34m\"sub\"\u001b[0m\u001b[1;39m: \u001b[0m\u001b[0;32m\"jwt-this\"\u001b[0m\u001b[1;39m,\n",
" \u001b[0m\u001b[1;34m\"venafi-firefly.allowAllPolicies\"\u001b[0m\u001b[1;39m: \u001b[0m\u001b[0;39mfalse\u001b[0m\u001b[1;39m,\n",
" \u001b[0m\u001b[1;34m\"venafi-firefly.allowedPolicies\"\u001b[0m\u001b[1;39m: \u001b[0m\u001b[1;39m[\n",
" \u001b[0;32m\"Basic Demo\"\u001b[0m\u001b[1;39m\n",
" \u001b[1;39m]\u001b[0m\u001b[1;39m,\n",
" \u001b[0m\u001b[1;34m\"venafi-firefly.configuration\"\u001b[0m\u001b[1;39m: \u001b[0m\u001b[0;32m\"Basic Demo\"\u001b[0m\u001b[1;39m\n",
"\u001b[1;39m}\u001b[0m\n"
"\n",
"jq: error (at <stdin>:1): Malformed BOM (while parsing '��')\n"
]
},
{
"ename": "",
"evalue": "5",
"output_type": "error",
"traceback": []
}
],
"source": [
@@ -105,7 +96,8 @@
" -X POST http://localhost:8000/token \\\n",
" -k -s | jq -r '.access_token' )\n",
"# Update the variable in the Docker Compose .env file \n",
"sed -i '' 's/^\\(VTOKEN=\\).*/\\VTOKEN='\"$token\"'/' .env \n",
"#sed -i '' 's/^\\(VTOKEN=\\).*/\\VTOKEN='\"$token\"'/' .env \n",
"echo VTOKEN=$token >> .env\n",
"echo ${token}\n",
"echo ${token} | jq -R 'split(\".\") | .[0],.[1] | @base64d | fromjson'\n"
]
Binary file modified docs/.DS_Store
Binary file not shown.
Binary file added docs/images/.DS_Store
Binary file not shown.
749 changes: 749 additions & 0 deletions docs/images/firefly-tlspc-architecture.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -12,6 +12,11 @@ This quick-start playground is intended to showcase Venafi's {{ component_name }

For simplicity the demo will use a built in certificate authority CA provided by as part of the Venafi Cloud service.

### Architecture

The following diagram provides a high level architectural overview that shows the outcome of what we will be building:

![alt text](images/firefly-tlspc-architecture.svg)

### Prerequisites

0 comments on commit 550a696

Please sign in to comment.