Troubleshooting
Failure Creating Vault in Katta Web
Katta Web checks the bucket and uploads the vault template to the S3 bucket directly from the browser. Two things must be configured for this to work:
The following only applies to Katta Web. Katta Desktop is not subject to browser Content Security Policy (CSP) and CORS restrictions.
-
S3 Bucket CORS Settings. The bucket S3 endpoint must allow requests from the Katta Web origin. Refer to S3 Bucket CORS Settings in the Admin Guide for setup instructions.
If the CORS settings are missing or incomplete, vault creation fails with
Your browser cannot connect to the bucket.Browsers report a wrong storage endpoint or a failed network connection the same way; the browser console has the details. Expand Show CORS setup command for anaws s3api put-bucket-corscommand with the bucket name, endpoint and Katta Web origin already filled in. -
Content Security Policy (CSP) Settings. The Content Security Policy (CSP) settings of Katta Server must include the S3 endpoints of the storage profile. If a host is missing, vault creation fails with
This Katta Server's Content Security Policy blocks connections to your-storage-provider.example.comnaming the blocked endpoint. The browser blocks the request before it is sent and logs the violation to the console:Connecting to 'https://your-storage-provider.example.com' violates the following Content Security Policy directive: "connect-src 'self' minio.localhost:9100 http://keycloak.localhost:8380". The action has been blocked.The
connect-srcdirective must list every host the browser talks to directly:- Katta Server itself, covered by
'self' - The Keycloak URL
- The S3 endpoint of each storage profile
- The STS endpoint of each storage profile
Refer to Deployment in the Self-Hosting Guide for setup instructions.
noteA browser only applies a changed policy after reloading the page. Reload Katta Web and start the vault creation again. This generates a new recovery key, so discard the one shown before.
tipVerify the effective policy with:
curl -sI https://your-katta-server.example.com/ | grep -i content-security-policyThat will print the response header like:
Content-Security-Policy: default-src 'self'; connect-src 'self' https://keycloak.example.com https://*.wasabisys.com; object-src 'none'; child-src 'self'; img-src * data:; frame-ancestors 'none' - Katta Server itself, covered by