Skip to content

Commit 35be88f

Browse files
docs: preview #98 at 9f4262a
1 parent dfb97c9 commit 35be88f

7 files changed

Lines changed: 13 additions & 9 deletions

File tree

‎pr-preview/pr-98/configuration/index.html‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ <h1 id="configuration">Configuration</h1>
7878
<td><code>SOURCE_PROXY_URL</code></td>
7979
<td><code>--proxy-url</code></td>
8080
<td><code>https://data.source.coop</code></td>
81-
<td>The environment: the data proxy, and the session and credentials to use</td>
81+
<td>The environment: the data proxy (the S3 endpoint for AWS tools), and the session and credentials to use</td>
8282
</tr>
8383
<tr>
8484
<td><code>SOURCE_API_URL</code></td>
@@ -204,7 +204,7 @@ <h3 id="sign-in-options">Sign-in options</h3>
204204
<td><code>--proxy-url</code></td>
205205
<td><code>SOURCE_PROXY_URL</code></td>
206206
<td><code>https://data.source.coop</code></td>
207-
<td>S3 proxy URL for STS. Also selects the environment of the session.</td>
207+
<td>The data proxy: the S3 endpoint for AWS tools, and the URL for STS. Also selects the environment of the session.</td>
208208
</tr>
209209
<tr>
210210
<td><code>--role-arn</code></td>

