Skip to content

Commit

Permalink
added monitor for amd64
Browse files Browse the repository at this point in the history
  • Loading branch information
3goats committed Mar 16, 2024
1 parent 2f0c962 commit 2dda6e3
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
},
{
"cell_type": "code",
"execution_count": 18,
"execution_count": 3,
"metadata": {
"vscode": {
"languageId": "shellscript"
Expand All @@ -78,16 +78,16 @@
"name": "stdout",
"output_type": "stream",
"text": [
"eyJhbGciOiJFUzI1NiIsImtpZCI6IlBjYVBzRmpqLWVFMEFyRVRhSjlKNjZZQ2pFWTB3ekEyMDNCU0g3VW9Xd3ciLCJ0eXAiOiJKV1QifQ.eyJleHAiOjE3MTA1OTYwODUsImlhdCI6MTcxMDUwOTY4NSwiaXNzIjoiaHR0cDovLzE5Mi4xNjguNjQuNjo4MDAwIiwic3ViIjoiand0LXRoaXMiLCJ2ZW5hZmktZmlyZWZseS5hbGxvd0FsbFBvbGljaWVzIjpmYWxzZSwidmVuYWZpLWZpcmVmbHkuYWxsb3dlZFBvbGljaWVzIjpbIkJhc2ljIERlbW8iXSwidmVuYWZpLWZpcmVmbHkuY29uZmlndXJhdGlvbiI6IkJhc2ljIERlbW8ifQ.jUhAZ07MaId9qJTvMqQmsGp57A8YSYkRio0-zEFY6TKTW2ZQATcLP4ZcEyKOhKIc0P2nrfLLw5I8ApbuNL7UUw\n",
"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\"PcaPsFjj-eE0ArETaJ9J66YCjEY0wzA203BSH7UoWww\"\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;39m1710596085\u001b[0m\u001b[1;39m,\n",
" \u001b[0m\u001b[1;34m\"iat\"\u001b[0m\u001b[1;39m: \u001b[0m\u001b[0;39m1710509685\u001b[0m\u001b[1;39m,\n",
" \u001b[0m\u001b[1;34m\"iss\"\u001b[0m\u001b[1;39m: \u001b[0m\u001b[0;32m\"http://192.168.64.6:8000\"\u001b[0m\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",
Expand All @@ -99,9 +99,10 @@
}
],
"source": [
"#-X POST http://192.168.64.6:8000/token \\\n",
"token=$( curl -d \\\n",
" -H \"Content-Type: application/x-www-form-urlencoded\" \\\n",
" -X POST http://192.168.64.6:8000/token \\\n",
" -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",
Expand All @@ -111,7 +112,7 @@
},
{
"cell_type": "code",
"execution_count": 15,
"execution_count": 21,
"metadata": {
"vscode": {
"languageId": "shellscript"
Expand All @@ -122,7 +123,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"-----BEGIN CERTIFICATE REQUEST-----\\nMIICvDCCAaQCAQAwdzELMAkGA1UEBhMCR0IxDzANBgNVBAgMBkxvbmRvbjEPMA0G\\nA1UEBwwGTG9uZG9uMRgwFgYDVQQKDA9HbG9iYWwgU2VjdXJpdHkxFjAUBgNVBAsM\\nDUlUIERlcGFydG1lbnQxFDASBgNVBAMMC2V4YW1wbGUuY29tMIIBIjANBgkqhkiG\\n9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtN5z5HExuOA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bYpdOycvQz3WcmIlk3et0/kxcQiquB3444yAZpKJlAB8oRPl5GWCRR9E4Sl38GO\\nEE61au/g0zVdztcPwJi0fxCHEoaZt3F/4qd2Sc7tuFcyi3ne/uyuFhdlhQ0aM0Wm\\nri3K419NI1a3hIbkffOqPe9MUkTVzkWlbat5t9ZbXE1ZF2T140NoYxx4RqEj1ctL\\nAupcqzI1N0KAHsBrP+E6+6k6f3GtGHsKmQqYviyuRwu7QLrt09P8ORR1TTrNDsJS\\nS/76y8ETUlCe56lBVNiviUjJsB6LmrYWmi67Cod3UXrKoFbnYQIDAQABoAAwDQYJ\\nKoZIhvcNAQELBQADggEBAEA8YYOs66XEMf79NWj2mHQx7Bx/wH5ic1LnMzSGIpXl\\nbEROmkrPEtQhVEZj1jdL7OQlxkdeomq49+nJmloHduOAw5RtkDutnIrJ3HaifmHF\\nQ5QyToVh7lVWAwPsuvvherDdDUg+nZVwrZjBqsz5B30pqGCS0gxtv4SVXlHu0sgY\\njo2qGCbDKzdYUTQvjRS29Rgf7BlN7ss4Q4rAEeCWVhcLJTtotyrIwNqt10mWbG+m\\ndNWs9balRjaIuQfmc1K/s+lzkOdGKrPyUz+Jzc+bzyI8zgsZdSLdapmyOddTgQUj\\ndKK8KKoDtTtj9tWr7ZjsmEnuHLVBp/9axT+F6sF1YeA=\\n-----END CERTIFICATE REQUEST-----\n"
]
}
],
Expand All @@ -145,7 +146,7 @@
},
{
"cell_type": "code",
"execution_count": 19,
"execution_count": 29,
"metadata": {
"vscode": {
"languageId": "shellscript"
Expand All @@ -156,7 +157,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"\u001b[0;90mnull\u001b[0m\n"
"{\"error\":\"failed to issue certificate\",\"error_description\":\"token authentication failed: failed to parse JWT: [token is unverifiable: error while executing keyfunc: the given key ID was not found in the JWKS]\"}\n"
]
}
],
Expand All @@ -167,7 +168,7 @@
"--data '{\n",
" \"request\": \"'\"$csr\"'\",\n",
" \"policyName\": \"Basic Demo\"\n",
"}' -k -s | jq -r .certificateChain"
"}' -k -s #| jq -r .certificateChain"
]
},
{
Expand Down

0 comments on commit 2dda6e3

Please sign in to comment.