Frequently Asked Questions
-
Do the keys appear in the access logs of the webserver?
No. The key-part of the generated weblinks are behind the '#' sign and therefor not sent by the browser to the backend.
-
After encryption no link is generated
Make sure that you are using HTTPS. The crypto-api of the browsers just work with encrypted connections. If encryption is active, make sure that your browser accepts cookies.
-
The site often returns status 422
Make sure that the reverse proxy hands over the real IP address of the host. If this is not the case, it might always request the aha-secret app with the same local IP and will therefor trigger the ratelimit.
-
Is the additional password just a custom password for encryption?
No, by setting an additional password, the secret is first encrypted using that password and then encrypted with a strong and random secret. This ensures that secrets with weak passwords can't be bruteforced on the server side.
-
Are the secrets stored forever?
No, after someone reveals a secret, it is automatically deleted on the server. If nobody reveals the secret, it is automatically deleted after a certain amount of time. Default: 7day
-
Are secrets deleted if someone clicks on the weblink but not on “reveal”?
No, only reveal fetches the secret from the server and triggers the deletion.
Environment Variables
The application is configured using environment variables. Use the new AHA_SECRET_*
variables for all new deployments. Deprecated variables are supported for backward compatibility but should be avoided.
See the Configuration page for a complete list and details.
For troubleshooting, environment variable reference, and advanced configuration, see the Configuration documentation.
Example:
AHA_SECRET_BASE_URL=http://localhost
AHA_SECRET_MEMCACHE_URL=localhost:11211
AHA_SECRET_SESSION_SECRET=your-secret
AHA_SECRET_APP_LOCALE=en
AHA_SECRET_CLEANUP_SCHEDULE=10m
AHA_SECRET_RATE_LIMIT=64
AHA_SECRET_RATE_LIMIT_PERIOD=60
AHA_SECRET_MAX_MSG_LENGTH=20000
SKIP_SCHEDULER=true
- For tests,
SKIP_SCHEDULER=true
is set automatically to avoid running background jobs. - For CI,
CI=true
and other test-specific variables are set automatically.
Deprecated:
MEMCACHE
,SESSION_SECRET
,APP_LOCALE
,URL
,PERMITTED_ORIGINS
(use the newAHA_SECRET_*
variables instead).