This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-05-01
Channels
- # aleph (1)
- # architecture (7)
- # aws (1)
- # beginners (52)
- # boot (3)
- # cider (27)
- # cljs-dev (9)
- # cljsrn (16)
- # clojure (82)
- # clojure-dev (75)
- # clojure-italy (14)
- # clojure-nl (11)
- # clojure-spec (10)
- # clojure-uk (31)
- # clojurescript (49)
- # core-async (13)
- # datascript (11)
- # datomic (15)
- # duct (11)
- # emacs (8)
- # fulcro (46)
- # heroku (2)
- # jobs-discuss (27)
- # jobs_rus (1)
- # juxt (25)
- # keechma (1)
- # off-topic (59)
- # om (2)
- # pedestal (4)
- # portkey (113)
- # portland-or (1)
- # re-frame (14)
- # reagent (11)
- # shadow-cljs (278)
- # vim (2)
- # yada (2)
sorry for that...
thx đ
very cool đ ! I go at the restaurant for 2 hours and you guys already did the review job ^^
>>> For some services, you must include the X-Amz-Security-Token query parameter in the canonical (signed) query string. For other services, you add the X-Amz-Security-Token parameter at the end, after you calculate the signature. For details, see the API reference documentation for that service.
from sign4 or 2 ?
so iot
is an exception https://github.com/mhart/aws4/issues/30
nice đ
can you quickly explain what went wrong ?
I hope they gave a test suite for signing v2
there were errors in the tests:
⢠treating normalize-path.txt
as a test case
⢠multi-valued headers (both multiline value and multiple occurences) were not properly handled when generating the headers map
errors in signature code: ⢠missing percent encoding for non-ASCII ⢠improper path normalization
I am not sure, thatâs what I am looking at right now
okay so it looks like sdb
is the only service that supports ONLY v2
which is a pretty good news
as itâs also a âdeprecatedâ service
nope, none
itâs a special protocol not yet implemented
there are 5 of them, weâve done 1
I have to finish the query
protocol, working on it, hope to come with something in the next 2 weeks
oh, I did not see the new partitions.json
^^
no more resources/aws-sdk-core/apis/
?
how do we generate apis then ^^ ?
I'm a bit surprised on this amount of corners of the internet that have aws specs here and there :)
from where was the initial api specs, before aws-java-sdk-models, taken from @cgrand ? (as I recall, s3 was missing from those specs too)
I donât remember
so there is no harmonized way of having some descriptions files
from official sdks ?
So made it such. Also using classpath for resolving path to aws-sig-v4-test-suite
, since remembering that in Cursive the working directory might not be the project directory (might be that this actually was for Leiningen tasks though only).
so 2 submodules, java and ruby one
one task to compare both api description
note that I see only what appears to be the last version of each lib =>
I compare this to the âoldâ way where we had all versions co-existing
which is fine, I am just saying
it looks like there is some light this way => https://github.com/aws/aws-sdk-ruby/tree/master/apis/s3/2006-03-01
[email protected] ~/programming/aws-sdk-ruby/apis(master|â)
0% ls -C1 | wc -l
136
might be yes
0% du -h -d 1 | sort -h
8.0K ./.github
32K ./tasks
92K ./doc-src
992K ./build_tools
27M ./apis
53M ./gems
58M ./.git
139M .
#{"alexaforbusiness" "opsworkscm" "application-autoscaling"
"lex-models" "appstream" "secretsmanager" "connect"
"mediastore-data" "fms" "resourcegroupstaggingapi"
"AWSMigrationHub" "s3" "meteringmarketplace" "iotanalytics"
"elasticloadbalancingv2" "iot-data" "kinesis-video-media"
"autoscaling-plans" "pricing" "iot-jobs-data"
"kinesis-video-archived-media" "acm-pca"}
found in ruby and not in java
yes I know đ
I might be wrong because I did a difference on a set, on directory names by excluding all the 2222-22-22
dirs
oh, nice one lol
anyway, there are more description files in the ruby repo
user> (def ruby-sdk-apis (set (for [file (.listFiles (java.io.File. â/Users/kimmoko/programming/aws-sdk-ruby/apisâ))
:let [[latest-api-dir] (sort #(compare %2 %1) (.listFiles file))
json (with-open [rdr ( ( latest-api-dir âapi-2.jsonâ))]
(cheshire.core/parse-stream rdr true))]]
(get-in json [:metadata :serviceFullName]))))
#âuser/ruby-sdk-apis
user> (def aws-java-sdk-apis (set (for [entry model-jar-entries
:let [json (with-open [in (.getInputStream jar-file entry)
rdr ( in)]
(cheshire.core/parse-stream rdr true))
]]
(get-in json [:metadata :serviceFullName]))))
#âuser/aws-java-sdk-apis
user> (clojure.set/difference ruby-sdk-apis aws-java-sdk-apis)
#{âAmazon Kinesis Video Streamsâ âAWS IoT Analyticsâ âAmazon Simple Storage Serviceâ âFirewall Management Serviceâ âAmazon Kinesis Video Streams Archived Mediaâ âAmazon Connect Serviceâ âAWS Certificate Manager Private Certificate Authorityâ âAWS Secrets Managerâ}
user> (count (clojure.set/difference ruby-sdk-apis aws-java-sdk-apis))
8
133 entries in latest maven model artifact: https://mvnrepository.com/artifact/com.amazonaws/aws-java-sdk-models/1.11.320
I donât think so. Only from now on :-)