profile
viewpoint

chiefbiiko/bwt 11

Better Web Token - an iteration of web tokens with a bunch of improvements

chiefbiiko/ballify 2

bundle all frontend assets of your single page app into one ball :8ball: :basketball: :baseball: :football:

chiefbiiko/base64 2

base64 strings from/to Uint8Arrays

chiefbiiko/alea 1

TS port of Johannes Baagøe's seedable pseudo-RNG Alea

chiefbiiko/blake2b 1

BLAKE2b implemented in WebAssembly

chiefbiiko/chacha20-poly1305 1

Authenticated Encryption with Associated Data

chiefbiiko/abaw 0

all-black-and-white RStudio theme

chiefbiiko/aka-opts 0

dealias options

fork chiefbiiko/amplify-js

A declarative JavaScript library for application development using cloud services.

https://docs.amplify.aws/lib/q/platform/js

fork in 2 hours

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha 95db4ca92fba886ad7b3f0a21822f130f8c5b6ee

cx: fix wrong branch ptr pt2

view details

push time in 5 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha efc8a79e291b15701f8816fbf730d32bf4dc709e

cx: fix tool set url

view details

push time in 5 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha 4ade7e494d6cb605d8100a297b3412adb0ea87dd

impl: also auto verify email in test env

view details

push time in 5 days

create barnchchiefbiiko/aws-actions-cheats

branch : urs

created branch time in 5 days

delete branch chiefbiiko/aws-actions-cheats

delete branch : fix-urs

delete time in 5 days

push eventchiefbiiko/aws-actions-cheats

Noah Anabiik Schwarz

commit sha a08b2c8da93b1b3991e75cda673cf28036b16120

ci: actually test the two ur* formatters

view details

Noah Anabiik Schwarz

commit sha 7d5ec7bc8f103982f96b60369a3a946f1cdd1848

ci: test every cmd

view details

Noah Anabiik Schwarz

commit sha ce5923e9985d8c038d54ae21e5c95f7ed728bb5f

ci: fix sh syntax

view details

Noah Anabiik Schwarz

commit sha a7b77bf7a53fa7046e02f7c7eab586f881455340

impl: from printf 2 echo and fac testing git head

view details

Noah Anabiik Schwarz

commit sha 117e5b5b59ea7ce7397862f79e3a9e182676debc

cd: print vars in question

view details

Noah Anabiik Schwarz

commit sha 9c7bf50fe57f66c0a4d9405abb415c1de6e04e50

impl: quote s3_ur* vars

view details

Noah Anabiik Schwarz

commit sha 64c87685cf6645f466dd8192273eb48e8b47d661

impl: fix bash conditions

view details

Noah Anabiik Schwarz

commit sha 1242ad622bb3f08dbc9fde1fa5c2542c1e01b4e5

ci: check with avoidance of undefined shell params

view details

Noah Anabiik Schwarz

commit sha fd28afb08638333db0a7d206d84cf9d924f1f58b

impl: dump cheats in root bin dir

view details

Noah Anabiik Schwarz

commit sha 0e741574177a1fe69c199817ac816249c9dbef4f

debug: ci

view details

Noah Anabiik Schwarz

commit sha ac849075f504b467b85104a1791fb56869d13cca

debug: ls /bin in subshell

view details

Noah Anabiik Schwarz

commit sha 631c9b4aa3faabf161f7a9a514ea84a83d72b530

debug: with bash flag

view details

Noah Anabiik Schwarz

commit sha 1d6ca9b21b6c273cac73ef2dfedeeb9d80d57c10

impl: add cmd cognito_user_exists

view details

Noah Anabiik Schwarz

commit sha 32fd63a2bd1eca5de13a6289cb7ab4b87c7a8b30

debug: echo stdall in cognito_user_exists

view details

Noah Anabiik Schwarz

commit sha 06e1f920a417474be1a882e3abb11e8f48e86290

impl: fix capturing wrong exit code

view details

Noah Anabiik Schwarz

commit sha 3f0a153ce25d7b3ff54c4cb48ab635ec53a065d9

debug: stdalls

view details

push time in 5 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha 62ebfbd236c55629833355f8fa6a985c05619e38

impl: prep 4 switchin 2 cognitojs

view details

push time in 6 days

issue commentchiefbiiko/dynamodb

X-Ray Support

oy feel free to whip up a pr - i won#t be tackling this anytime soon

garysb

comment created time in 6 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha db2ba71c52b4fbc7f5855e31a6f262b6543eb2ae

