Securely share secrets with a time-limited URL, avoiding passwords in chats or emails.
RunThings Secrets is a WordPress plugin that allows you to securely share secrets such as passwords. Create a secret URL, and share it with someone instead of leaving a password in a chat log or email thread. Set the maximum views and expiration date, so that the secret doesn’t lurk around forever.
I have a suggestion
Contribute issues on the GitHub repo:
https://github.com/runthings-dev/Secrets-WordPress
How does the encryption work?
As long as your server supports the PHP encryption library, Sodium, an encryption key is automatically generated and used to secure your secrets. However, you can set a custom encryption key in your wp-config.php file by adding a define statement.
This approach is more secure as it allows you to bring the key value from an environment variable or a third-party key storage service.
To set a custom encryption key in wp-config.php, add the following line:
define('RUNTHINGS_SECRETS_ENCRYPTION_KEY', 'your_custom_encryption_key');
Replace your_custom_encryption_key with your generated encryption key.
You can generate a new key in the options page of the plugin, which is under Admin > Settings > RunThings Secrets.
Note: Changing the encryption key will break the decryption of any existing secrets, making them unreadable.
How does the rate limiting functionality work?
There is basic rate limiting functionality included, enabled by default, to provide protection against brute force attacks by bots.
It depends on the $_SERVER['REMOTE_ADDR'] variable, which may cause issues if your userbase is all within one company, or behind the same vpn, for example.
There are other headers which could be checked, but these can be spoofed by the bots, so are not secure.
You can increase the rate limits per feature (add, created, view), and make certain trusted user roles exempt from the limits.
You can also disable the feature entirely.
This is for advanced setups, where you might want to provide your own brute force protection solution, such as using WordFence, CloudFlare, or similar technologies.
If you have access to it, some web servers can also support setting up rate limiting via their config files, which would remove the overhead of WordPress loading for each bot request.
Where can I find developer documentation?
For complete developer documentation including all available filters, hooks, and template overrides, see the DEVELOPERS.md file in the plugin directory or on GitHub: https://github.com/runthings-dev/Secrets-WordPress/blob/master/DEVELOPERS.md
How can I change the default expiration or max views?
Go to Settings → RunThings Secrets → Advanced to configure the default expiration date and max views for the add secret form.
For programmatic control, use the runthings_secrets_add_form_data filter. See DEVELOPERS.md for details: https://github.com/runthings-dev/Secrets-WordPress/blob/master/DEVELOPERS.md#add-form-data
How can I disable the validation warnings?
Use the runthings_secrets_add_form_data filter to disable warnings:
add_filter('runthings_secrets_add_form_data', function($data) { $data['show_expiration_warning'] = false; $data['show_max_views_warning'] = false; return $data; });
For complete documentation, see DEVELOPERS.md: https://github.com/runthings-dev/Secrets-WordPress/blob/master/DEVELOPERS.md#add-form-data
How can I change the timezone displayed in the “Add Secret” form?
The timezone displayed in the “Add Secret” form is set to match your WordPress site’s timezone settings. To change the displayed timezone, follow these steps:
- Navigate to your WordPress dashboard. Go to the ‘Settings’ menu.
- Click on ‘General’. Here you will find the ‘Timezone’ setting.
- Select your desired timezone. You can choose from a list of cities representing timezones or UTC time offsets. Once you select a new timezone, it will affect how times and dates are displayed across your entire WordPress site, including the “Add Secret” form.
- Save Changes. After selecting your new timezone, be sure to click ‘Save Changes’ at the bottom of the page to apply your settings.
Remember, the timezone setting not only affects the display of dates in the “Add Secret” form but also how the expiration dates are processed within the plugin.
What was the inspiration for this plugin?
It was inspired by sites like https://pwpush.com and https://github.com/unicalabs/agrippa.
I’m developing this to have it in the WordPress ecosystem, so that it can be easily branded and integrated into sites.
Thanks
Copy To Clipboard – SVG Icon from https://www.svgrepo.com/svg/389087/clipboard-copy (MIT Licence)
Plugin Icon – Secret by Side Project, on Noun Project, from https://thenounproject.com/browse/icons/term/secret/ (CC BY 3.0)
Third-Party Services
This plugin uses the following third-party service:
Google reCAPTCHA v3
This plugin can make use of Google reCAPTCHA v3 to prevent spam and abuse. Google reCAPTCHA is used to ensure that the requests are made by humans and not by bots.
- Service URL: https://www.google.com/recaptcha
- Terms of Use: https://www.google.com/recaptcha/terms
- Privacy Policy: https://policies.google.com/privacy
When you enable reCAPTCHA in the plugin settings, it will send user data, such as the user’s IP address and any data entered in the reCAPTCHA widget, to Google for verification.