lucky_sec_tester
Version, currently 0.3.36 versions
github.com/luckyframework/lucky_sec_tester
No description declared in shard.yml.
4 stars
1 dependent
License: MIT
Installation
# Add this to your shard.yml
dependencies:
lucky_sec_tester:
github: luckyframework/lucky_sec_tester
version: ~> 0.3.3Then run:
shards installshard.yml
- Crystal
~> 1.6- License
- MIT
- Authors
- Jeremy Woertink, Bar Hofesh
Dependencies
Runtime Dependencies
- habitat>= 0.4.7, < 0.5github: luckyframework/habitat
- sec_tester>= 1.6.14github: NeuraLegion/sec-tester-cr
Development Dependencies
- ameba~> 1.5.0github: crystal-ameba/amebadev
README
lucky_sec_tester
LuckySecTester is a thin wrapper around the Bright SecTester used to ensure a smooth Lucky integration.
Use this in your specs and CI to test security vulnerabilities.
Installation
-
Add the dependency to your
shard.yml:development_dependencies: lucky_sec_tester: github: luckyframework/lucky_sec_tester -
Run
shards install
Usage
Create a new file in spec/setup/sec_tester.cr
# spec/setup/sec_tester.cr
require "lucky_sec_tester"
LuckySecTester.configure do |settings|
# This is your API key
settings.bright_token = ENV["BRIGHT_TOKEN"]
# Your project ID which could be environment based, or for app specific
# if your company has many projects
settings.project_id = LuckyEnv.staging? "staging-id123" : "default-id123"
end
Next, you'll create your spec directory for all of your security tests. Since these tests will make external API calls, we can use a compiler flag to optionally enable them.
# spec/security_flows/security_spec.cr
{% skip_file unless flag?(:test_security) %}
require "../spec_helper"
describe "Security Testing" do
# TODO: ...
end
private def scanner
LuckySecTester.new
end
Development
TODO: Write development instructions here
Contributing
- Fork it (https://github.com/luckyframework/lucky_sec_tester/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- Jeremy Woertink - creator and maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.3.3- Tagged
- Jun 18, 2024
- Commit
67f26658923f- Crystal
~> 1.6- Indexed
- yes
Dependents
Repository
github.com/luckyframework/lucky_sec_tester
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 15, 2026
- Synced
- Aug 15, 2026
- Versions
- 6