impl: figured out amplify specifics

view details

Noah Anabiik Schwarz

commit sha 3e7b12471616aa3e259ba875a4a08b1892215721

impl: add an app/views dir

view details

Noah Anabiik Schwarz

commit sha ecd911313aaa1fbc5f53ec895e2159f17e2c3df5

impl: intro screens drafted

view details

Noah Anabiik Schwarz

commit sha ec02c2ea462392ba71a1caffba9a32d58afb9dbc

impl: app intro screens baby steps

view details

push time in 6 days

startedp3nt4/PowerShdll

started time in 6 days

startedcallstack/react-native-paper-login-template

started time in 7 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha a3b57f9b4ec06d1bcd39efa5b2b2208fa2ec9f75

impl: toss the create 4 the upsert endpoint

view details

push time in 7 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha c3a6bf4308e5d6170602a3a1f02d3a1838b3cac4

impl: amplify factory auth using withAuth...

view details

Noah Anabiik Schwarz

commit sha 7219c99c4db015cb47981d6706c650df7ff0015d

impl: toss aws-amplify-react-native n just use amplify.auth

view details

push time in 7 days

startedlpxxn/rust-design-pattern

started time in 7 days

push eventchiefbiiko/base64

Noah Anabiik Schwarz

commit sha c6d7d057326b868c05fd14edb12d3cf9a2ef1a3b

test: add another base64url test case 4 sound sleep

view details

push time in 8 days

created tagchiefbiiko/bwt

tagv0.6.0

Better Web Token - an iteration of web tokens with a bunch of improvements

created time in 8 days

push eventchiefbiiko/bwt

Noah Anabiik Schwarz

commit sha 92f4e9e85ba7974513ed96864b1c0671b72824d4

docs: update the version identifier in the readme

view details

push time in 8 days

push eventchiefbiiko/bwt

Noah Anabiik Schwarz

commit sha 544c65b560b30adb3e3381ec6f0aa1f342addbd7

impl: switching to base64url everywhere

view details

push time in 8 days

PR merged chiefbiiko/bwt

switching to base64url everywhere
  • [x] update illustrated token in readme
  • [x] assemble tokens with base64url mod.ts l. 249
  • [x] pass all tests using base64url only
+103 -108

0 comment

5 changed files

chiefbiiko

pr closed time in 8 days

push eventchiefbiiko/bwt

Noah Anabiik Schwarz

commit sha 267a6260f98c9c4ed811ea0889f00a72427f1d99

impl: switching to base64url everywhere

view details

push time in 8 days

push eventchiefbiiko/bwt

Noah Anabiik Schwarz

commit sha 6badbaba983de08696035a5f0063616d512265bf

fix: base64url handling

view details

push time in 8 days

push eventchiefbiiko/bwt

Noah Anabiik Schwarz

commit sha 112943a4f72923aeedf1fa32fb13c74b2088a097

fix: base64url handling

view details

push time in 8 days

created tagchiefbiiko/std-encoding

tagv1.1.1

created time in 8 days

push eventchiefbiiko/std-encoding

Noah Anabiik Schwarz

commit sha 2e6ad40f5ddef7e5f26d485f84add587b2d126fc

fix: base64url handling

view details

push time in 8 days

created tagchiefbiiko/base64

tagv0.2.1

base64 strings from/to Uint8Arrays

created time in 8 days

push eventchiefbiiko/base64

Noah Anabiik Schwarz

commit sha 808cc07046d3a2ae6f1579e8654a26362cba1cc4

ci: fix deno test cmd

view details

push time in 8 days

push eventchiefbiiko/base64

Noah Anabiik Schwarz

commit sha 9740691d1f9072ad0427f6b3a8dcdfedfd235fb5

impl: fix base64url; now also without padding =

view details

push time in 8 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha 433eb16b638cd47c1a8cd587694e20792a77943e

impl: cognito identity pool id now as stack output

view details

Noah Anabiik Schwarz

commit sha 8017e6aee4f1a9b71129c901b32635df067f8e98

impl: add a react-native app skeleton

view details

push time in 8 days

startedcallstack/react-native-testing-library

started time in 8 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha 3271391a4a53d09188ac22fe5800e28cbe87ed34

ci: rm crappy curl timing

view details

push time in 9 days

startedcallstack/react-native-paper

started time in 9 days

startedCalinou/awesome-gamedev

started time in 11 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha a2e3d60393096c47a366985a4d0a2c2445ef978b

