Debian Codegraph @

crt/aws-c-auth/README.md

raw symbols SCIP
1 ## AWS C Auth
2
3 C99 library implementation of AWS client-side authentication: standard credentials providers and signing.
4
5 From a cryptographic perspective, only functions with the suffix "_constant_time" should be considered constant
6 time.
7
8 ## License
9
10 This library is licensed under the Apache 2.0 License.
11
12 ## Usage
13
14 ### Building
15
16 CMake 3.9+ is required to build.
17
18 `<install-path>` must be an absolute path in the following instructions.
19
20 #### Linux-Only Dependencies
21
22 If you are building on Linux, you will need to build aws-lc and s2n-tls first.
23
24 ```
25 git clone [email protected]:awslabs/aws-lc.git
26 cmake -S aws-lc -B aws-lc/build -DCMAKE_INSTALL_PREFIX=<install-path>
27 cmake --build aws-lc/build --target install
28
29 git clone [email protected]:aws/s2n-tls.git
30 cmake -S s2n-tls -B s2n-tls/build -DCMAKE_INSTALL_PREFIX=<install-path> -DCMAKE_PREFIX_PATH=<install-path>
31 cmake --build s2n-tls/build --target install
32 ```
33
34 #### Building aws-c-auth and Remaining Dependencies
35
36 ```
37 git clone [email protected]:awslabs/aws-c-common.git
38 cmake -S aws-c-common -B aws-c-common/build -DCMAKE_INSTALL_PREFIX=<install-path>
39 cmake --build aws-c-common/build --target install
40
41 git clone [email protected]:awslabs/aws-c-cal.git
42 cmake -S aws-c-cal -B aws-c-cal/build -DCMAKE_INSTALL_PREFIX=<install-path> -DCMAKE_PREFIX_PATH=<install-path>
43 cmake --build aws-c-cal/build --target install
44
45 git clone [email protected]:awslabs/aws-c-io.git
46 cmake -S aws-c-io -B aws-c-io/build -DCMAKE_INSTALL_PREFIX=<install-path> -DCMAKE_PREFIX_PATH=<install-path>
47 cmake --build aws-c-io/build --target install
48
49 git clone [email protected]:awslabs/aws-c-compression.git
50 cmake -S aws-c-compression -B aws-c-compression/build -DCMAKE_INSTALL_PREFIX=<install-path> -DCMAKE_PREFIX_PATH=<install-path>
51 cmake --build aws-c-compression/build --target install
52
53 git clone [email protected]:awslabs/aws-c-http.git
54 cmake -S aws-c-http -B aws-c-http/build -DCMAKE_INSTALL_PREFIX=<install-path> -DCMAKE_PREFIX_PATH=<install-path>
55 cmake --build aws-c-http/build --target install
56
57 git clone [email protected]:awslabs/aws-c-auth.git
58 cmake -S aws-c-auth -B aws-c-auth/build -DCMAKE_INSTALL_PREFIX=<install-path> -DCMAKE_PREFIX_PATH=<install-path>
59 cmake --build aws-c-auth/build --target install
60 ```
61
62 ### Testing
63 Certain tests require a specific environment setup in order to run successfully. This may be a specific execution
64 environment (EC2, ECS, etc...) or it may require certain environment variables to be set that configure properties
65 (often sensitive materials, like keys). Whether or not these tests are enabled is controlled by certain CMAKE
66 properties:
67 * AWS_BUILDING_ON_EC2 - indicates real IMDS credentials provider test(s) should run
68 * AWS_BUILDING_ON_ECS - indciates real ECS credentials provider tests(s) should run
69 * AWS_HAS_CI_ENVIRONMENT - indicates that all tests that require environmentally injected secrets/properties should run
70
71 Environment properties are injected by CRT builder process via the custom builder step defined in `./.builder/action/aws-c-auth-test.py`