You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Stephen Darlington (Jira)" <ji...@apache.org> on 2021/01/26 17:40:00 UTC

[jira] [Updated] (IGNITE-14067) CREATE TABLE with template doesn't use isEncryptionEnabled flag

     [ https://issues.apache.org/jira/browse/IGNITE-14067?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stephen Darlington updated IGNITE-14067:
----------------------------------------
    Description: 
If I create a cache template:

{{CacheConfiguration encryptedCacheTemplate = new CacheConfiguration();}}
{{encryptedCacheTemplate.setName("EncryptedCacheTemplate")}}
{{.setEncryptionEnabled(true)}}
{{.setBackups(1)}}
{{.setCacheMode(CacheMode.PARTITIONED);}}
{{ignite.addCacheConfiguration(encryptedCacheTemplate);}}

And then try to use it:

{{create table ignite_enc (id long primary key, name varchar) with "template=EncryptedCacheTemplate";}}

The encryption setting is not used.

Workaround: specify the encryption flag "manually":

{{create table ignite_enc2 (id long primary key, name varchar) with "template=EncryptedCacheTemplate,encrypted=true"}}

  was:
If I create a cache template:

{{CacheConfiguration encryptedCacheTemplate = new CacheConfiguration();}}
{{encryptedCacheTemplate.setName("EncryptedCacheTemplate")}}
{{ .setEncryptionEnabled(true)}}
{{ .setBackups(1)}}
{{ .setCacheMode(CacheMode.PARTITIONED);}}
{{ignite.addCacheConfiguration(encryptedCacheTemplate);}}

And then try to use it:

{{create table ignite_enc (id long primary key, name varchar) with "template=EncryptedCacheTemplate";}}

The encryption setting is not used.

Workaround: specify the encryption flag "manually":

{{create table ignite_enc2 (id long primary key, name varchar) with "template=EncryptedCacheTemplate,encrypted=true"}}


> CREATE TABLE with template doesn't use isEncryptionEnabled flag
> ---------------------------------------------------------------
>
>                 Key: IGNITE-14067
>                 URL: https://issues.apache.org/jira/browse/IGNITE-14067
>             Project: Ignite
>          Issue Type: Bug
>          Components: cache, sql
>    Affects Versions: 2.9, 2.8.1, 2.9.1
>            Reporter: Stephen Darlington
>            Assignee: Stephen Darlington
>            Priority: Major
>
> If I create a cache template:
> {{CacheConfiguration encryptedCacheTemplate = new CacheConfiguration();}}
> {{encryptedCacheTemplate.setName("EncryptedCacheTemplate")}}
> {{.setEncryptionEnabled(true)}}
> {{.setBackups(1)}}
> {{.setCacheMode(CacheMode.PARTITIONED);}}
> {{ignite.addCacheConfiguration(encryptedCacheTemplate);}}
> And then try to use it:
> {{create table ignite_enc (id long primary key, name varchar) with "template=EncryptedCacheTemplate";}}
> The encryption setting is not used.
> Workaround: specify the encryption flag "manually":
> {{create table ignite_enc2 (id long primary key, name varchar) with "template=EncryptedCacheTemplate,encrypted=true"}}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)