impl: rename from document id 2 name and time test cases

view details

push time in 11 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha a93b0fac4959e0cac048b22b06c3318c566ecbcc

impl: rollback to manual json stringify in goland

view details

push time in 11 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha 37fef47ea5d60c90a32d1b5c3c35389e8476997f

debug the read qrcode test case

view details

push time in 11 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha b786519a3885c9984dd73908c438806b349b46da

debug: read qrcode response payload

view details

Noah Anabiik Schwarz

commit sha 9d58da4448856695bb9d68cf62784feb04f00e45

impl: stronconv.Quote in the golang read qrcode handler

view details

push time in 11 days

startedKevin-Robertson/Inveigh

started time in 11 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha 51f429f4a3f441975e550685ca69ce6c0a5da153

cx: adjust pipeline triggers

view details

push time in 11 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha 8ebb5fd6711940d097ae50d00354c108dbd8b0d1

impl: fix read qrcode handler jsonification by using proper structs 4 serialization

view details

push time in 11 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha 45cf07d521775d9bd3594a6a721e6b0c7b8b79e8

debug: read qrcode 200

view details

push time in 11 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha 2354ddb1cb8c042ee1f1cc679d5b3ad9ccb2c149

impl: fix reqd qrcode handlers response code stringification

view details

push time in 11 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha 8b646198f3d554cd07ac01b8bd3c01c3706df5ec

cd: increase lambda function timeout

view details

push time in 11 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha ac5dc69f16409d79a2e86041bbd40f06fc995327

ci: fix bash syntax err when attempting 2 pass var as file

view details

push time in 11 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha 0090b5fa73883a59c583fa96f231c442f52c2ee8

debug: read document 200

view details

push time in 11 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha 8038df87845b4e9ff7644b48a66e60dc214a126c

ci: fix read document 200 test case assertions

view details

push time in 11 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha 7535b696423a9738b26da5ac65dc4283b085474b

impl: refine lambda responses

view details

push time in 11 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha 1a53b2f77313675d91c03a9b3b2587bafb34105e

ci: fix leftover body assert

view details

Noah Anabiik Schwarz

commit sha a00c38c9e5390eac4d45be4cf5119e9abe9c8a07

ci: respec read document 200 scenario

view details

Noah Anabiik Schwarz

commit sha bcbed649d4778d834a312d0a635526e0e1a1c9a2

impl: adjust read document lambda 2 comply 2 da nu spec

view details

Noah Anabiik Schwarz

commit sha a60df989c38105915c741b482e2f7bb4501a75c2

impl: adjust read and list response models

view details

push time in 11 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha 0e3e70ec2e971550f276d3ae36c208b420b596d8

debug: read qrcode endpoint

view details

push time in 12 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha 5c3bfe4de992a58d71038a5aeec4fa202c16f217

fix: apigw method misconfig

view details

push time in 12 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha fd7c3c8430386a275b696924dea64f2ec4a59be7

impl: read-a-qrcode endpoint + tests + cd

view details

Noah Anabiik Schwarz

commit sha 3eeff30cd25d90ebafae3a4f0546eb32b072f4a6

docs: update todos

view details

push time in 12 days

startedsecurego/gosec

started time in 13 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha 03fe9ac908a2a14e03e22c4d6b6d80ef1851bff2

ci: narrow all regex patterns

view details

push time in 13 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha 5965e37dcd2e287663d29afcc9f2485bda9a6c18

ci: try narrowing the assert_match patterns

view details

push time in 13 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha 95b0272d19474727b6ca8fa666e7919cfe509a5d

impl: rename from handlers 2 lambdas

view details

push time in 13 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha 5743bcd7d1748106333b2183c55ed6f185382222

ci: fix date regex pattern

view details

push time in 13 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha 0229784f26736cd03e727ada71cbbddefbce1692

ci: fix delete document handler test expectations

view details

push time in 13 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha 4e2098594f8ce77d29aa60e41138afc99881bebf

impl: fix golang delete handler syntac issues

view details

push time in 13 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha 222b8a57c4e0d6411a6d15411c548f8a5da1bcff

impl: try await the list docuemnt methods

view details

push time in 13 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha e7462fa22f91e8f90a975433a4c03e0589cb272f

debug: print sth in the golang delete document handler

view details

push time in 13 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha ec2090e04ef3a38e950e53f784a4620c55ad4704

impl: respond with an explicit empty body in the golang delete document handler

view details

push time in 13 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha 27eb69bc0e229c0126352ed387247cade3c44306

impl: delte document hadnler from head 2 get

view details

push time in 13 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha c72472df4b6b0d2efc7e282236fafed961ae31d6

impl: cleanup old basic authorizer

view details

Noah Anabiik Schwarz

commit sha a454d688eefa0a13365f82383884dc30eefdfd26

impl: allow delete documents handler head object

view details

push time in 13 days

startedfelixrieseberg/macintosh.js

started time in 13 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha f19fd7f5ec7bc649a0835ade04d62795a1a9601e

impl: simplify the upsert document handler as there is no 403

view details

Noah Anabiik Schwarz

commit sha 0f09920f2384d634106180a3a8b6e9eb589e4897

impl: cleanup old code in effect of tossing 403s

view details

Noah Anabiik Schwarz

commit sha fed644ee4dc60ad5d6857b50c2ba3ea9d2b33be6

impl: cleanup cfn method response status codes

view details

Noah Anabiik Schwarz

commit sha 09549a7aa2acc56dc2fc84f407216bd71a8bd045

docs: vip test todos

view details

Noah Anabiik Schwarz

commit sha 2014ee7bd80c7c438adf1bd430b331b8ede2403d

ci: enhance the list documents 200 test case by assert-iterating through the resposne collection

view details

push time in 13 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha 577000cf8329fa55881600f51d950f1c0cff284c

ci: toss an unused test case

view details

push time in 14 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha 99e59f8578a5e0bf2810dd2d86db35e5beb6accd

ci: try quoting assert args

view details

push time in 14 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha e387933c99193c1e82e0038468cf47365cf83d9c

debug: fix print

view details

push time in 14 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha 2064491e4c7318b109407fb94520aded47a6ed18

debug: print empty collection responhse

view details

push time in 14 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha b0f1f04bf6d40c853ad160a6325260b6e681c1ec

ci: fix test impl capturing response body

view details

push time in 14 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha c1dd904f15d8a003af056b8369ccfaf2d1cc29d8

ci: fix delete documents test expectation

view details

push time in 14 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha fd82d3e9fd8b8d6a1d572274e7e05a1b7ed8e47f

ci: toss an unecessary test case

view details

push time in 14 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha 15a2d56f764e1958d8f61a4e8a74d23eb505d374

debug: strawman debuging

view details

push time in 14 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha b7f23586856df43ab55f693c05cec95d0c289636

debug: without crashing

view details

push time in 14 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha 759607051240e0b5a3a91354492eb1b7368524cc

debug: without crashing

view details

push time in 14 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha 19a1b4da1c1730704f0b497998ea644fbc6f95dc

debug: ownership check in the psert handler

view details

push time in 14 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha c299f1c920a135261d63563c837a4864b4672c1a

ci: correct read handler non-existent doc test expectation

view details

push time in 14 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha 249f048cea4e66ed16b757a245c768256f0396bd

ci: complete and rename /documents testing

view details

push time in 14 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha 03d270e0c2ad64a9db7cb77aad288a37d9d5b938

impl: respond with an empty document collections when listing and nothing exists

view details

Noah Anabiik Schwarz

commit sha 479e94614f1d6c423859a60b4f662be689a52e4e

ci: adjust test case names

view details

push time in 14 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha 41ced62d05099ba10fbded652764abfc551de624

impl: clenaup the golang list documents handler

view details

Noah Anabiik Schwarz

commit sha 3142646b8908dd9349faedc671897f88d15afc1c

ci: fix bash ssertion regex

view details

push time in 14 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha 03fdcc933531ab0ae8901d6179895fbf35d1daf8

impl: fix golang list documents handler

view details

push time in 14 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha 1b2a1076d52b9174a186c654a9d29dba3f5b5ab9

ci: fix bash assertion

view details

push time in 14 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha 9dfdc846a0113745a4c782abbecdb19c9e02be05

debug: more echo

view details

push time in 14 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha 5c0a2db2235c86a0c6c8584a6802bb62447e84ed

debug: disable part of the list documents 200 test case

view details

push time in 14 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha fd77bd0c045672d8b256784d68790c041ace8f34

ci: complete list documents test cases

view details

Noah Anabiik Schwarz

commit sha 838e93afe8baa4911bf5a6afa8c3e0e710d0df43

impl: rm unnecessary permissions 4 the list documents handler

view details

Noah Anabiik Schwarz

