Tradekartauth
TradeKart authentication package for private tools.
System Design
Your service calls one object, TradeKartAuth. It hands the token to TokenVerifier, which checks it against Cognito's public keys. Once the token's confirmed real, rbac.py reads the token's group and answers "which role is this?" and "can this role do X?". ssm_config.py is optional — only used at startup if you'd rather load the pool id/region from AWS SSM instead of hardcoding them.
CDK pipeline: if a stage fails
cdk deploy only creates CodePipeline; failures after that happen inside AWS (Synth, UpdatePipeline, or Publish).
- Open CodePipeline →
TradekartAuthPipeline→ click the failed execution → open the failed stage (red). - Open Details / View in CodeBuild and read the log tail (the last error line is what matters).
| Stage | Typical causes |
|---|---|
| Source | Bitbucket connection not Available; wrong repo / branch; repo missing infra/package-lock.json. |
| Build (Synth) | npm ci / tsc must run inside infra/ — the pipeline uses cd infra && … in one shell. Ensure infra/package-lock.json is committed. |
| UpdatePipeline | CDK bootstrap / IAM for self-mutation; upgrade CDK bootstrap if prompted. |
| Publish | PyPI token wrong or secret is JSON not raw token; bump version in version.py if twine says file already exists; KMS permission if secret uses a CMK. |
Secret format: TWINE_PASSWORD must be the raw PyPI token (pypi-Ag...). If you stored JSON in Secrets Manager, either switch to plaintext or adjust the pipeline to parse JSON.
After changing infra/lib/pipeline-stack.ts, run cd infra && npm run build && npx cdk deploy ... again to update the pipeline.
Metadata
Release files for tradekartauth 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tradekartauth-0.2.0.tar.gz | 10.9 kB | Without provenance | Details for tradekartauth-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tradekartauth-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for tradekartauth-0.2.0-py3-none-any.whl |
Total release size: 19.8 kB
Release files / tradekartauth-0.2.0.tar.gz
| Download URL | tradekartauth-0.2.0.tar.gz |
|---|---|
| Size | 10.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5bb23bafa56ba4f7a80e59759de10eac24767df3c64658e0eb209de5f271e822
|
|
BLAKE2b-256 checksum How to use checksums |
2fe4ca5faf7d91673409994c4b8a06c1eaa7736a351f098b5162c1a71d48f2d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.15
|
Release files / tradekartauth-0.2.0-py3-none-any.whl
| Download URL | tradekartauth-0.2.0-py3-none-any.whl |
|---|---|
| Size | 8.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e7b5a9df1d18acfe72c0a0e7ddff3c16250fcc857986b0b7a2a1423698466d0a
|
|
BLAKE2b-256 checksum How to use checksums |
84b30198dc9f6e03ae38a4fbd3033ec607ae43c7cdae2b6b745f65744a65efe1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.15
|
Security for tradekartauth 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.