-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WIP] Add views and forms for verifying AWS user identity.
In order for a person to verify their AWS identity, they need to provide a digital signature, in the form of a signed URL that includes their account ID and user ID in the path. We further require the URL to include the domain name of the site, and the user's primary email address, to prevent misuse. This signed URL can be generated using the AWS CLI. However, the URL must be exactly correct; if it is wrong, it is difficult to tell why. In order to hopefully avoid confusion, we first ask the person to run 'aws sts get-caller-identity'; based on that, we tell them the exact 'aws s3 presign' command they need to run.
- Loading branch information
Benjamin Moody
committed
Oct 30, 2023
1 parent
e655251
commit 15b6210
Showing
5 changed files
with
223 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{% extends "user/settings.html" %} | ||
|
||
{% block title %}Verify AWS Account{% endblock %} | ||
|
||
{% block main_content %} | ||
<h1 class="form-signin-heading">Verify <abbr title="Amazon Web Services">AWS</abbr> Account</h1> | ||
<hr> | ||
|
||
<form action="" method="post"> | ||
{% csrf_token %} | ||
<p> | ||
To verify your Amazon Web Services account using the | ||
<a href="https://aws.amazon.com/cli/"><abbr title="Amazon Web Services">AWS</abbr> Command Line Interface</a>: | ||
</p> | ||
<ol> | ||
<li> | ||
Open a terminal and run the following command (one line): | ||
<pre><code>{{ form.aws_verification_command }}</code></pre> | ||
</li> | ||
<li> | ||
Copy and paste the output into the box below. | ||
{% include "form_snippet_no_labels.html" %} | ||
</li> | ||
</ol> | ||
<button class="btn btn-primary btn-custom btn-rsp" | ||
type="submit">Save</button> | ||
</form> | ||
{% endblock %} |
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