{"action":"created","issue":{"url":"https://api.github.com/repos/orientechnologies/orientdb/issues/6231","repository_url":"https://api.github.com/repos/orientechnologies/orientdb","labels_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/6231/labels{/name}","comments_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/6231/comments","events_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/6231/events","html_url":"https://github.com/orientechnologies/orientdb/issues/6231","id":157535283,"number":6231,"title":"Encryption at rest not supported by OrientGraphFactory","user":{"login":"odbuser2","id":5525594,"avatar_url":"https://avatars.githubusercontent.com/u/5525594?v=3","gravatar_id":"","url":"https://api.github.com/users/odbuser2","html_url":"https://github.com/odbuser2","followers_url":"https://api.github.com/users/odbuser2/followers","following_url":"https://api.github.com/users/odbuser2/following{/other_user}","gists_url":"https://api.github.com/users/odbuser2/gists{/gist_id}","starred_url":"https://api.github.com/users/odbuser2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/odbuser2/subscriptions","organizations_url":"https://api.github.com/users/odbuser2/orgs","repos_url":"https://api.github.com/users/odbuser2/repos","events_url":"https://api.github.com/users/odbuser2/events{/privacy}","received_events_url":"https://api.github.com/users/odbuser2/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/orientechnologies/orientdb/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"robfrank","id":413587,"avatar_url":"https://avatars.githubusercontent.com/u/413587?v=3","gravatar_id":"","url":"https://api.github.com/users/robfrank","html_url":"https://github.com/robfrank","followers_url":"https://api.github.com/users/robfrank/followers","following_url":"https://api.github.com/users/robfrank/following{/other_user}","gists_url":"https://api.github.com/users/robfrank/gists{/gist_id}","starred_url":"https://api.github.com/users/robfrank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robfrank/subscriptions","organizations_url":"https://api.github.com/users/robfrank/orgs","repos_url":"https://api.github.com/users/robfrank/repos","events_url":"https://api.github.com/users/robfrank/events{/privacy}","received_events_url":"https://api.github.com/users/robfrank/received_events","type":"User","site_admin":false},"assignees":[{"login":"robfrank","id":413587,"avatar_url":"https://avatars.githubusercontent.com/u/413587?v=3","gravatar_id":"","url":"https://api.github.com/users/robfrank","html_url":"https://github.com/robfrank","followers_url":"https://api.github.com/users/robfrank/followers","following_url":"https://api.github.com/users/robfrank/following{/other_user}","gists_url":"https://api.github.com/users/robfrank/gists{/gist_id}","starred_url":"https://api.github.com/users/robfrank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robfrank/subscriptions","organizations_url":"https://api.github.com/users/robfrank/orgs","repos_url":"https://api.github.com/users/robfrank/repos","events_url":"https://api.github.com/users/robfrank/events{/privacy}","received_events_url":"https://api.github.com/users/robfrank/received_events","type":"User","site_admin":false},{"login":"tglman","id":424369,"avatar_url":"https://avatars.githubusercontent.com/u/424369?v=3","gravatar_id":"","url":"https://api.github.com/users/tglman","html_url":"https://github.com/tglman","followers_url":"https://api.github.com/users/tglman/followers","following_url":"https://api.github.com/users/tglman/following{/other_user}","gists_url":"https://api.github.com/users/tglman/gists{/gist_id}","starred_url":"https://api.github.com/users/tglman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tglman/subscriptions","organizations_url":"https://api.github.com/users/tglman/orgs","repos_url":"https://api.github.com/users/tglman/repos","events_url":"https://api.github.com/users/tglman/events{/privacy}","received_events_url":"https://api.github.com/users/tglman/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2016-05-30T17:11:33Z","updated_at":"2016-07-14T04:27:37Z","closed_at":null,"body":"## Expected behavior and actual behavior\r\nExpected : OrientGraphFactory should contain methods/arguments to support encryption method/key like ODatabaseDocumentTx.\r\n\r\nActual : OrientGraphFactory does not contain methods/arguments to support encryption method/key\r\n\r\n## Steps to reproduce the problem\r\nJust look at the OrientGraphFactory creation options.  The closest support is to use:\r\n`public OrientGraphFactory(String iURL, String iUser, String iPassword, OPartitionedDatabasePool pool)\r\n`\r\nand supply a custom OPartitionedDatabasePool however extending this class will not work.  You could extend it and override:\r\n`protected void openDatabase(final DatabaseDocumentTxPolled db)`\r\nand create your own DatabaseDocumentTxPolled but DatabaseDocumentTxPolled is private which prevents you from overriding openDatabase.\r\n\r\ne.g. you can't do this:\r\n```\r\nOrientGraphFactory oGF = new OrientGraphFactory(url, user, pword, \r\n        new OPartitionedDatabasePool(url, user, pword) {\r\n    @Override\r\n    protected void openDatabase(OPartitionedDatabasePool.DatabaseDocumentTxPolled db) {\r\n        db.setProperty(OGlobalConfiguration.STORAGE_ENCRYPTION_METHOD.getKey(), method);\r\n        db.setProperty(OGlobalConfiguration.STORAGE_ENCRYPTION_KEY.getKey(), key);        \r\n        super.openDatabase(db);\r\n    }\r\n});\r\n```\r\n\r\nEven so, it would be better to be able to set these properties via the constructor or builder/fluent design of OrientGraphFactory before the db is opened.\r\n\r\n## Important Questions\r\n\r\n### Runninng Mode\r\n- [x] Embedded, using PLOCAL access mode\r\n- [ ] Embedded, using MEMORY access mode\r\n- [ ] Remote\r\n\r\n### Misc\r\n- [ ] I have a distributed setup with multiple servers. How many? \r\n- [ ] I'm using the Enterprise Edition\r\n\r\n### OrientDB Version\r\n- [ ] v2.0.x - Please specify last number: \r\n- [ ] v2.1.x - Please specify last number: \r\n- [x] v2.2.x - Please specify last number: \r\n\r\n### Operating System\r\n- [ ] Linux\r\n- [x] MacOSX\r\n- [ ] Windows\r\n- [ ] Other Unix\r\n- [ ] Other, name? \r\n\r\n### Java Version\r\n- [ ] 6\r\n- [ ] 7\r\n- [x] 8\r\n"},"comment":{"url":"https://api.github.com/repos/orientechnologies/orientdb/issues/comments/232553724","html_url":"https://github.com/orientechnologies/orientdb/issues/6231#issuecomment-232553724","issue_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/6231","id":232553724,"user":{"login":"lvca","id":312606,"avatar_url":"https://avatars.githubusercontent.com/u/312606?v=3","gravatar_id":"","url":"https://api.github.com/users/lvca","html_url":"https://github.com/lvca","followers_url":"https://api.github.com/users/lvca/followers","following_url":"https://api.github.com/users/lvca/following{/other_user}","gists_url":"https://api.github.com/users/lvca/gists{/gist_id}","starred_url":"https://api.github.com/users/lvca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lvca/subscriptions","organizations_url":"https://api.github.com/users/lvca/orgs","repos_url":"https://api.github.com/users/lvca/repos","events_url":"https://api.github.com/users/lvca/events{/privacy}","received_events_url":"https://api.github.com/users/lvca/received_events","type":"User","site_admin":false},"created_at":"2016-07-14T04:27:37Z","updated_at":"2016-07-14T04:27:37Z","body":"@robfrank can you take this?"}}
{"actor":{"display_login":"lvca"}}