-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #128 from asfadmin/teatest-build.123-release
Release teatest-build.123 publically
- Loading branch information
Showing
8 changed files
with
111 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
jinja2==2.10.1 | ||
PyYAML==5.2 | ||
jinja2==2.11.1 | ||
PyYAML==5.3 | ||
aws-requests-auth==0.4.2 | ||
pyjwt==1.7.1 | ||
jwcrypto==0.6.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#! /usr/bash | ||
|
||
|
||
function GENERATE_JWTKEYS_FILE { | ||
cat > /tmp/jwtkeys.json <<EOL | ||
{ | ||
"rsa_priv_key": "${rsa_priv_key}", | ||
"rsa_pub_key": "${rsa_pub_key}" | ||
} | ||
EOL | ||
|
||
} | ||
|
||
function GENERATE_TEA_CREDS { | ||
cd /tmp || exit 1 | ||
ssh-keygen -t rsa -b 4096 -m PEM -f ./jwtcookie.key -N '' | ||
openssl base64 -in jwtcookie.key -out jwtcookie.key.b64 | ||
openssl base64 -in jwtcookie.key.pub -out jwtcookie.key.pub.b64 | ||
|
||
export rsa_priv_key=$(<jwtcookie.key.b64) | ||
export rsa_pub_key=$(<jwtcookie.key.pub.b64) | ||
rm jwtcookie.key* | ||
GENERATE_JWTKEYS_FILE | ||
} | ||
|
||
GENERATE_TEA_CREDS | ||
aws secretsmanager create-secret --name tt_for_tea --profile ${profile_name:-default} --region ${aws_region:-us-east-1} \ | ||
--description "RS256 keys for TEA app JWT cookies" \ | ||
--secret-string file:/tmp/jwtkeys.json | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters