-
Notifications
You must be signed in to change notification settings - Fork 365
Ruby Console Script to Find Fields that Cannot Be Decrypted
Tim Downey edited this page May 22, 2019
·
2 revisions
Go to /var/vcap/jobs/cloud_controller_ng/bin/console
Run the following in the Ruby console:
Encryptor.encrypted_classes.each do |class_name|
klass = class_name.constantize
klass.all do |model_instance|
encrypted_field = klass.all_encrypted_fields.first[:field_name]
begin
model_instance.send(encrypted_field)
rescue => e
puts "#{e} occurred"
puts "failed to decrypt #{encrypted_field} for #{klass} with guid #{model_instance.guid}"
end
end
end
-
Pipelines
-
Contributing
- Tips and Tricks
- Cloud Controller API v3 Style Guide
- Playbooks
- Development configuration
- Testing
-
Architectural Details
-
CC Resources
- Apps
- Audit Events
- Deployments
- Labels
- Services
- Sidecars
-
Dependencies
-
Troubleshooting
- Ruby Console Script to Find Fields that Cannot Be Decrypted
- Logging database queries in unit tests
- Inspecting blobstore cc resources and cc packages(webdav)
- How to Use USR1 Trap for Diagnostics
- How to Perf: Finding and Fixing Bottlenecks
- How to get access to mysql database
- How To Get a Ruby Heap Dumps & GC Stats from CC
- How to curl v4 internal endpoints with mtls
- How to access Bosh Director console and restore an outdated Cloud Config
- Analyzing Cloud Controller's NGINX logs using the toplogs script
-
k8s
-
Archive