commit sha 9059841ca480d9a38e2ad82c631a4068881c34d0

cx: createing another test user for 40X testing

view details

push time in 14 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha aef000de2f916559f96399aabfaaa1a49729253f

cx: correct setting default shell

view details

push time in 14 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha 46c400a7f4d698eb3c0366847603c2a39449c3b4

cx: try set default shell bash no flags

view details

push time in 14 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha 713d2fe2a8c1cb6cdfcd7f3eb4527348893e50ca

ci: try fix bash assertion helper eq

view details

push time in 14 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha 841c64c81b82f95b135dca2171f6a40f0c8411ca

cx: toss unused bash assertions

view details

push time in 14 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha d849e60e9e1205009ecdcc75d75a1fe2cab0fc48

cx: set a default bash shell with no flags 4 all jobs

view details

push time in 14 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha 9287e494ef6cc820dd058f5f283a2fde1274c98e

impl: list documents draft

view details

Noah Anabiik Schwarz

commit sha aa5d9d3a88dc243412f0dec16ef344084b4bb6ce

impl: cfn list document method resource

view details

Noah Anabiik Schwarz

commit sha ef40941dc25002dab69d18b713a70281c43bb4bc

impl: golang list document handler

view details

Noah Anabiik Schwarz

commit sha 9280a75680f3677f3b297dcdc6d28023f4e447fb

ci: add a list test case

view details

Noah Anabiik Schwarz

commit sha 4cd5a2d25651177f9e6f28452ffa8e9cf3fa7650

cx: pipeline adjustments 4 the golang list documents handler

view details

Noah Anabiik Schwarz

commit sha f00289aaee2ce4b0e3a8d0cea6c4973077484859

impl: list documents handler impl vetted

view details

push time in 14 days

Pull request review commentnugget-digital/payola

impl: deploy restApi + one LambdaHandler

