Displaying 20 results from an estimated 3000 matches similar to: "encrypting databases"
2006 Feb 11
5
after_(read|find) callback?
I am pondering the possibility of encrypting/decrypting some fields
in a SQLite backend on-the-fly.
The point of the message is not security, I know that''s broken, but
whether there''s a technique that provides on-the-fly save/read
filters. Of course the solution would need to work transparently in
joins, so
user.posts.last.title
would do the right thing if title
2006 May 24
1
Observer behavior differences between DEV and TEST environments ?
Hi all !
I''m having an issue and I can''t seem to make heads or tails of it.
I am attempting to add an observer to a model object. I created
app/models/greenback_transaction_observer.rb, inherited from
AR::Observer, defined methods, registered in config/environment.rb,
but things don''t work...
So, I took a step back and put in the following code:
class
2006 Mar 13
0
Encrypting data before saving
Hi,
In the pragmatic rails book, a password is hashed and saved using the
callback before_create. To do this it sets up an accessor called
''password'' and saves the SHA1 output in the backend as
''hashed_password''.
I''ve done a similar thing, but instead of using an accessor I simply use
''password'' for both and assign using:
def
2006 Aug 11
1
after_initialize and after_save
Hello,
I am still reading Agile Web Developer pdf, it says about
after_initialize and after_find. There is a Joe asks part when I read
that they are special, however I didn''t really get the idea, why they are.
On rubyonrails.org in the manual there is some sort description about
their speciality, however their full descriptions are missing.
What are the difference between
2008 Mar 18
0
Major issues with ActiveRecord callbacks in BackgroundRb r324
Hi there
I''ve been running BackgroundRb in production for a few months now. Recently
we added encryption onto some of our ActiveRecord fields by hooking in the
before_save and after_save callbacks, like:
class MyCallback
def initialize(attr_names)
@attr_names = attr_names
end
def before_save(model)
@attr_names.each do |attr_name|
next if
2006 Feb 19
2
Asynchronous Encryption?
Hi Railers,
I''m looking for something to do asynchronous encryption - where the encryption
and decryption keys are different. This is for a scenario where I want to be
able to store some information in the database that can only be decrypted in
a different physical location using a secret private key (which will not be
stored on the machine doing the encrypting).
I''m trying
2006 Jun 27
0
[UPDATE] acts_as_modified 1.1.3 now with tests (was Re: plugin, acts_as_modified 1.1.2)
Ask and ye shall receive.
1.1.3 now has a plugin test. i had one small issue with after_save
being called, so i added the callback in. it works when i create a
test app and run the unit tests so i think it has something to do with
how i override the save method. if you have any suggestions, please
feel free to comment.
As far as the AR test suite goes...I''m not sure how this plugin
2006 Feb 06
5
Sentry Plugin - Easy Question I don''t doubt
I am looking at adding the Sentry plugin to one of the applications
that we are working on. I have a need to store some info that will
have to be encrypted and decrypted. I have been going through the
docs for the plugin and the AsymetricSentry class looks like the best
for what we need to do but I am not sure how to generate the key. The
docs say:
This is a shortcut for using an
2006 Nov 19
1
ActiveRecord save-update not performed ?
I try to understand the following issue :
- when creating a new User record, I use an UserObserver to trap the
before_save call back and send an email
def after_create(user)
UserNotifier.deliver_signup_notification(user)
end
- Once created a user can ask for a password reset, which is also
trapped by the UserOberver
def after_save(user)
UserNotifier.deliver_reset_password(user) if
2010 Aug 18
11
When after_save isn't after the save....
I have a Production model, which represents a farmer''s crop. After
create (via after_save) I call a method that creates one or more
Supply models, which represent a week of anticipated product harvest.
After each of those are created, a class method gets called that tries
to match each new Supply with outstanding orders for the same time
period. If a match is made, a transaction (an
2005 Nov 04
0
after_find callback in an acts_as plugin
Hi,
I am thinking about writing an acts_as_fox plugin that defines an
after_find callback method. If I do this what will happen if a user
creates a model that acts_as_fox but this model has it''s own
after_find callback method? I imagine that the model''s after_find
method shadows the plugin''s after_find. Presumably both after_find
callbacks would need to be performed but
2006 Jul 06
0
updating model bypasses callbacks
Hi,
Very quickly, I''m having trouble calling my before_save ro before_update
callbacks when I do something like User.update(id, params["user"]). I
notice that Rails is calling after_save but for some reason it doesn''t
call the before_save or before_update callbacks. Any thoughts would be
appreciated.
Thanks.
--
Posted via http://www.ruby-forum.com/.
2006 Jul 20
0
Custom Rails Application Logging
I am trying to add custom logging to my rails app via a ''.rb'' module
file in the ''/lib'' directory and then call it from my models via
CallBacks (ie: before_save, after_save, etc).
It loads the module just fine in my class and the CallBack executes the
module''s code. However, my module (remember it''s in the ''/lib''
2006 Aug 15
1
Update attribute without validations or any save hooks?
If I wanted to update an attribute with calling any validation or any of
the before_save and after_save hooks, how would I go about doing this?
Supposed the update_attribute method calls the before and after save
methods.
Thanks for your help.
--
Posted via http://www.ruby-forum.com/.
2006 Jul 11
1
Determine if attributes changed?
Is there a way to determine if attributes were changed? Let''s say in
the before_save or after_save method?
Thanks for your help.
Thank You,
Ben Johnson
E: bjohnson@contuitive.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060711/442b20d2/attachment.html
2019 Sep 09
0
smbldap-showuser and ldapsearch can't show groups user belongs to.
On 09/09/2019 16:55, Mauricio Tavares wrote:
> On Fri, Sep 6, 2019 at 4:12 PM Rowland penny via samba
> <samba at lists.samba.org> wrote:
>> On 06/09/2019 20:14, Mauricio Tavares via samba wrote:
>>> Quick-n-easy questions:
>>>
>>> Let's say user raub is added to group nosy using smbldap-groupmod
>>>
>>> smbldap-groupmod -m raub
2019 Sep 06
4
smbldap-showuser and ldapsearch can't show groups user belongs to.
Quick-n-easy questions:
Let's say user raub is added to group nosy using smbldap-groupmod
smbldap-groupmod -m raub nosy
Now, according to ol' ldapsearch,
ldapsearch -vvv -H "ldaps://ldap.example.com" -D
"uid=admin,ou=People,dc=example,dc=com" -W -b "dc=example,dc=com" -s
sub "(cn-nosy)"
group nosy has a dn attribute that looks like this
dn:
2007 Dec 10
2
Help with encryption
So I have this key information that I got by generating a private and
public key in VB, but it gave it to me in the form of a modulus and
exponent in an XML file. Now, I need to encrypt some stuff in ruby using
that info. On this site:
http://blog.internautdesign.com/2007/11/2/ruby-openssl-rsa-public-key-from-modulus-and-exponent/comments/165,
they explain how to do that, but clearly this info is
2008 Mar 11
6
saving an ActiveRecord without trigging the callbacks
Hello,
How can I save an ActiveRecord without trigger before_save,
after_save, etc?
Thanks for the help.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group,
2012 Nov 10
6
Suggestion: `before_save on: :create` should either work or raise an exception
There''s a small inconsistency in ActiveRecord''s callback syntax that has
tripped me up before. It wouldn''t be a big deal, but it can lead to a
silent failure. I''d like to suggest that it either be made consistent or be
made to fail loudly.
The issue is that to do something before validating, but only when
creating, you use `before_validation on: :create`,