mirror of
https://github.com/storytold/artcraft-services.git
synced 2026-11-20 01:14:47 +01:00
Resolves the bundled-asset and script security findings SonarCloud reports outside vendored code. - **Web:S5725** `frontend/api_docs.html` — Swagger UI was loaded over protocol-relative `//unpkg.com` URLs with no integrity check. Now `https://` plus `integrity`/`crossorigin` on all three assets. - **shell:S6505** the three remaining `npx` calls in Netlify/dev scripts now pass `--no-install`, so they run the pinned local binary instead of downloading and running one. - **secrets:S6418** removed the long-dead MinIO access/secret key pair commented out in the deprecated inference-job env file. - **python:S4790** the Gravatar hash is an MD5 identifier required by Gravatar's URL scheme, so it is marked `usedforsecurity=False`. Verified: file contents diffed against the previous URLs; no build-affecting script semantics changed (`--no-install` only rejects on-demand downloads). <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Bug Fixes** * API documentation resources now load over HTTPS with integrity verification. * Account-copying operations preserve their existing output while supporting environments that restrict security-related hashing. * **Chores** * Build and cleanup commands use locally available tooling and continue cleanup if the reset command fails. * Removed commented-out credential settings from the development configuration. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
35 lines
1.4 KiB
HTML
35 lines
1.4 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<meta name="description" content="SwaggerUI" />
|
|
<title>Storyteller API</title>
|
|
<link rel="stylesheet" href="https://unpkg.com/swagger-ui-dist@5.32.0/swagger-ui.css" integrity="sha384-3nuX7df3EaAoiqLBeyS1Ola0Gpg9ryJKVtarubwfnA1cOH8AWHUdbPSIvEqPZ9VH" crossorigin="anonymous" />
|
|
</head>
|
|
<body>
|
|
|
|
<div id="swagger-ui"></div>
|
|
|
|
<script src="https://unpkg.com/swagger-ui-dist@5.32.0/swagger-ui-bundle.js" integrity="sha384-7xcoc6ZKDFF7Ek627QTC3Bg/K+5Y36NJ8MWAE43D2m6+3Sh9XO3tdsfHhrS8gNIQ" crossorigin="anonymous"></script>
|
|
<script src="https://unpkg.com/swagger-ui-dist@5.32.0/swagger-ui-standalone-preset.js" integrity="sha384-FjFI+0PRyd5aAEoduVmUYk65iDC5+onNzam4WJtbAKKBim/kWvGUMk/2+9qRaYZb" crossorigin="anonymous"></script>
|
|
<script>
|
|
window.onload = () => {
|
|
window.ui = SwaggerUIBundle({
|
|
url: 'api.json',
|
|
dom_id: '#swagger-ui',
|
|
deepLinking: true,
|
|
presets: [
|
|
SwaggerUIBundle.presets.apis,
|
|
SwaggerUIStandalonePreset
|
|
],
|
|
layout: "StandaloneLayout",
|
|
tagsSorter: 'alpha', // Sort tags (endpoint groupings) alphabetically
|
|
defaultModelRendering: 'model', // Show model instead of "example request"
|
|
defaultModelExpandDepth: 6,
|
|
});
|
|
};
|
|
</script>
|
|
</body>
|
|
</html>
|