+AWSTemplateFormatVersion: 2010-09-09+Description: Payola API Stack++Metadata:+  "AWS::Cloudformation::Interface":+    ParameterGroups:+      - Label:+          default: Meta+        Parameters:+          - Environment+      # - Label:+      #     default: CDN+      #   Parameters:+          # - DefaultRootObject+          # - DefaultTTL+          # - MaxTTL+          # - MinTTL+      # - Label:+      #     default: Storage+      #   Parameters:+      #     - BucketName+      - Label:+          default: API+        Parameters:+          # - FunctionLogRetentionInDays+          - FunctionMemorySize+          - FunctionTimeout+          - GetBalanceHandlerName++Parameters:+  Environment:+    Description: Environment name - test/prod+    AllowedPattern: "^(test|prod)$"+    Type: String++  # BucketName:+  #   Description: S3 bucket name+  #   AllowedPattern: "^[a-z0-9]+[a-z0-9-]+[a-z0-9]+$"+  #   Type: String++  FunctionMemorySize:+    Description: how many megabytes of ram to allocate for the lambda+    Type: Number+    Default: 128++  FunctionTimeout:+    Description: Lambda timeout in seconds+    Type: Number+    Default: 3++  # DefaultTTL:+  #   Description: Default cache object TTL - default 1h+  #   Type: Number+  #   Default: 3600+  #+  # MaxTTL:+  #   Description: Maximum cache object TTL - default 2h+  #   Type: Number+  #   Default: 7200+  #+  # MinTTL:+  #   Description: Minimum cache object TTL - default 1/2h+  #   Type: Number+  #   Default: 1800++  # DefaultRootObject:+  #   Description: Default root object path used by the CloudFront distribution+  #   AllowedPattern: "^[a-zA-Z0-9_-]+\\.html$"+  #   Type: String+  #   Default: index.html++  # FunctionLogRetentionInDays:+  #   Description: Lambda log retention in days+  #   Type: Number+  #   Default: 7++  GetBalanceHandlerName:+    Description: Lambda function name for the 'get balance' handler+    AllowedPattern: "^[a-z0-9]+[a-z0-9-]+[a-z0-9]+$"+    Type: String++Resources:+  # Bucket:+  #   Type: AWS::S3::Bucket+  #   Properties:+  #     Tags:+  #       - Key: "payola:name"+  #         Value: !Sub ${BucketName}-${Environment}+  #     BucketName: !Sub ${BucketName}-${Environment}+  #+  # BucketPolicy:+  #   Type: AWS::S3::BucketPolicy+  #   Properties:+  #     Bucket: !Ref Bucket+  #     PolicyDocument:+  #       Version: 2012-10-17+  #       Statement:+  #         - Sid: AllowLambdaGetPutObject+  #           Effect: Allow+  #           Principal:+  #             AWS: !GetAtt LambdaExecutionRole.Arn+  #           Action:+  #             - s3:GetObject+  #             - s3:PutObject+  #           Resource: !Sub arn:aws:s3:::${Bucket}/*+  #+  #         - Sid: AllowLambdaListBucket+  #           Effect: Allow+  #           Principal:+  #             AWS: !GetAtt LambdaExecutionRole.Arn+  #           Action: s3:ListBucket+  #           Resource: !GetAtt Bucket.Arn+  #+  # OriginAccessIdentity:+  #   Type: AWS::CloudFront::CloudFrontOriginAccessIdentity+  #   Properties:+  #     CloudFrontOriginAccessIdentityConfig:+  #       Comment: !Sub ${AWS::StackName}-aaaa # required++  # Distribution:+  #   Type: AWS::CloudFront::Distribution+  #   Properties:+  #     Tags:+  #       - Key: "payola:name"+  #         Value: !Sub ${AWS::StackName}-distribution+  #     DistributionConfig:+  #       DefaultCacheBehavior:+  #         AllowedMethods:+  #           - GET+  #           - HEAD+  #         CachedMethods:+  #           - GET+  #           - HEAD+  #         Compress: True+  #         DefaultTTL: !Ref DefaultTTL+  #         ForwardedValues:+  #           Cookies:+  #             Forward: none+  #           QueryString: False+  #         MaxTTL: !Ref MaxTTL+  #         MinTTL: !Ref MinTTL+  #         TargetOriginId: BucketOrigin+  #         ViewerProtocolPolicy: redirect-to-https+  #       DefaultRootObject: !Ref DefaultRootObject+  #       Enabled: True+  #       IPV6Enabled: False+  #       Origins:+  #         - DomainName: !GetAtt Bucket.DomainName+  #           Id: BucketOrigin+  #           S3OriginConfig:+  #             OriginAccessIdentity: !Sub origin-access-identity/cloudfront/${OriginAccessIdentity}+  #       PriceClass: PriceClass_100+++  Deployment:+    Type: AWS::ApiGateway::Deployment+    DependsOn: GetBalanceHandler+    Properties:+      RestApiId: !Ref RestApi+      StageName: !Ref Environment++  RestApi:+    Type: AWS::ApiGateway::RestApi+    Properties:+      Name: !Sub ${AWS::StackName}-restapi-${Environment}+      Tags:+        - Key: "payola:name"+          Value: !Sub ${AWS::StackName}-restapi-${Environment}++  # RequestValidator:+  #   Type: AWS::ApiGateway::RequestValidator+  #   Properties:+  #     Name: !Sub ${AWS::StackName}-requestvalidator+  #     RestApiId: !Ref RestApi+  #     ValidateRequestBody: True+  #     ValidateRequestParameters: True++  GasProviderResource:+    Type: AWS::ApiGateway::Resource+    Properties:+      ParentId: !GetAtt RestApi.RootResourceId+      PathPart: gas-provider+      RestApiId: !Ref RestApi++  BalanceResourceCollection:+    Type: AWS::ApiGateway::Resource+    Properties:+      ParentId: !Ref GasProviderResource+      PathPart: balance+      RestApiId: !Ref RestApi++  BalanceResource:+    Type: AWS::ApiGateway::Resource+    Properties:+      ParentId: !Ref BalanceResourceCollection+      PathPart: "{balanceId}"+      RestApiId: !Ref RestApi++  # BalanceResponseModel:+  #   Type: AWS::ApiGateway::Model+  #   Properties:+  #     Name: BalanceResponseModel+  #     RestApiId: !Ref RestApi+  #     ContentType: application/json+      # Schema:+      #   $schema: "http://json-schema.org/draft-04/schema#"+      #   type: object+      #   properties:+      #     id:+      #       type: string+      #     msisdn:+      #       type: string+      #     amount:+      #       type: number+      #     currency:+      #       type: string++  GetBalanceHandlerPermission:+    Type: AWS::Lambda::Permission+    DependsOn:+      - RestApi+      - GetBalanceHandler+    Properties:+      Action: lambda:InvokeFunction+      FunctionName: !GetAtt GetBalanceHandler.Arn+      Principal: apigateway.amazonaws.com+      SourceArn: !Sub arn:aws:execute-api:${AWS:Region}:${AWS::AccountId}:${RestApi}/*+

