[jira] [Commented] (CASSANDRA-19110) apt-key deprecation, replace with gpg --dearmor in the docs.

2024-04-04 Thread Sebastian Marsching (Jira)


[ 
https://issues.apache.org/jira/browse/CASSANDRA-19110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17833898#comment-17833898
 ] 

Sebastian Marsching commented on CASSANDRA-19110:
-

Great, thank you [~rtib] and [~brandon.williams] for your work!

> apt-key deprecation, replace with gpg --dearmor in the docs.
> 
>
> Key: CASSANDRA-19110
> URL: https://issues.apache.org/jira/browse/CASSANDRA-19110
> Project: Cassandra
>  Issue Type: Improvement
>  Components: Documentation/Website
>Reporter: Simon K
>Assignee: Tibor Repasi
>Priority: Normal
>  Labels: pull-request-available
> Fix For: 3.0.30, 3.11.17, 4.0.13, 4.1.5, 5.0-beta2
>
>  Time Spent: 1h
>  Remaining Estimate: 0h
>
> the command `apt-key` is deprecated and soon to be removed, especially on 
> Ubuntu.
> the directory `/usr/share/keyrings` for shared keys are also being removed.
> I suggest to convert the docs from
> {code:java}
> curl https://downloads.apache.org/cassandra/KEYS | sudo apt-key add - {code}
> to a simpler command:
> {code:java}
> curl https://downloads.apache.org/cassandra/KEYS | sudo gpg --dearmor -o 
> /etc/apt/keyrings/cassandra-archive-keyring.gpg {code}
> The path `/etc/apt/keyrings` doesn't exists by default on Ubuntu 20.04 but it 
> does on 22.04.
> I also suggest to add the source.list.d text from 
> {code:java}
> $ echo "deb https://debian.cassandra.apache.org 42x main" | sudo tee -a 
> /etc/apt/sources.list.d/cassandra.sources.list
> deb https://debian.cassandra.apache.org 42x main{code}
> to 
> {code:java}
> $ echo "deb [signed-by=/etc/apt/keyrings/cassandra-archive-keyring.gpg] 
> https://debian.cassandra.apache.org 42x main" | sudo tee -a 
> /etc/apt/sources.list.d/cassandra.sources.list
> deb [signed-by=/etc/apt/keyrings/cassandra-archive-keyring.gpg] 
> https://debian.cassandra.apache.org 42x main {code}
> I have made a [PR|https://github.com/apache/cassandra/pull/2936]
> I have tested the gpg --dearmor on a VM with Ubuntu 22.04 myself recently and 
> it works just fine.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org



[jira] [Commented] (CASSANDRA-19110) apt-key deprecation, replace with gpg --dearmor in the docs.

2024-04-04 Thread Tibor Repasi (Jira)


[ 
https://issues.apache.org/jira/browse/CASSANDRA-19110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17833835#comment-17833835
 ] 

Tibor Repasi commented on CASSANDRA-19110:
--

Thank You.

> apt-key deprecation, replace with gpg --dearmor in the docs.
> 
>
> Key: CASSANDRA-19110
> URL: https://issues.apache.org/jira/browse/CASSANDRA-19110
> Project: Cassandra
>  Issue Type: Improvement
>  Components: Documentation/Website
>Reporter: Simon K
>Assignee: Tibor Repasi
>Priority: Normal
>  Labels: pull-request-available
> Fix For: 3.0.30, 3.11.17, 4.0.13, 4.1.5, 5.0-beta2
>
>  Time Spent: 1h
>  Remaining Estimate: 0h
>
> the command `apt-key` is deprecated and soon to be removed, especially on 
> Ubuntu.
> the directory `/usr/share/keyrings` for shared keys are also being removed.
> I suggest to convert the docs from
> {code:java}
> curl https://downloads.apache.org/cassandra/KEYS | sudo apt-key add - {code}
> to a simpler command:
> {code:java}
> curl https://downloads.apache.org/cassandra/KEYS | sudo gpg --dearmor -o 
> /etc/apt/keyrings/cassandra-archive-keyring.gpg {code}
> The path `/etc/apt/keyrings` doesn't exists by default on Ubuntu 20.04 but it 
> does on 22.04.
> I also suggest to add the source.list.d text from 
> {code:java}
> $ echo "deb https://debian.cassandra.apache.org 42x main" | sudo tee -a 
> /etc/apt/sources.list.d/cassandra.sources.list
> deb https://debian.cassandra.apache.org 42x main{code}
> to 
> {code:java}
> $ echo "deb [signed-by=/etc/apt/keyrings/cassandra-archive-keyring.gpg] 
> https://debian.cassandra.apache.org 42x main" | sudo tee -a 
> /etc/apt/sources.list.d/cassandra.sources.list
> deb [signed-by=/etc/apt/keyrings/cassandra-archive-keyring.gpg] 
> https://debian.cassandra.apache.org 42x main {code}
> I have made a [PR|https://github.com/apache/cassandra/pull/2936]
> I have tested the gpg --dearmor on a VM with Ubuntu 22.04 myself recently and 
> it works just fine.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org



[jira] [Commented] (CASSANDRA-19110) apt-key deprecation, replace with gpg --dearmor in the docs.

2024-04-03 Thread Brandon Williams (Jira)


[ 
https://issues.apache.org/jira/browse/CASSANDRA-19110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17833765#comment-17833765
 ] 

Brandon Williams commented on CASSANDRA-19110:
--

The 
[original|https://github.com/apache/cassandra/blob/trunk/doc/modules/cassandra/examples/BASH/get_deb_package.sh#L1]
 contained 4.2, no worries.

I committed the website changes and other doc changes for each branch and 
redeployed the site so everything should be live now.  Thanks all!



> apt-key deprecation, replace with gpg --dearmor in the docs.
> 
>
> Key: CASSANDRA-19110
> URL: https://issues.apache.org/jira/browse/CASSANDRA-19110
> Project: Cassandra
>  Issue Type: Improvement
>  Components: Documentation/Website
>Reporter: Simon K
>Assignee: Simon K
>Priority: Normal
>  Labels: pull-request-available
> Fix For: 3.0.x, 3.11.x, 4.0.x, 4.1.x, 5.0.x, 5.x
>
>  Time Spent: 1h
>  Remaining Estimate: 0h
>
> the command `apt-key` is deprecated and soon to be removed, especially on 
> Ubuntu.
> the directory `/usr/share/keyrings` for shared keys are also being removed.
> I suggest to convert the docs from
> {code:java}
> curl https://downloads.apache.org/cassandra/KEYS | sudo apt-key add - {code}
> to a simpler command:
> {code:java}
> curl https://downloads.apache.org/cassandra/KEYS | sudo gpg --dearmor -o 
> /etc/apt/keyrings/cassandra-archive-keyring.gpg {code}
> The path `/etc/apt/keyrings` doesn't exists by default on Ubuntu 20.04 but it 
> does on 22.04.
> I also suggest to add the source.list.d text from 
> {code:java}
> $ echo "deb https://debian.cassandra.apache.org 42x main" | sudo tee -a 
> /etc/apt/sources.list.d/cassandra.sources.list
> deb https://debian.cassandra.apache.org 42x main{code}
> to 
> {code:java}
> $ echo "deb [signed-by=/etc/apt/keyrings/cassandra-archive-keyring.gpg] 
> https://debian.cassandra.apache.org 42x main" | sudo tee -a 
> /etc/apt/sources.list.d/cassandra.sources.list
> deb [signed-by=/etc/apt/keyrings/cassandra-archive-keyring.gpg] 
> https://debian.cassandra.apache.org 42x main {code}
> I have made a [PR|https://github.com/apache/cassandra/pull/2936]
> I have tested the gpg --dearmor on a VM with Ubuntu 22.04 myself recently and 
> it works just fine.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org



[jira] [Commented] (CASSANDRA-19110) apt-key deprecation, replace with gpg --dearmor in the docs.

2024-04-02 Thread Simon K (Jira)


[ 
https://issues.apache.org/jira/browse/CASSANDRA-19110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17833409#comment-17833409
 ] 

Simon K commented on CASSANDRA-19110:
-

apologies for writing mine to 4.2 which doesn't exists.
clearly a typo on my part, i can update my PR if needed.

> apt-key deprecation, replace with gpg --dearmor in the docs.
> 
>
> Key: CASSANDRA-19110
> URL: https://issues.apache.org/jira/browse/CASSANDRA-19110
> Project: Cassandra
>  Issue Type: Improvement
>  Components: Documentation/Website
>Reporter: Simon K
>Assignee: Simon K
>Priority: Normal
>  Labels: pull-request-available
> Fix For: 3.0.x, 3.11.x, 4.0.x, 4.1.x, 5.0.x, 5.x
>
>  Time Spent: 1h
>  Remaining Estimate: 0h
>
> the command `apt-key` is deprecated and soon to be removed, especially on 
> Ubuntu.
> the directory `/usr/share/keyrings` for shared keys are also being removed.
> I suggest to convert the docs from
> {code:java}
> curl https://downloads.apache.org/cassandra/KEYS | sudo apt-key add - {code}
> to a simpler command:
> {code:java}
> curl https://downloads.apache.org/cassandra/KEYS | sudo gpg --dearmor -o 
> /etc/apt/keyrings/cassandra-archive-keyring.gpg {code}
> The path `/etc/apt/keyrings` doesn't exists by default on Ubuntu 20.04 but it 
> does on 22.04.
> I also suggest to add the source.list.d text from 
> {code:java}
> $ echo "deb https://debian.cassandra.apache.org 42x main" | sudo tee -a 
> /etc/apt/sources.list.d/cassandra.sources.list
> deb https://debian.cassandra.apache.org 42x main{code}
> to 
> {code:java}
> $ echo "deb [signed-by=/etc/apt/keyrings/cassandra-archive-keyring.gpg] 
> https://debian.cassandra.apache.org 42x main" | sudo tee -a 
> /etc/apt/sources.list.d/cassandra.sources.list
> deb [signed-by=/etc/apt/keyrings/cassandra-archive-keyring.gpg] 
> https://debian.cassandra.apache.org 42x main {code}
> I have made a [PR|https://github.com/apache/cassandra/pull/2936]
> I have tested the gpg --dearmor on a VM with Ubuntu 22.04 myself recently and 
> it works just fine.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org



[jira] [Commented] (CASSANDRA-19110) apt-key deprecation, replace with gpg --dearmor in the docs.

2024-04-02 Thread Tibor Repasi (Jira)


[ 
https://issues.apache.org/jira/browse/CASSANDRA-19110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17833287#comment-17833287
 ] 

Tibor Repasi commented on CASSANDRA-19110:
--

Did it. Filed the PRs for trunk, 5.0, 4.1, 4.0 and 3.11.

> apt-key deprecation, replace with gpg --dearmor in the docs.
> 
>
> Key: CASSANDRA-19110
> URL: https://issues.apache.org/jira/browse/CASSANDRA-19110
> Project: Cassandra
>  Issue Type: Improvement
>  Components: Documentation/Website
>Reporter: Simon K
>Assignee: Simon K
>Priority: Normal
>  Labels: pull-request-available
> Fix For: 3.0.x, 3.11.x, 4.0.x, 4.1.x, 5.0.x, 5.x
>
>  Time Spent: 1h
>  Remaining Estimate: 0h
>
> the command `apt-key` is deprecated and soon to be removed, especially on 
> Ubuntu.
> the directory `/usr/share/keyrings` for shared keys are also being removed.
> I suggest to convert the docs from
> {code:java}
> curl https://downloads.apache.org/cassandra/KEYS | sudo apt-key add - {code}
> to a simpler command:
> {code:java}
> curl https://downloads.apache.org/cassandra/KEYS | sudo gpg --dearmor -o 
> /etc/apt/keyrings/cassandra-archive-keyring.gpg {code}
> The path `/etc/apt/keyrings` doesn't exists by default on Ubuntu 20.04 but it 
> does on 22.04.
> I also suggest to add the source.list.d text from 
> {code:java}
> $ echo "deb https://debian.cassandra.apache.org 42x main" | sudo tee -a 
> /etc/apt/sources.list.d/cassandra.sources.list
> deb https://debian.cassandra.apache.org 42x main{code}
> to 
> {code:java}
> $ echo "deb [signed-by=/etc/apt/keyrings/cassandra-archive-keyring.gpg] 
> https://debian.cassandra.apache.org 42x main" | sudo tee -a 
> /etc/apt/sources.list.d/cassandra.sources.list
> deb [signed-by=/etc/apt/keyrings/cassandra-archive-keyring.gpg] 
> https://debian.cassandra.apache.org 42x main {code}
> I have made a [PR|https://github.com/apache/cassandra/pull/2936]
> I have tested the gpg --dearmor on a VM with Ubuntu 22.04 myself recently and 
> it works just fine.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org



[jira] [Commented] (CASSANDRA-19110) apt-key deprecation, replace with gpg --dearmor in the docs.

2024-04-02 Thread Brandon Williams (Jira)


[ 
https://issues.apache.org/jira/browse/CASSANDRA-19110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17833223#comment-17833223
 ] 

Brandon Williams commented on CASSANDRA-19110:
--

Yes, I think updating them all to their respective repos makes sense and should 
be a one-time cost.



> apt-key deprecation, replace with gpg --dearmor in the docs.
> 
>
> Key: CASSANDRA-19110
> URL: https://issues.apache.org/jira/browse/CASSANDRA-19110
> Project: Cassandra
>  Issue Type: Improvement
>  Components: Documentation/Website
>Reporter: Simon K
>Assignee: Simon K
>Priority: Normal
>  Labels: pull-request-available
> Fix For: 3.0.x, 3.11.x, 4.0.x, 4.1.x, 5.0.x, 5.x
>
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> the command `apt-key` is deprecated and soon to be removed, especially on 
> Ubuntu.
> the directory `/usr/share/keyrings` for shared keys are also being removed.
> I suggest to convert the docs from
> {code:java}
> curl https://downloads.apache.org/cassandra/KEYS | sudo apt-key add - {code}
> to a simpler command:
> {code:java}
> curl https://downloads.apache.org/cassandra/KEYS | sudo gpg --dearmor -o 
> /etc/apt/keyrings/cassandra-archive-keyring.gpg {code}
> The path `/etc/apt/keyrings` doesn't exists by default on Ubuntu 20.04 but it 
> does on 22.04.
> I also suggest to add the source.list.d text from 
> {code:java}
> $ echo "deb https://debian.cassandra.apache.org 42x main" | sudo tee -a 
> /etc/apt/sources.list.d/cassandra.sources.list
> deb https://debian.cassandra.apache.org 42x main{code}
> to 
> {code:java}
> $ echo "deb [signed-by=/etc/apt/keyrings/cassandra-archive-keyring.gpg] 
> https://debian.cassandra.apache.org 42x main" | sudo tee -a 
> /etc/apt/sources.list.d/cassandra.sources.list
> deb [signed-by=/etc/apt/keyrings/cassandra-archive-keyring.gpg] 
> https://debian.cassandra.apache.org 42x main {code}
> I have made a [PR|https://github.com/apache/cassandra/pull/2936]
> I have tested the gpg --dearmor on a VM with Ubuntu 22.04 myself recently and 
> it works just fine.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org



[jira] [Commented] (CASSANDRA-19110) apt-key deprecation, replace with gpg --dearmor in the docs.

2024-04-02 Thread Tibor Repasi (Jira)


[ 
https://issues.apache.org/jira/browse/CASSANDRA-19110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17833216#comment-17833216
 ] 

Tibor Repasi commented on CASSANDRA-19110:
--

They are referring to 42x repository, which has been bumped to 50x ... however, 
on the download page 41x is referred as the latest stable release. I'd like to 
have that consistent, but at which one? Moreover, the cassandra repository has 
multiple branches, should we update all of them? To their actual repo? ... 
would make sense to me.

> apt-key deprecation, replace with gpg --dearmor in the docs.
> 
>
> Key: CASSANDRA-19110
> URL: https://issues.apache.org/jira/browse/CASSANDRA-19110
> Project: Cassandra
>  Issue Type: Improvement
>  Components: Documentation/Website
>Reporter: Simon K
>Assignee: Simon K
>Priority: Normal
>  Labels: pull-request-available
> Fix For: 3.0.x, 3.11.x, 4.0.x, 4.1.x, 5.0.x, 5.x
>
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> the command `apt-key` is deprecated and soon to be removed, especially on 
> Ubuntu.
> the directory `/usr/share/keyrings` for shared keys are also being removed.
> I suggest to convert the docs from
> {code:java}
> curl https://downloads.apache.org/cassandra/KEYS | sudo apt-key add - {code}
> to a simpler command:
> {code:java}
> curl https://downloads.apache.org/cassandra/KEYS | sudo gpg --dearmor -o 
> /etc/apt/keyrings/cassandra-archive-keyring.gpg {code}
> The path `/etc/apt/keyrings` doesn't exists by default on Ubuntu 20.04 but it 
> does on 22.04.
> I also suggest to add the source.list.d text from 
> {code:java}
> $ echo "deb https://debian.cassandra.apache.org 42x main" | sudo tee -a 
> /etc/apt/sources.list.d/cassandra.sources.list
> deb https://debian.cassandra.apache.org 42x main{code}
> to 
> {code:java}
> $ echo "deb [signed-by=/etc/apt/keyrings/cassandra-archive-keyring.gpg] 
> https://debian.cassandra.apache.org 42x main" | sudo tee -a 
> /etc/apt/sources.list.d/cassandra.sources.list
> deb [signed-by=/etc/apt/keyrings/cassandra-archive-keyring.gpg] 
> https://debian.cassandra.apache.org 42x main {code}
> I have made a [PR|https://github.com/apache/cassandra/pull/2936]
> I have tested the gpg --dearmor on a VM with Ubuntu 22.04 myself recently and 
> it works just fine.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org



[jira] [Commented] (CASSANDRA-19110) apt-key deprecation, replace with gpg --dearmor in the docs.

2024-04-02 Thread Brandon Williams (Jira)


[ 
https://issues.apache.org/jira/browse/CASSANDRA-19110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17833211#comment-17833211
 ] 

Brandon Williams commented on CASSANDRA-19110:
--

That looks good to me, [~rtib].  Do you want to also update the [bash 
examples|https://github.com/apache/cassandra/tree/trunk/doc/modules/cassandra/examples/BASH]
 that Simon's original PR changes?

> apt-key deprecation, replace with gpg --dearmor in the docs.
> 
>
> Key: CASSANDRA-19110
> URL: https://issues.apache.org/jira/browse/CASSANDRA-19110
> Project: Cassandra
>  Issue Type: Improvement
>  Components: Documentation/Website
>Reporter: Simon K
>Assignee: Simon K
>Priority: Normal
>  Labels: pull-request-available
> Fix For: 3.0.x, 3.11.x, 4.0.x, 4.1.x, 5.0.x, 5.x
>
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> the command `apt-key` is deprecated and soon to be removed, especially on 
> Ubuntu.
> the directory `/usr/share/keyrings` for shared keys are also being removed.
> I suggest to convert the docs from
> {code:java}
> curl https://downloads.apache.org/cassandra/KEYS | sudo apt-key add - {code}
> to a simpler command:
> {code:java}
> curl https://downloads.apache.org/cassandra/KEYS | sudo gpg --dearmor -o 
> /etc/apt/keyrings/cassandra-archive-keyring.gpg {code}
> The path `/etc/apt/keyrings` doesn't exists by default on Ubuntu 20.04 but it 
> does on 22.04.
> I also suggest to add the source.list.d text from 
> {code:java}
> $ echo "deb https://debian.cassandra.apache.org 42x main" | sudo tee -a 
> /etc/apt/sources.list.d/cassandra.sources.list
> deb https://debian.cassandra.apache.org 42x main{code}
> to 
> {code:java}
> $ echo "deb [signed-by=/etc/apt/keyrings/cassandra-archive-keyring.gpg] 
> https://debian.cassandra.apache.org 42x main" | sudo tee -a 
> /etc/apt/sources.list.d/cassandra.sources.list
> deb [signed-by=/etc/apt/keyrings/cassandra-archive-keyring.gpg] 
> https://debian.cassandra.apache.org 42x main {code}
> I have made a [PR|https://github.com/apache/cassandra/pull/2936]
> I have tested the gpg --dearmor on a VM with Ubuntu 22.04 myself recently and 
> it works just fine.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org



[jira] [Commented] (CASSANDRA-19110) apt-key deprecation, replace with gpg --dearmor in the docs.

2024-04-02 Thread Tibor Repasi (Jira)


[ 
https://issues.apache.org/jira/browse/CASSANDRA-19110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17833209#comment-17833209
 ] 

Tibor Repasi commented on CASSANDRA-19110:
--

Created [PR#268|https://github.com/apache/cassandra-website/pull/268] to remove 
the usage of apt-key from website's download page.

> apt-key deprecation, replace with gpg --dearmor in the docs.
> 
>
> Key: CASSANDRA-19110
> URL: https://issues.apache.org/jira/browse/CASSANDRA-19110
> Project: Cassandra
>  Issue Type: Improvement
>  Components: Documentation/Website
>Reporter: Simon K
>Assignee: Simon K
>Priority: Normal
>  Labels: pull-request-available
> Fix For: 3.0.x, 3.11.x, 4.0.x, 4.1.x, 5.0.x, 5.x
>
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> the command `apt-key` is deprecated and soon to be removed, especially on 
> Ubuntu.
> the directory `/usr/share/keyrings` for shared keys are also being removed.
> I suggest to convert the docs from
> {code:java}
> curl https://downloads.apache.org/cassandra/KEYS | sudo apt-key add - {code}
> to a simpler command:
> {code:java}
> curl https://downloads.apache.org/cassandra/KEYS | sudo gpg --dearmor -o 
> /etc/apt/keyrings/cassandra-archive-keyring.gpg {code}
> The path `/etc/apt/keyrings` doesn't exists by default on Ubuntu 20.04 but it 
> does on 22.04.
> I also suggest to add the source.list.d text from 
> {code:java}
> $ echo "deb https://debian.cassandra.apache.org 42x main" | sudo tee -a 
> /etc/apt/sources.list.d/cassandra.sources.list
> deb https://debian.cassandra.apache.org 42x main{code}
> to 
> {code:java}
> $ echo "deb [signed-by=/etc/apt/keyrings/cassandra-archive-keyring.gpg] 
> https://debian.cassandra.apache.org 42x main" | sudo tee -a 
> /etc/apt/sources.list.d/cassandra.sources.list
> deb [signed-by=/etc/apt/keyrings/cassandra-archive-keyring.gpg] 
> https://debian.cassandra.apache.org 42x main {code}
> I have made a [PR|https://github.com/apache/cassandra/pull/2936]
> I have tested the gpg --dearmor on a VM with Ubuntu 22.04 myself recently and 
> it works just fine.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org



[jira] [Commented] (CASSANDRA-19110) apt-key deprecation, replace with gpg --dearmor in the docs.

2024-04-02 Thread Brandon Williams (Jira)


[ 
https://issues.apache.org/jira/browse/CASSANDRA-19110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17833152#comment-17833152
 ] 

Brandon Williams commented on CASSANDRA-19110:
--

bq.  SecureApt is also referring to /usr/share/keyrings, while also stating 
that "For other archives, there is not yet a standard location where you can 
find the key for a given apt repository".

I don't think that statement is regarding local storage, since the very next 
sentence begins: "There's a rough standard of putting the key up on the web 
page"

That page seems fairly old but I think the interesting part is where it says 
"This was fixed by the introduction of the debian-archive-keyring package, 
which manages apt keyring updates" which to me says that /etc/apt/keyring is 
the intended place, but due to the creation of a new key in 2006, the 
debian-archive-keyring package was added, and this is the genesis of 
/usr/share/keyrings.

This leads me to think /usr/share/keyrings is intended to be used by packages 
while /etc/apt/keyrings is for manually supplied keys. Indeed, all the *keyring 
packages of GnuPG keys install in to /usr/share/keyrings.  I also think it 
would be weird to backup a directory in /usr/share while backing up all of /etc 
would be routine, but backing up the key isn't strictly necessary, either.




> apt-key deprecation, replace with gpg --dearmor in the docs.
> 
>
> Key: CASSANDRA-19110
> URL: https://issues.apache.org/jira/browse/CASSANDRA-19110
> Project: Cassandra
>  Issue Type: Improvement
>  Components: Documentation/Website
>Reporter: Simon K
>Assignee: Simon K
>Priority: Normal
> Fix For: 3.0.x, 3.11.x, 4.0.x, 4.1.x, 5.0.x, 5.x
>
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> the command `apt-key` is deprecated and soon to be removed, especially on 
> Ubuntu.
> the directory `/usr/share/keyrings` for shared keys are also being removed.
> I suggest to convert the docs from
> {code:java}
> curl https://downloads.apache.org/cassandra/KEYS | sudo apt-key add - {code}
> to a simpler command:
> {code:java}
> curl https://downloads.apache.org/cassandra/KEYS | sudo gpg --dearmor -o 
> /etc/apt/keyrings/cassandra-archive-keyring.gpg {code}
> The path `/etc/apt/keyrings` doesn't exists by default on Ubuntu 20.04 but it 
> does on 22.04.
> I also suggest to add the source.list.d text from 
> {code:java}
> $ echo "deb https://debian.cassandra.apache.org 42x main" | sudo tee -a 
> /etc/apt/sources.list.d/cassandra.sources.list
> deb https://debian.cassandra.apache.org 42x main{code}
> to 
> {code:java}
> $ echo "deb [signed-by=/etc/apt/keyrings/cassandra-archive-keyring.gpg] 
> https://debian.cassandra.apache.org 42x main" | sudo tee -a 
> /etc/apt/sources.list.d/cassandra.sources.list
> deb [signed-by=/etc/apt/keyrings/cassandra-archive-keyring.gpg] 
> https://debian.cassandra.apache.org 42x main {code}
> I have made a [PR|https://github.com/apache/cassandra/pull/2936]
> I have tested the gpg --dearmor on a VM with Ubuntu 22.04 myself recently and 
> it works just fine.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org



[jira] [Commented] (CASSANDRA-19110) apt-key deprecation, replace with gpg --dearmor in the docs.

2024-04-02 Thread Sebastian Marsching (Jira)


[ 
https://issues.apache.org/jira/browse/CASSANDRA-19110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17833150#comment-17833150
 ] 

Sebastian Marsching commented on CASSANDRA-19110:
-

Yes, {{/etc/apt/keyrings}} is only created automatically since Ubuntu Jammy and 
Debian Bookworm. I think that these are the versions where the use of 
{{apt-key}} got deprecated. Of course, one can still create this directory 
manually on older versions of Debian and Ubuntu.

> apt-key deprecation, replace with gpg --dearmor in the docs.
> 
>
> Key: CASSANDRA-19110
> URL: https://issues.apache.org/jira/browse/CASSANDRA-19110
> Project: Cassandra
>  Issue Type: Improvement
>  Components: Documentation/Website
>Reporter: Simon K
>Assignee: Simon K
>Priority: Normal
> Fix For: 3.0.x, 3.11.x, 4.0.x, 4.1.x, 5.0.x, 5.x
>
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> the command `apt-key` is deprecated and soon to be removed, especially on 
> Ubuntu.
> the directory `/usr/share/keyrings` for shared keys are also being removed.
> I suggest to convert the docs from
> {code:java}
> curl https://downloads.apache.org/cassandra/KEYS | sudo apt-key add - {code}
> to a simpler command:
> {code:java}
> curl https://downloads.apache.org/cassandra/KEYS | sudo gpg --dearmor -o 
> /etc/apt/keyrings/cassandra-archive-keyring.gpg {code}
> The path `/etc/apt/keyrings` doesn't exists by default on Ubuntu 20.04 but it 
> does on 22.04.
> I also suggest to add the source.list.d text from 
> {code:java}
> $ echo "deb https://debian.cassandra.apache.org 42x main" | sudo tee -a 
> /etc/apt/sources.list.d/cassandra.sources.list
> deb https://debian.cassandra.apache.org 42x main{code}
> to 
> {code:java}
> $ echo "deb [signed-by=/etc/apt/keyrings/cassandra-archive-keyring.gpg] 
> https://debian.cassandra.apache.org 42x main" | sudo tee -a 
> /etc/apt/sources.list.d/cassandra.sources.list
> deb [signed-by=/etc/apt/keyrings/cassandra-archive-keyring.gpg] 
> https://debian.cassandra.apache.org 42x main {code}
> I have made a [PR|https://github.com/apache/cassandra/pull/2936]
> I have tested the gpg --dearmor on a VM with Ubuntu 22.04 myself recently and 
> it works just fine.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org



[jira] [Commented] (CASSANDRA-19110) apt-key deprecation, replace with gpg --dearmor in the docs.

2024-04-02 Thread Tibor Repasi (Jira)


[ 
https://issues.apache.org/jira/browse/CASSANDRA-19110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17833147#comment-17833147
 ] 

Tibor Repasi commented on CASSANDRA-19110:
--

{quote}Keys in /etc/apt/keyrings are not trusted globally. This is in contrast 
to the keys in /etc/apt/trusted.gpg.d. I do not know about the ones in 
/usr/share/keyring – they might be){quote}

Those in {{/usr/share/keyring}} aren't globally trusted either.

{quote}So /etc/apt/keysrings seems to be the corrrect place.{quote}

I agree, at least for the most recent releases, since Debian Bullseye's apt 
package doesn't deliver this directory. That's why we've been using 
{{/usr/share/keyrings}}, which might be reconsidered when upgrading to Bookworm.

> apt-key deprecation, replace with gpg --dearmor in the docs.
> 
>
> Key: CASSANDRA-19110
> URL: https://issues.apache.org/jira/browse/CASSANDRA-19110
> Project: Cassandra
>  Issue Type: Improvement
>  Components: Documentation/Website
>Reporter: Simon K
>Assignee: Simon K
>Priority: Normal
> Fix For: 3.0.x, 3.11.x, 4.0.x, 4.1.x, 5.0.x, 5.x
>
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> the command `apt-key` is deprecated and soon to be removed, especially on 
> Ubuntu.
> the directory `/usr/share/keyrings` for shared keys are also being removed.
> I suggest to convert the docs from
> {code:java}
> curl https://downloads.apache.org/cassandra/KEYS | sudo apt-key add - {code}
> to a simpler command:
> {code:java}
> curl https://downloads.apache.org/cassandra/KEYS | sudo gpg --dearmor -o 
> /etc/apt/keyrings/cassandra-archive-keyring.gpg {code}
> The path `/etc/apt/keyrings` doesn't exists by default on Ubuntu 20.04 but it 
> does on 22.04.
> I also suggest to add the source.list.d text from 
> {code:java}
> $ echo "deb https://debian.cassandra.apache.org 42x main" | sudo tee -a 
> /etc/apt/sources.list.d/cassandra.sources.list
> deb https://debian.cassandra.apache.org 42x main{code}
> to 
> {code:java}
> $ echo "deb [signed-by=/etc/apt/keyrings/cassandra-archive-keyring.gpg] 
> https://debian.cassandra.apache.org 42x main" | sudo tee -a 
> /etc/apt/sources.list.d/cassandra.sources.list
> deb [signed-by=/etc/apt/keyrings/cassandra-archive-keyring.gpg] 
> https://debian.cassandra.apache.org 42x main {code}
> I have made a [PR|https://github.com/apache/cassandra/pull/2936]
> I have tested the gpg --dearmor on a VM with Ubuntu 22.04 myself recently and 
> it works just fine.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org



[jira] [Commented] (CASSANDRA-19110) apt-key deprecation, replace with gpg --dearmor in the docs.

2024-04-02 Thread Sebastian Marsching (Jira)


[ 
https://issues.apache.org/jira/browse/CASSANDRA-19110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17833143#comment-17833143
 ] 

Sebastian Marsching commented on CASSANDRA-19110:
-

[~rtib] Keys in {{/etc/apt/keyrings}} are not trusted globally. This is in 
contrast to the keys in {{{}/etc/apt/trusted.gpg.d{}}}. I do not know about the 
ones in {{/usr/share/keyring}} – they might be).

I think that avoiding globally trusted keys was the main motivation behind 
deprecating {{apt-key}} and {{{}/etc/apt/trusted.gpg{}}}. The Man page of 
{{apt-key}} (on Ubuntu 22.04) says:



{{       /etc/apt/trusted.gpg.d/}}
{{           File fragments for the trusted keys, additional keyrings can be}}
{{           stored here (by other packages or the administrator). 
Configuration}}
{{           Item Dir::Etc::TrustedParts.}}
{{       /etc/apt/keyrings/}}
{{           Place to store additional keyrings to be used with Signed-By.}}

So {{/etc/apt/keysrings}} seems to be the corrrect place.

> apt-key deprecation, replace with gpg --dearmor in the docs.
> 
>
> Key: CASSANDRA-19110
> URL: https://issues.apache.org/jira/browse/CASSANDRA-19110
> Project: Cassandra
>  Issue Type: Improvement
>  Components: Documentation/Website
>Reporter: Simon K
>Assignee: Simon K
>Priority: Normal
> Fix For: 3.0.x, 3.11.x, 4.0.x, 4.1.x, 5.0.x, 5.x
>
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> the command `apt-key` is deprecated and soon to be removed, especially on 
> Ubuntu.
> the directory `/usr/share/keyrings` for shared keys are also being removed.
> I suggest to convert the docs from
> {code:java}
> curl https://downloads.apache.org/cassandra/KEYS | sudo apt-key add - {code}
> to a simpler command:
> {code:java}
> curl https://downloads.apache.org/cassandra/KEYS | sudo gpg --dearmor -o 
> /etc/apt/keyrings/cassandra-archive-keyring.gpg {code}
> The path `/etc/apt/keyrings` doesn't exists by default on Ubuntu 20.04 but it 
> does on 22.04.
> I also suggest to add the source.list.d text from 
> {code:java}
> $ echo "deb https://debian.cassandra.apache.org 42x main" | sudo tee -a 
> /etc/apt/sources.list.d/cassandra.sources.list
> deb https://debian.cassandra.apache.org 42x main{code}
> to 
> {code:java}
> $ echo "deb [signed-by=/etc/apt/keyrings/cassandra-archive-keyring.gpg] 
> https://debian.cassandra.apache.org 42x main" | sudo tee -a 
> /etc/apt/sources.list.d/cassandra.sources.list
> deb [signed-by=/etc/apt/keyrings/cassandra-archive-keyring.gpg] 
> https://debian.cassandra.apache.org 42x main {code}
> I have made a [PR|https://github.com/apache/cassandra/pull/2936]
> I have tested the gpg --dearmor on a VM with Ubuntu 22.04 myself recently and 
> it works just fine.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org



[jira] [Commented] (CASSANDRA-19110) apt-key deprecation, replace with gpg --dearmor in the docs.

2024-04-02 Thread Simon K (Jira)


[ 
https://issues.apache.org/jira/browse/CASSANDRA-19110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17833138#comment-17833138
 ] 

Simon K commented on CASSANDRA-19110:
-

i agree with [~smarsching] on the directories, that it seems to be reserved for 
distribution, just like the old `/etc/apt/trusted*` where globally for 
everything.
i'm not personally a Debian user, so i don't know exactly what directories they 
use, i'm an ubuntu user.

I do not like the idea to put keys in a folder that is trusted globally by 
every apt source, just like `/etc/apt/trusted*` is.
But rather put it in a designated folder, just like `/etc/apt/keyrings` and 
then point your source list to that specific key.
While verifying the GPG key of course.

I have not used `keyserver` for some time since it's always put it into the 
globally trusted gpg file and i do not like that (seems like it might still use 
apt-key??).

> apt-key deprecation, replace with gpg --dearmor in the docs.
> 
>
> Key: CASSANDRA-19110
> URL: https://issues.apache.org/jira/browse/CASSANDRA-19110
> Project: Cassandra
>  Issue Type: Improvement
>  Components: Documentation/Website
>Reporter: Simon K
>Assignee: Simon K
>Priority: Normal
> Fix For: 3.0.x, 3.11.x, 4.0.x, 4.1.x, 5.0.x, 5.x
>
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> the command `apt-key` is deprecated and soon to be removed, especially on 
> Ubuntu.
> the directory `/usr/share/keyrings` for shared keys are also being removed.
> I suggest to convert the docs from
> {code:java}
> curl https://downloads.apache.org/cassandra/KEYS | sudo apt-key add - {code}
> to a simpler command:
> {code:java}
> curl https://downloads.apache.org/cassandra/KEYS | sudo gpg --dearmor -o 
> /etc/apt/keyrings/cassandra-archive-keyring.gpg {code}
> The path `/etc/apt/keyrings` doesn't exists by default on Ubuntu 20.04 but it 
> does on 22.04.
> I also suggest to add the source.list.d text from 
> {code:java}
> $ echo "deb https://debian.cassandra.apache.org 42x main" | sudo tee -a 
> /etc/apt/sources.list.d/cassandra.sources.list
> deb https://debian.cassandra.apache.org 42x main{code}
> to 
> {code:java}
> $ echo "deb [signed-by=/etc/apt/keyrings/cassandra-archive-keyring.gpg] 
> https://debian.cassandra.apache.org 42x main" | sudo tee -a 
> /etc/apt/sources.list.d/cassandra.sources.list
> deb [signed-by=/etc/apt/keyrings/cassandra-archive-keyring.gpg] 
> https://debian.cassandra.apache.org 42x main {code}
> I have made a [PR|https://github.com/apache/cassandra/pull/2936]
> I have tested the gpg --dearmor on a VM with Ubuntu 22.04 myself recently and 
> it works just fine.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org



[jira] [Commented] (CASSANDRA-19110) apt-key deprecation, replace with gpg --dearmor in the docs.

2024-04-02 Thread Tibor Repasi (Jira)


[ 
https://issues.apache.org/jira/browse/CASSANDRA-19110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17833133#comment-17833133
 ] 

Tibor Repasi commented on CASSANDRA-19110:
--

The situation is not really clear, indeed, nevertheless the Debian Wiki page on 
[SecureApt|https://wiki.debian.org/SecureApt#How_to_find_and_add_a_key] is also 
referring to {{/usr/share/keyrings}}, while also stating that "{_}For other 
archives, there is not yet a standard location where you can find the key for a 
given apt repository{_}".

What I'm concerned about is, that keys within {{/etc/share/keyrings}} might be 
trusted globally for every apt source. I prefer to pin the keyring explicitly 
to the apt source.

> apt-key deprecation, replace with gpg --dearmor in the docs.
> 
>
> Key: CASSANDRA-19110
> URL: https://issues.apache.org/jira/browse/CASSANDRA-19110
> Project: Cassandra
>  Issue Type: Improvement
>  Components: Documentation/Website
>Reporter: Simon K
>Assignee: Simon K
>Priority: Normal
> Fix For: 3.0.x, 3.11.x, 4.0.x, 4.1.x, 5.0.x, 5.x
>
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> the command `apt-key` is deprecated and soon to be removed, especially on 
> Ubuntu.
> the directory `/usr/share/keyrings` for shared keys are also being removed.
> I suggest to convert the docs from
> {code:java}
> curl https://downloads.apache.org/cassandra/KEYS | sudo apt-key add - {code}
> to a simpler command:
> {code:java}
> curl https://downloads.apache.org/cassandra/KEYS | sudo gpg --dearmor -o 
> /etc/apt/keyrings/cassandra-archive-keyring.gpg {code}
> The path `/etc/apt/keyrings` doesn't exists by default on Ubuntu 20.04 but it 
> does on 22.04.
> I also suggest to add the source.list.d text from 
> {code:java}
> $ echo "deb https://debian.cassandra.apache.org 42x main" | sudo tee -a 
> /etc/apt/sources.list.d/cassandra.sources.list
> deb https://debian.cassandra.apache.org 42x main{code}
> to 
> {code:java}
> $ echo "deb [signed-by=/etc/apt/keyrings/cassandra-archive-keyring.gpg] 
> https://debian.cassandra.apache.org 42x main" | sudo tee -a 
> /etc/apt/sources.list.d/cassandra.sources.list
> deb [signed-by=/etc/apt/keyrings/cassandra-archive-keyring.gpg] 
> https://debian.cassandra.apache.org 42x main {code}
> I have made a [PR|https://github.com/apache/cassandra/pull/2936]
> I have tested the gpg --dearmor on a VM with Ubuntu 22.04 myself recently and 
> it works just fine.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org



[jira] [Commented] (CASSANDRA-19110) apt-key deprecation, replace with gpg --dearmor in the docs.

2024-04-02 Thread Sebastian Marsching (Jira)


[ 
https://issues.apache.org/jira/browse/CASSANDRA-19110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17833119#comment-17833119
 ] 

Sebastian Marsching commented on CASSANDRA-19110:
-

I might be wrong about this, but I think that on Debian and Ubuntu 
{{/etc/apt/keyrings}} is the correct directory for keys that are added by the 
user. This directory is created by the {{apt}} package on modern versions of 
Debian and Ubuntu.

In contrast, {{/usr/share/keyrings}} seems to be reserved for keys that are 
related to the distribution. As correctly pointed out by Tibor, on the 
debian-archive-keyring package places its keys there on Debian. On Ubuntu, this 
directory is used for the keys from the {{ubuntu-pro-client}} and 
{{ubuntu-keyring}} packages.

> apt-key deprecation, replace with gpg --dearmor in the docs.
> 
>
> Key: CASSANDRA-19110
> URL: https://issues.apache.org/jira/browse/CASSANDRA-19110
> Project: Cassandra
>  Issue Type: Improvement
>  Components: Documentation/Website
>Reporter: Simon K
>Assignee: Simon K
>Priority: Normal
> Fix For: 3.0.x, 3.11.x, 4.0.x, 4.1.x, 5.0.x, 5.x
>
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> the command `apt-key` is deprecated and soon to be removed, especially on 
> Ubuntu.
> the directory `/usr/share/keyrings` for shared keys are also being removed.
> I suggest to convert the docs from
> {code:java}
> curl https://downloads.apache.org/cassandra/KEYS | sudo apt-key add - {code}
> to a simpler command:
> {code:java}
> curl https://downloads.apache.org/cassandra/KEYS | sudo gpg --dearmor -o 
> /etc/apt/keyrings/cassandra-archive-keyring.gpg {code}
> The path `/etc/apt/keyrings` doesn't exists by default on Ubuntu 20.04 but it 
> does on 22.04.
> I also suggest to add the source.list.d text from 
> {code:java}
> $ echo "deb https://debian.cassandra.apache.org 42x main" | sudo tee -a 
> /etc/apt/sources.list.d/cassandra.sources.list
> deb https://debian.cassandra.apache.org 42x main{code}
> to 
> {code:java}
> $ echo "deb [signed-by=/etc/apt/keyrings/cassandra-archive-keyring.gpg] 
> https://debian.cassandra.apache.org 42x main" | sudo tee -a 
> /etc/apt/sources.list.d/cassandra.sources.list
> deb [signed-by=/etc/apt/keyrings/cassandra-archive-keyring.gpg] 
> https://debian.cassandra.apache.org 42x main {code}
> I have made a [PR|https://github.com/apache/cassandra/pull/2936]
> I have tested the gpg --dearmor on a VM with Ubuntu 22.04 myself recently and 
> it works just fine.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org



[jira] [Commented] (CASSANDRA-19110) apt-key deprecation, replace with gpg --dearmor in the docs.

2024-03-28 Thread Tibor Repasi (Jira)


[ 
https://issues.apache.org/jira/browse/CASSANDRA-19110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17831696#comment-17831696
 ] 

Tibor Repasi commented on CASSANDRA-19110:
--

I just got focus on this one and have some notes:
 # On Debian (checked on buster, bullseye and bookworm) the package 
[debian-archive-keyring|https://packages.debian.org/bookworm/debian-archive-keyring]
 - installed by default - is placing keyring files under 
{{/usr/share/keyrings/}}, thus this directory is available by default.
# Apt is also supporting armored keyring files; thus you can skip the dearmor 
step, if the filename is tailed with {{.asc}}.

{code}
curl -o /usr/share/keyrings/apache-cassandra.asc 
https://downloads.apache.org/cassandra/KEYS
{code}

{code}
echo "deb [signed-by=/usr/share/keyrings/apache-cassandra.asc] 
https://debian.cassandra.apache.org 41x main" > 
/etc/apt/sources.d/apache-cassandra.list
{code}


> apt-key deprecation, replace with gpg --dearmor in the docs.
> 
>
> Key: CASSANDRA-19110
> URL: https://issues.apache.org/jira/browse/CASSANDRA-19110
> Project: Cassandra
>  Issue Type: Improvement
>  Components: Documentation/Website
>Reporter: Simon K
>Assignee: Simon K
>Priority: Normal
> Fix For: 3.0.x, 3.11.x, 4.0.x, 4.1.x, 5.0.x, 5.x
>
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> the command `apt-key` is deprecated and soon to be removed, especially on 
> Ubuntu.
> the directory `/usr/share/keyrings` for shared keys are also being removed.
> I suggest to convert the docs from
> {code:java}
> curl https://downloads.apache.org/cassandra/KEYS | sudo apt-key add - {code}
> to a simpler command:
> {code:java}
> curl https://downloads.apache.org/cassandra/KEYS | sudo gpg --dearmor -o 
> /etc/apt/keyrings/cassandra-archive-keyring.gpg {code}
> The path `/etc/apt/keyrings` doesn't exists by default on Ubuntu 20.04 but it 
> does on 22.04.
> I also suggest to add the source.list.d text from 
> {code:java}
> $ echo "deb https://debian.cassandra.apache.org 42x main" | sudo tee -a 
> /etc/apt/sources.list.d/cassandra.sources.list
> deb https://debian.cassandra.apache.org 42x main{code}
> to 
> {code:java}
> $ echo "deb [signed-by=/etc/apt/keyrings/cassandra-archive-keyring.gpg] 
> https://debian.cassandra.apache.org 42x main" | sudo tee -a 
> /etc/apt/sources.list.d/cassandra.sources.list
> deb [signed-by=/etc/apt/keyrings/cassandra-archive-keyring.gpg] 
> https://debian.cassandra.apache.org 42x main {code}
> I have made a [PR|https://github.com/apache/cassandra/pull/2936]
> I have tested the gpg --dearmor on a VM with Ubuntu 22.04 myself recently and 
> it works just fine.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org



[jira] [Commented] (CASSANDRA-19110) apt-key deprecation, replace with gpg --dearmor in the docs.

2023-11-29 Thread Brandon Williams (Jira)


[ 
https://issues.apache.org/jira/browse/CASSANDRA-19110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17791148#comment-17791148
 ] 

Brandon Williams commented on CASSANDRA-19110:
--

We should probably update https://cassandra.apache.org/_/download.html with 
this as well.

> apt-key deprecation, replace with gpg --dearmor in the docs.
> 
>
> Key: CASSANDRA-19110
> URL: https://issues.apache.org/jira/browse/CASSANDRA-19110
> Project: Cassandra
>  Issue Type: Improvement
>  Components: Documentation/Website
>Reporter: Simon K
>Assignee: Simon K
>Priority: Normal
> Fix For: 3.0.x, 3.11.x, 4.0.x, 4.1.x, 5.0.x, 5.x
>
>
> the command `apt-key` is deprecated and soon to be removed, especially on 
> Ubuntu.
> the directory `/usr/share/keyrings` for shared keys are also being removed.
> I suggest to convert the docs from
> {code:java}
> curl https://downloads.apache.org/cassandra/KEYS | sudo apt-key add - {code}
> to a simpler command:
> {code:java}
> curl https://downloads.apache.org/cassandra/KEYS | sudo gpg --dearmor -o 
> /etc/apt/keyrings/cassandra-archive-keyring.gpg {code}
> The path `/etc/apt/keyrings` doesn't exists by default on Ubuntu 20.04 but it 
> does on 22.04.
> I also suggest to add the source.list.d text from 
> {code:java}
> $ echo "deb https://debian.cassandra.apache.org 42x main" | sudo tee -a 
> /etc/apt/sources.list.d/cassandra.sources.list
> deb https://debian.cassandra.apache.org 42x main{code}
> to 
> {code:java}
> $ echo "deb [signed-by=/etc/apt/keyrings/cassandra-archive-keyring.gpg] 
> https://debian.cassandra.apache.org 42x main" | sudo tee -a 
> /etc/apt/sources.list.d/cassandra.sources.list
> deb [signed-by=/etc/apt/keyrings/cassandra-archive-keyring.gpg] 
> https://debian.cassandra.apache.org 42x main {code}
> I have made a [PR|https://github.com/apache/cassandra/pull/2936]
> I have tested the gpg --dearmor on a VM with Ubuntu 22.04 myself recently and 
> it works just fine.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org