‎pr-preview/pr-98/demos/auth-logout.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
{
2-
"duration": 13.88,
2+
"duration": 14.566,
33
"steps": [
44
{
55
"time": 0.757,
66
"label": "$ source-coop auth logout --json | jq -c"
77
},
88
{
9-
"time": 5.372,
9+
"time": 6.045,
1010
"label": "$ source-coop auth status"
1111
},
1212
{
13-
"time": 9.241,
13+
"time": 9.935,
1414
"label": "$ source-coop creds; echo \"exit $?\""
1515
}
1616
],

‎pr-preview/pr-98/demos/auth-logout.svg‎

Lines changed: 1 addition & 1 deletion
Loading

‎pr-preview/pr-98/reading-data-with-aws-tools/index.html‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@
6363
</nav>
6464
<main id="main">
6565
<h1 id="reading-data-with-aws-tools">Reading data with AWS tools</h1>
66+
<p>Each product's data is at <code>s3://ACCOUNT/PRODUCT/</code> on the data proxy, <code>https://data.source.coop</code>. Public data needs no sign-in. <a href="https://docs.source.coop/data-proxy">Access Data</a> on docs.source.coop shows how to read it, anonymously or signed in, with the AWS CLI, DuckDB, GDAL and Python.</p>
67+
<p>This section covers the credentials the CLI gives AWS tools, for restricted data and for <a href="../uploading-data-with-aws-tools/">writes</a>.</p>
6668
<h3 id="aws-credentialprocess">AWS <code>credential_process</code></h3>
6769
<ol>
6870
<li>

‎pr-preview/pr-98/scripts-and-ai-agents/index.html‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
<nav class="toc" aria-label="Guide">
5959
<details open>
6060
<summary>Contents</summary>
61-
<ul><li class="group">Get started</li><li><a href="../">Overview</a></li><li><a href="../install/">Install</a></li><li><a href="../signing-in/">Signing in</a></li><li class="group">Work with data</li><li><a href="../reading-data-with-aws-tools/">Reading data with AWS tools</a></li><li><a href="../uploading-data-with-aws-tools/">Uploading data with AWS tools</a></li><li class="group">Manage source.coop</li><li><a href="../accounts/">Accounts</a></li><li><a href="../products/">Products</a></li><li><a href="../members/">Members</a></li><li><a href="../invitations/">Invitations</a></li><li><a href="../service-accounts/">Service accounts</a></li><li class="group">How commands work</li><li><a href="../prompts/">Prompts</a></li><li><a href="../browsing-with--i/">Browsing with <code>-i</code></a></li><li><a href="../shell-completion/">Shell completion</a></li><li class="group">Automate</li><li><a href="../scripts-and-ai-agents/" aria-current="page">Scripts and AI agents</a><ul><li><a href="#agent-skill">Agent skill</a></li><li><a href="#output">Output</a></li><li><a href="#json">JSON</a></li><li><a href="#exit-codes">Exit codes</a></li><li><a href="#use-the-api-without-signing-in">Use the API without signing in</a></li><li><a href="#use-your-session-with-other-tools">Use your session with other tools</a></li></ul></li><li><a href="../any-api-request/">Any API request</a></li><li class="group">Reference</li><li><a href="../configuration/">Configuration</a></li><li><a href="../credential-storage/">Credential storage</a></li><li><a href="../troubleshooting/">Troubleshooting</a></li></ul>
61+
<ul><li class="group">Get started</li><li><a href="../">Overview</a></li><li><a href="../install/">Install</a></li><li><a href="../signing-in/">Signing in</a></li><li class="group">Work with data</li><li><a href="../reading-data-with-aws-tools/">Reading data with AWS tools</a></li><li><a href="../uploading-data-with-aws-tools/">Uploading data with AWS tools</a></li><li class="group">Manage source.coop</li><li><a href="../accounts/">Accounts</a></li><li><a href="../products/">Products</a></li><li><a href="../members/">Members</a></li><li><a href="../invitations/">Invitations</a></li><li><a href="../service-accounts/">Service accounts</a></li><li class="group">How commands work</li><li><a href="../prompts/">Prompts</a></li><li><a href="../browsing-with--i/">Browsing with <code>-i</code></a></li><li><a href="../shell-completion/">Shell completion</a></li><li class="group">Automate</li><li><a href="../scripts-and-ai-agents/" aria-current="page">Scripts and AI agents</a><ul><li><a href="#agent-skill">Agent skill</a></li><li><a href="#output">Output</a></li><li><a href="#json">JSON</a></li><li><a href="#exit-codes">Exit codes</a></li><li><a href="#read-data">Read data</a></li><li><a href="#use-the-api-without-signing-in">Use the API without signing in</a></li><li><a href="#use-your-session-with-other-tools">Use your session with other tools</a></li></ul></li><li><a href="../any-api-request/">Any API request</a></li><li class="group">Reference</li><li><a href="../configuration/">Configuration</a></li><li><a href="../credential-storage/">Credential storage</a></li><li><a href="../troubleshooting/">Troubleshooting</a></li></ul>
6262
</details>
6363
</nav>
6464
<main id="main">
@@ -145,6 +145,8 @@ <h3 id="exit-codes">Exit codes</h3>
145145
</tbody>
146146
</table></div>
147147
<figure class="demo" data-demo="scripting"><noscript><img src="../demos/scripting.svg" alt="Without a terminal: errors, --json, exit codes and -F -"></noscript><figcaption>Without a terminal: errors, <code>--json</code>, exit codes and <code>-F -</code></figcaption></figure>
148+
<h3 id="read-data">Read data</h3>
149+
<p>A product's data is at <code>s3://ACCOUNT/PRODUCT/</code> on the data proxy (<code>--proxy-url</code>, <code>https://data.source.coop</code> by default). Public data needs no sign-in; <a href="https://docs.source.coop/data-proxy">Access Data</a> shows each tool's settings. Restricted data and writes need the credentials from <code>creds</code> (see <a href="../reading-data-with-aws-tools/">Reading data with AWS tools</a>).</p>
148150
<h3 id="use-the-api-without-signing-in">Use the API without signing in</h3>
149151
<p>If <code>SOURCE_TOKEN</code> is set, the CLI sends it to the API instead of the session's access token. Thus a script or CI job can use the API without <code>auth login</code>.</p>
150152
<h3 id="use-your-session-with-other-tools">Use your session with other tools</h3>

‎pr-preview/pr-98/search.json‎

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

‎pr-preview/pr-98/troubleshooting/index.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
<main id="main">
6565
<h1 id="troubleshooting">Troubleshooting</h1>
6666
<p><strong><code>Your login has expired. Run 'source-coop auth login'.</code></strong> The session's refresh token expired or was revoked. Sign in again. <code>source-coop auth status</code> estimates when it expires.</p>
67-
<p><strong><code>Couldn't get new credentials (…). Run 'source-coop auth login'.</code></strong> <code>creds</code> could not renew a role's credentials. AWS tools show this message as their own error. The reason is in the brackets. Usually the session has expired, so sign in again.</p>
67+
<p><strong><code>Couldn't get new credentials (…). Run 'source-coop auth login'.</code></strong> <code>creds</code> could not renew a role's credentials. AWS tools show this message as their own error. The reason is in the brackets. Usually the session has expired, so sign in again. The message also says that public data needs no credentials (see <a href="https://docs.source.coop/data-proxy">Access Data</a>).</p>
6868
<p><strong>macOS asks for your keychain password.</strong> macOS asks the first time a new build reads the <code>source-coop-cli</code> keychain items, for example after an upgrade. Select <strong>Always Allow</strong> so that it does not ask again until the next upgrade.</p>
6969
<p><strong><code>AccessDenied</code> from AWS tools.</strong> The data proxy refused the request. To read a product that is not public, or to write to any product, you must be a member with a role that allows it. Writes have more conditions, in <a href="../uploading-data-with-aws-tools/">Uploading data</a>. Check your role with <code>source-coop member list ACCOUNT</code> (the organization) or <code>ACCOUNT/PRODUCT</code>.</p>
7070
<p><strong>Exit code 4 or 5.</strong> A command exits with 4 when you are not signed in or not allowed, and 5 when the record does not exist. With <code>--json</code>, the error on stderr gives the HTTP <code>status</code> and, if the API sent one, a <code>request_id</code>. See <a href="../scripts-and-ai-agents/#exit-codes">Exit codes</a>.</p>

0 commit comments

Comments
 (0)