the SourceArn value will need as many asterisks in the trailing part as their are path segments after the base url

so if we want 2 allow apigw access to a lambda from a method endpoint that looks kinda like here https://base_url/stage_name/parent_resource/child_resource here base_url corresponds 2 this part: arn:aws:execute-api:${AWS:Region}:${AWS::AccountId}:${RestApi}/ we would need this !Sub arn:aws:execute-api:${AWS:Region}:${AWS::AccountId}:${RestApi}/*/*/*

the tl;dr the asterisk only matches a siingle path segment (they do not match across slash/s)

Balou9

comment created time in 15 days

Pull request review commentnugget-digital/payola

impl: deploy restApi + one LambdaHandler

+AWSTemplateFormatVersion: 2010-09-09+Description: Payola API Stack++Metadata:+  "AWS::Cloudformation::Interface":+    ParameterGroups:+      - Label:+          default: Meta+        Parameters:+          - Environment+      # - Label:+      #     default: CDN+      #   Parameters:+          # - DefaultRootObject+          # - DefaultTTL+          # - MaxTTL+          # - MinTTL+      # - Label:+      #     default: Storage+      #   Parameters:+      #     - BucketName+      - Label:+          default: API+        Parameters:+          # - FunctionLogRetentionInDays+          - FunctionMemorySize+          - FunctionTimeout+          - GetBalanceHandlerName++Parameters:+  Environment:+    Description: Environment name - test/prod+    AllowedPattern: "^(test|prod)$"+    Type: String++  # BucketName:+  #   Description: S3 bucket name+  #   AllowedPattern: "^[a-z0-9]+[a-z0-9-]+[a-z0-9]+$"+  #   Type: String++  FunctionMemorySize:+    Description: how many megabytes of ram to allocate for the lambda+    Type: Number+    Default: 128++  FunctionTimeout:+    Description: Lambda timeout in seconds+    Type: Number+    Default: 3++  # DefaultTTL:+  #   Description: Default cache object TTL - default 1h+  #   Type: Number+  #   Default: 3600+  #+  # MaxTTL:+  #   Description: Maximum cache object TTL - default 2h+  #   Type: Number+  #   Default: 7200+  #+  # MinTTL:+  #   Description: Minimum cache object TTL - default 1/2h+  #   Type: Number+  #   Default: 1800++  # DefaultRootObject:+  #   Description: Default root object path used by the CloudFront distribution+  #   AllowedPattern: "^[a-zA-Z0-9_-]+\\.html$"+  #   Type: String+  #   Default: index.html++  # FunctionLogRetentionInDays:+  #   Description: Lambda log retention in days+  #   Type: Number+  #   Default: 7++  GetBalanceHandlerName:+    Description: Lambda function name for the 'get balance' handler+    AllowedPattern: "^[a-z0-9]+[a-z0-9-]+[a-z0-9]+$"+    Type: String++Resources:+  # Bucket:+  #   Type: AWS::S3::Bucket+  #   Properties:+  #     Tags:+  #       - Key: "payola:name"+  #         Value: !Sub ${BucketName}-${Environment}+  #     BucketName: !Sub ${BucketName}-${Environment}+  #+  # BucketPolicy:+  #   Type: AWS::S3::BucketPolicy+  #   Properties:+  #     Bucket: !Ref Bucket+  #     PolicyDocument:+  #       Version: 2012-10-17+  #       Statement:+  #         - Sid: AllowLambdaGetPutObject+  #           Effect: Allow+  #           Principal:+  #             AWS: !GetAtt LambdaExecutionRole.Arn+  #           Action:+  #             - s3:GetObject+  #             - s3:PutObject+  #           Resource: !Sub arn:aws:s3:::${Bucket}/*+  #+  #         - Sid: AllowLambdaListBucket+  #           Effect: Allow+  #           Principal:+  #             AWS: !GetAtt LambdaExecutionRole.Arn+  #           Action: s3:ListBucket+  #           Resource: !GetAtt Bucket.Arn+  #+  # OriginAccessIdentity:+  #   Type: AWS::CloudFront::CloudFrontOriginAccessIdentity+  #   Properties:+  #     CloudFrontOriginAccessIdentityConfig:+  #       Comment: !Sub ${AWS::StackName}-aaaa # required++  # Distribution:+  #   Type: AWS::CloudFront::Distribution+  #   Properties:+  #     Tags:+  #       - Key: "payola:name"+  #         Value: !Sub ${AWS::StackName}-distribution+  #     DistributionConfig:+  #       DefaultCacheBehavior:+  #         AllowedMethods:+  #           - GET+  #           - HEAD+  #         CachedMethods:+  #           - GET+  #           - HEAD+  #         Compress: True+  #         DefaultTTL: !Ref DefaultTTL+  #         ForwardedValues:+  #           Cookies:+  #             Forward: none+  #           QueryString: False+  #         MaxTTL: !Ref MaxTTL+  #         MinTTL: !Ref MinTTL+  #         TargetOriginId: BucketOrigin+  #         ViewerProtocolPolicy: redirect-to-https+  #       DefaultRootObject: !Ref DefaultRootObject+  #       Enabled: True+  #       IPV6Enabled: False+  #       Origins:+  #         - DomainName: !GetAtt Bucket.DomainName+  #           Id: BucketOrigin+  #           S3OriginConfig:+  #             OriginAccessIdentity: !Sub origin-access-identity/cloudfront/${OriginAccessIdentity}+  #       PriceClass: PriceClass_100+++  Deployment:+    Type: AWS::ApiGateway::Deployment+    DependsOn: GetBalanceHandler+    Properties:+      RestApiId: !Ref RestApi+      StageName: !Ref Environment++  RestApi:+    Type: AWS::ApiGateway::RestApi+    Properties:+      Name: !Sub ${AWS::StackName}-restapi-${Environment}+      Tags:+        - Key: "payola:name"+          Value: !Sub ${AWS::StackName}-restapi-${Environment}++  # RequestValidator:+  #   Type: AWS::ApiGateway::RequestValidator+  #   Properties:+  #     Name: !Sub ${AWS::StackName}-requestvalidator+  #     RestApiId: !Ref RestApi+  #     ValidateRequestBody: True+  #     ValidateRequestParameters: True++  GasProviderResource:+    Type: AWS::ApiGateway::Resource+    Properties:+      ParentId: !GetAtt RestApi.RootResourceId+      PathPart: gas-provider+      RestApiId: !Ref RestApi++  BalanceResourceCollection:+    Type: AWS::ApiGateway::Resource+    Properties:+      ParentId: !Ref GasProviderResource+      PathPart: balance+      RestApiId: !Ref RestApi++  BalanceResource:+    Type: AWS::ApiGateway::Resource+    Properties:+      ParentId: !Ref BalanceResourceCollection+      PathPart: "{balanceId}"+      RestApiId: !Ref RestApi

just thinking out loud rite now we have' GET gas-provider/balance/{balanceId} here im not sure what balanceId is.. but here (below) the hierarchy seems odd.. GET balance/gas-provider/{providerId} or maybe just GET balance? (providerId is kinda obolete since we will get a customer identifier in a cognito token)

Balou9

comment created time in 15 days

Pull request review commentnugget-digital/payola

impl: deploy restApi + one LambdaHandler

+module.exports.getbalancehandler = function getbalancehandler (event) {+  return "Hello World"

not sure if just returning a string literal will work usually, when using lambdas with apigateway (this mode is called apigw proxy integration), one has to comply to this response format

Balou9

comment created time in 15 days

Pull request review commentnugget-digital/payola

impl: deploy restApi + one LambdaHandler

+<!doctype html>

this html can go to trash as well i think

Balou9

comment created time in 15 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha e3384bd9e96615806854baa09f961a0348eac2f1

ci: actuallly run the delete document scenario test cases

view details

push time in 15 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha 2940d3cb5db37340df2137ef9d46aeaa4aa491c7

impl: fix golang delete handler syntax bits

view details

push time in 15 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha 884cda3bfb78a769f3c09631d4ec050e30fd797a

impl: delete handler golang impl

view details

Noah Anabiik Schwarz

commit sha 11cc066c5decc954093da6cdc6f5dc9d503bb865

impl: delete handler cfn infrastructure

view details

Noah Anabiik Schwarz

commit sha 42994fdcef57bdc05f5d17e0a210485afb3895bd

ci: add delete document test cases

view details

Noah Anabiik Schwarz

commit sha 810c64a5fdac17499d45428ad241d3a1245d0f39

ci: predeploy the golang delete handler bundle 2 s3

view details

push time in 15 days

startedconventional-changelog/standard-version

started time in 15 days

push eventchiefbiiko/cloudqr

Noah Anabiik Schwarz

commit sha b5a45ade992b2150c7d8913329f99d3451b20c51

ci: fix test data usage

view details

push time in 15 days

more