2026-11-01 18:35:23 +01:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?> <!--*-nxml-*-->
|
|
|
|
|
<!-- SPDX-License-Identifier: LGPL-3.0-only -->
|
|
|
|
|
<!-- SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts® -->
|
|
|
|
|
<!DOCTYPE policyconfig PUBLIC "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
|
|
|
|
|
"http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
|
|
|
|
|
<!-- What nostrod (net.catcrafts.Nostro1) asks polkit before it does anything for a caller.
|
|
|
|
|
|
|
|
|
|
Every action is owned by unix-user:nostro, the user nostrod runs as: polkit lets only root or an action's owner
|
|
|
|
|
check a call made by another user, or pass the details the dialog shows. $(summary) is what nostrod read for the
|
|
|
|
|
call itself, such as the amount, the payee and the account of a payment; the details amount_minor, currency,
|
fix: close what the security review before the first release found
A review of the tree and its history before they are published found no
key and no bank data in them. It did find these, each closed here.
The password dialog could be emptied (daemon). Shown(), which makes a
payee's name fit for polkit's dialog, let an & through. GNOME's older
agent (polkit-gnome) and MATE's put the message into Pango markup
unescaped, where a bare & fails to parse and leaves the dialog without
a message: paying "Tom & Jerry", or an order an app names so at
checkout, asked for the password and showed no amount and no payee.
Line and paragraph separators passed too. Shown() now shows & as +,
leaves out what draws nothing or places text (control and format
characters, the separators, what Unicode ignores by default, private
use) and makes any run of spaces one space. An address is held to it
instead of made fit: an e-mail address the dialog could not show
unchanged is refused before anyone is asked, since "a&b@..." shown as
"a+b@..." is somebody else's address.
A refused caller could look (daemon). A call that names an account, a
card, a request, a draft or a connector had it looked up, at the bank
where that takes it, before polkit was asked. So a caller polkit
refused was told whether it was there ("no account is called ..."),
and had the bank asked. Such a call now asks for View first
(HandleLookup), a call that only sees looks its account up after its
yes, and the connectors are read, which refreshes the accounts at the
bank, on the first yes instead of on the first call.
An app at checkout was told too much (checkout). The refusal of an
order's reference with another amount named the amount on record, and
a refusal by the bank carried the call it answered, whose path has the
user's and the account's ids at bunq. Neither does now.
A key typed by hand could be read off the screen (app). The line under
a key field showed how the key begins and its last four characters,
which is every character of it as it is typed. It shows how the key
begins and how long it is.
Every change asks for the password (packaging, app). Change, the
action for what changes something and pays nobody, passed without a
password in an active session, so any program of the user's could
cancel a scheduled payment, ask for money in their name or freeze a
card. It asks now (auth_self), a draft saved and a card frozen
included: only View passes as shipped, and loosening is an
administrator's rule, of which the README has an example. The app says
of every change where it is confirmed (AsksPassword is gone), and the
request form sends on its button as the pay form does: its review
sheet would be a second confirmation of what the dialog confirms.
What is built is what was tested (build). Crafter.Network, Crafter.DB
and Crafter.LintRules are named at the commits the tests ran against.
Crafter.Thread still follows its branch, which Crafter.Network's own
project file names, and so does Crafter.Network in the app's debug
build, where Crafter.Debug names it too and crafter-build refuses a
module built twice. lib/json.hpp was nlohmann/json's develop branch at
95e9a593 less its last newline, and called 3.12.0: it is that file
byte for byte now, and called what it is.
The published contract changes with this, before any release (design
rule 10): an e-mail address the dialog cannot show as it is is
refused, a call that looks something up needs View as well as its own
action, the checkout's errors say less, and the policy asks for the
password for Change. The XML, the policy and ShouldServeEveryUser,
which now holds the policy to its defaults, change together.
Reproduced and verified on the fake bus and the fake bunq. The new
checks of ShouldServeEveryUser fail on the worker of before (50 of
them: the & shown, the lookups answered, the bank asked) and pass now.
crafter-build test (17 tests), lint for the library, the app and the
fake system, and tests/coverage.sh (every line, function and region)
pass. Looked at on the made-up system, 360x760 dp at scale 2, dark, on
KDE Wayland: the key form with a key typed, the request form with its
wait and its result, a card frozen, and About. No picture in the
README shows a screen that changed.
Not tried: bunq's sandbox, a real polkit agent, the Flatpak builds.
The README's example rule ran against a stand-in for polkit's rule
engine only.
Co-Authored-By: Claude Mythos 5.2 <noreply@anthropic.com>
2026-11-19 16:09:48 +01:00
|
|
|
counterparty, account_iban, environment, at checkout reference, and for a card card (its id) and status (ACTIVE,
|
|
|
|
|
DEACTIVATED, LOST or STOLEN) are there for rules (an amount above which an administrator must approve, say).
|
2026-11-01 18:35:23 +01:00
|
|
|
|
|
|
|
|
No action keeps an authorization: polkit ties a kept one to the calling process, so the CLI would ask every time
|
fix: close what the security review before the first release found
A review of the tree and its history before they are published found no
key and no bank data in them. It did find these, each closed here.
The password dialog could be emptied (daemon). Shown(), which makes a
payee's name fit for polkit's dialog, let an & through. GNOME's older
agent (polkit-gnome) and MATE's put the message into Pango markup
unescaped, where a bare & fails to parse and leaves the dialog without
a message: paying "Tom & Jerry", or an order an app names so at
checkout, asked for the password and showed no amount and no payee.
Line and paragraph separators passed too. Shown() now shows & as +,
leaves out what draws nothing or places text (control and format
characters, the separators, what Unicode ignores by default, private
use) and makes any run of spaces one space. An address is held to it
instead of made fit: an e-mail address the dialog could not show
unchanged is refused before anyone is asked, since "a&b@..." shown as
"a+b@..." is somebody else's address.
A refused caller could look (daemon). A call that names an account, a
card, a request, a draft or a connector had it looked up, at the bank
where that takes it, before polkit was asked. So a caller polkit
refused was told whether it was there ("no account is called ..."),
and had the bank asked. Such a call now asks for View first
(HandleLookup), a call that only sees looks its account up after its
yes, and the connectors are read, which refreshes the accounts at the
bank, on the first yes instead of on the first call.
An app at checkout was told too much (checkout). The refusal of an
order's reference with another amount named the amount on record, and
a refusal by the bank carried the call it answered, whose path has the
user's and the account's ids at bunq. Neither does now.
A key typed by hand could be read off the screen (app). The line under
a key field showed how the key begins and its last four characters,
which is every character of it as it is typed. It shows how the key
begins and how long it is.
Every change asks for the password (packaging, app). Change, the
action for what changes something and pays nobody, passed without a
password in an active session, so any program of the user's could
cancel a scheduled payment, ask for money in their name or freeze a
card. It asks now (auth_self), a draft saved and a card frozen
included: only View passes as shipped, and loosening is an
administrator's rule, of which the README has an example. The app says
of every change where it is confirmed (AsksPassword is gone), and the
request form sends on its button as the pay form does: its review
sheet would be a second confirmation of what the dialog confirms.
What is built is what was tested (build). Crafter.Network, Crafter.DB
and Crafter.LintRules are named at the commits the tests ran against.
Crafter.Thread still follows its branch, which Crafter.Network's own
project file names, and so does Crafter.Network in the app's debug
build, where Crafter.Debug names it too and crafter-build refuses a
module built twice. lib/json.hpp was nlohmann/json's develop branch at
95e9a593 less its last newline, and called 3.12.0: it is that file
byte for byte now, and called what it is.
The published contract changes with this, before any release (design
rule 10): an e-mail address the dialog cannot show as it is is
refused, a call that looks something up needs View as well as its own
action, the checkout's errors say less, and the policy asks for the
password for Change. The XML, the policy and ShouldServeEveryUser,
which now holds the policy to its defaults, change together.
Reproduced and verified on the fake bus and the fake bunq. The new
checks of ShouldServeEveryUser fail on the worker of before (50 of
them: the & shown, the lookups answered, the bank asked) and pass now.
crafter-build test (17 tests), lint for the library, the app and the
fake system, and tests/coverage.sh (every line, function and region)
pass. Looked at on the made-up system, 360x760 dp at scale 2, dark, on
KDE Wayland: the key form with a key typed, the request form with its
wait and its result, a card frozen, and About. No picture in the
README shows a screen that changed.
Not tried: bunq's sandbox, a real polkit agent, the Flatpak builds.
The README's example rule ran against a stand-in for polkit's rule
engine only.
Co-Authored-By: Claude Mythos 5.2 <noreply@anthropic.com>
2026-11-19 16:09:48 +01:00
|
|
|
anyway. Viewing is free in an active session, and nothing else is. Whatever pays (an app's checkout included),
|
|
|
|
|
whatever changes anything at the bank (a request for money, a draft, a schedule cancelled, a card frozen), and
|
|
|
|
|
whatever changes the bank connections or the account checkouts pay from asks for the user's password every time.
|
|
|
|
|
|
|
|
|
|
That is the default, and it is the strict one on purpose: no program of the user's does anything at their bank
|
|
|
|
|
without them. Loosening it is an administrator's choice, made with a rule, and polkit cannot tell one program of
|
|
|
|
|
a user's from another, so a rule that lets an action pass lets it pass for all of them. A rule that lets a card
|
|
|
|
|
be frozen without a password, for one, returns polkit.Result.YES for the action Change when
|
docs: cut the README down to what a reader needs first
The README had grown to 2,940 words (`wc -w README.md`): a table of the
app's screens with a list of notes on how the app behaves under it, the
checkout's method with its rules, errors and examples, and a subsection
on polkit rules with one written out. It is 1,170 words now.
What stays is what a reader needs to choose, install and use Nostro,
and what they must know for their money's sake: how nostrod keeps the
bank connections, the app's pictures with four notes under them,
installing, the CLI's commands, a paragraph on the checkout that points
at the interface's XML, and "Security" as a list whose last line points
at the polkit policy.
The README's warning against a rule that keeps an authorization moves
into the comment of that policy file, which already describes the rule
the README wrote out.
The guide's commit guidelines now say that the README is kept short,
and where what does not go into it goes. Two of the guide's sentences
spoke of what the README says of each screen: the one is gone, the
other no longer names the README. A third cited the README for what an
app with access to the checkout can learn of an order, which the
README no longer says: it stands without the citation.
2026-11-22 13:31:18 +01:00
|
|
|
action.lookup("status") is "DEACTIVATED"; without that test of status it would let every change pass. Do not
|
|
|
|
|
have a rule keep an authorization (AUTH_SELF_KEEP): for some minutes polkit then lets the same program through
|
|
|
|
|
for that action whatever it asks next, which under Pay is a payment to someone else.
|
fix: close what the security review before the first release found
A review of the tree and its history before they are published found no
key and no bank data in them. It did find these, each closed here.
The password dialog could be emptied (daemon). Shown(), which makes a
payee's name fit for polkit's dialog, let an & through. GNOME's older
agent (polkit-gnome) and MATE's put the message into Pango markup
unescaped, where a bare & fails to parse and leaves the dialog without
a message: paying "Tom & Jerry", or an order an app names so at
checkout, asked for the password and showed no amount and no payee.
Line and paragraph separators passed too. Shown() now shows & as +,
leaves out what draws nothing or places text (control and format
characters, the separators, what Unicode ignores by default, private
use) and makes any run of spaces one space. An address is held to it
instead of made fit: an e-mail address the dialog could not show
unchanged is refused before anyone is asked, since "a&b@..." shown as
"a+b@..." is somebody else's address.
A refused caller could look (daemon). A call that names an account, a
card, a request, a draft or a connector had it looked up, at the bank
where that takes it, before polkit was asked. So a caller polkit
refused was told whether it was there ("no account is called ..."),
and had the bank asked. Such a call now asks for View first
(HandleLookup), a call that only sees looks its account up after its
yes, and the connectors are read, which refreshes the accounts at the
bank, on the first yes instead of on the first call.
An app at checkout was told too much (checkout). The refusal of an
order's reference with another amount named the amount on record, and
a refusal by the bank carried the call it answered, whose path has the
user's and the account's ids at bunq. Neither does now.
A key typed by hand could be read off the screen (app). The line under
a key field showed how the key begins and its last four characters,
which is every character of it as it is typed. It shows how the key
begins and how long it is.
Every change asks for the password (packaging, app). Change, the
action for what changes something and pays nobody, passed without a
password in an active session, so any program of the user's could
cancel a scheduled payment, ask for money in their name or freeze a
card. It asks now (auth_self), a draft saved and a card frozen
included: only View passes as shipped, and loosening is an
administrator's rule, of which the README has an example. The app says
of every change where it is confirmed (AsksPassword is gone), and the
request form sends on its button as the pay form does: its review
sheet would be a second confirmation of what the dialog confirms.
What is built is what was tested (build). Crafter.Network, Crafter.DB
and Crafter.LintRules are named at the commits the tests ran against.
Crafter.Thread still follows its branch, which Crafter.Network's own
project file names, and so does Crafter.Network in the app's debug
build, where Crafter.Debug names it too and crafter-build refuses a
module built twice. lib/json.hpp was nlohmann/json's develop branch at
95e9a593 less its last newline, and called 3.12.0: it is that file
byte for byte now, and called what it is.
The published contract changes with this, before any release (design
rule 10): an e-mail address the dialog cannot show as it is is
refused, a call that looks something up needs View as well as its own
action, the checkout's errors say less, and the policy asks for the
password for Change. The XML, the policy and ShouldServeEveryUser,
which now holds the policy to its defaults, change together.
Reproduced and verified on the fake bus and the fake bunq. The new
checks of ShouldServeEveryUser fail on the worker of before (50 of
them: the & shown, the lookups answered, the bank asked) and pass now.
crafter-build test (17 tests), lint for the library, the app and the
fake system, and tests/coverage.sh (every line, function and region)
pass. Looked at on the made-up system, 360x760 dp at scale 2, dark, on
KDE Wayland: the key form with a key typed, the request form with its
wait and its result, a card frozen, and About. No picture in the
README shows a screen that changed.
Not tried: bunq's sandbox, a real polkit agent, the Flatpak builds.
The README's example rule ran against a stand-in for polkit's rule
engine only.
Co-Authored-By: Claude Mythos 5.2 <noreply@anthropic.com>
2026-11-19 16:09:48 +01:00
|
|
|
|
|
|
|
|
A call that names an account, a card, a request, a draft or a connector, and is not a call to see it, is checked
|
|
|
|
|
twice: for View, before nostrod looks up what it names, and then for what it does. A caller who may not see the
|
|
|
|
|
accounts so learns nothing of them by trying to change them. Where a rule makes View ask for a password, such a
|
|
|
|
|
call asks for it twice.
|
2026-11-01 18:35:23 +01:00
|
|
|
|
|
|
|
|
Install: /usr/share/polkit-1/actions/net.catcrafts.Nostro1.policy. Tune with rules in /etc/polkit-1/rules.d/. -->
|
|
|
|
|
<policyconfig>
|
|
|
|
|
<vendor>Catcrafts</vendor>
|
|
|
|
|
|
|
|
|
|
<action id="net.catcrafts.Nostro1.View">
|
|
|
|
|
<description>See your bank accounts, transactions, requests and cards</description>
|
|
|
|
|
<message>Authentication is required to $(summary)</message>
|
|
|
|
|
<defaults>
|
|
|
|
|
<allow_any>auth_self</allow_any>
|
|
|
|
|
<allow_inactive>auth_self</allow_inactive>
|
|
|
|
|
<allow_active>yes</allow_active>
|
|
|
|
|
</defaults>
|
|
|
|
|
<annotate key="org.freedesktop.policykit.owner">unix-user:nostro</annotate>
|
|
|
|
|
</action>
|
|
|
|
|
|
|
|
|
|
<action id="net.catcrafts.Nostro1.Change">
|
|
|
|
|
<description>Ask for money, make draft payments, cancel what is pending, or freeze a card</description>
|
|
|
|
|
<message>Authentication is required to $(summary)</message>
|
|
|
|
|
<defaults>
|
|
|
|
|
<allow_any>auth_self</allow_any>
|
|
|
|
|
<allow_inactive>auth_self</allow_inactive>
|
fix: close what the security review before the first release found
A review of the tree and its history before they are published found no
key and no bank data in them. It did find these, each closed here.
The password dialog could be emptied (daemon). Shown(), which makes a
payee's name fit for polkit's dialog, let an & through. GNOME's older
agent (polkit-gnome) and MATE's put the message into Pango markup
unescaped, where a bare & fails to parse and leaves the dialog without
a message: paying "Tom & Jerry", or an order an app names so at
checkout, asked for the password and showed no amount and no payee.
Line and paragraph separators passed too. Shown() now shows & as +,
leaves out what draws nothing or places text (control and format
characters, the separators, what Unicode ignores by default, private
use) and makes any run of spaces one space. An address is held to it
instead of made fit: an e-mail address the dialog could not show
unchanged is refused before anyone is asked, since "a&b@..." shown as
"a+b@..." is somebody else's address.
A refused caller could look (daemon). A call that names an account, a
card, a request, a draft or a connector had it looked up, at the bank
where that takes it, before polkit was asked. So a caller polkit
refused was told whether it was there ("no account is called ..."),
and had the bank asked. Such a call now asks for View first
(HandleLookup), a call that only sees looks its account up after its
yes, and the connectors are read, which refreshes the accounts at the
bank, on the first yes instead of on the first call.
An app at checkout was told too much (checkout). The refusal of an
order's reference with another amount named the amount on record, and
a refusal by the bank carried the call it answered, whose path has the
user's and the account's ids at bunq. Neither does now.
A key typed by hand could be read off the screen (app). The line under
a key field showed how the key begins and its last four characters,
which is every character of it as it is typed. It shows how the key
begins and how long it is.
Every change asks for the password (packaging, app). Change, the
action for what changes something and pays nobody, passed without a
password in an active session, so any program of the user's could
cancel a scheduled payment, ask for money in their name or freeze a
card. It asks now (auth_self), a draft saved and a card frozen
included: only View passes as shipped, and loosening is an
administrator's rule, of which the README has an example. The app says
of every change where it is confirmed (AsksPassword is gone), and the
request form sends on its button as the pay form does: its review
sheet would be a second confirmation of what the dialog confirms.
What is built is what was tested (build). Crafter.Network, Crafter.DB
and Crafter.LintRules are named at the commits the tests ran against.
Crafter.Thread still follows its branch, which Crafter.Network's own
project file names, and so does Crafter.Network in the app's debug
build, where Crafter.Debug names it too and crafter-build refuses a
module built twice. lib/json.hpp was nlohmann/json's develop branch at
95e9a593 less its last newline, and called 3.12.0: it is that file
byte for byte now, and called what it is.
The published contract changes with this, before any release (design
rule 10): an e-mail address the dialog cannot show as it is is
refused, a call that looks something up needs View as well as its own
action, the checkout's errors say less, and the policy asks for the
password for Change. The XML, the policy and ShouldServeEveryUser,
which now holds the policy to its defaults, change together.
Reproduced and verified on the fake bus and the fake bunq. The new
checks of ShouldServeEveryUser fail on the worker of before (50 of
them: the & shown, the lookups answered, the bank asked) and pass now.
crafter-build test (17 tests), lint for the library, the app and the
fake system, and tests/coverage.sh (every line, function and region)
pass. Looked at on the made-up system, 360x760 dp at scale 2, dark, on
KDE Wayland: the key form with a key typed, the request form with its
wait and its result, a card frozen, and About. No picture in the
README shows a screen that changed.
Not tried: bunq's sandbox, a real polkit agent, the Flatpak builds.
The README's example rule ran against a stand-in for polkit's rule
engine only.
Co-Authored-By: Claude Mythos 5.2 <noreply@anthropic.com>
2026-11-19 16:09:48 +01:00
|
|
|
<allow_active>auth_self</allow_active>
|
2026-11-01 18:35:23 +01:00
|
|
|
</defaults>
|
|
|
|
|
<annotate key="org.freedesktop.policykit.owner">unix-user:nostro</annotate>
|
|
|
|
|
</action>
|
|
|
|
|
|
|
|
|
|
<action id="net.catcrafts.Nostro1.Pay">
|
|
|
|
|
<description>Make a payment, schedule one, or accept a request or a draft payment</description>
|
|
|
|
|
<message>Authentication is required to $(summary)</message>
|
|
|
|
|
<defaults>
|
|
|
|
|
<allow_any>auth_self</allow_any>
|
|
|
|
|
<allow_inactive>auth_self</allow_inactive>
|
|
|
|
|
<allow_active>auth_self</allow_active>
|
|
|
|
|
</defaults>
|
|
|
|
|
<annotate key="org.freedesktop.policykit.owner">unix-user:nostro</annotate>
|
|
|
|
|
</action>
|
|
|
|
|
|
|
|
|
|
<action id="net.catcrafts.Nostro1.UnfreezeCard">
|
|
|
|
|
<description>Let a frozen card pay again</description>
|
|
|
|
|
<message>Authentication is required to $(summary)</message>
|
|
|
|
|
<defaults>
|
|
|
|
|
<allow_any>auth_self</allow_any>
|
|
|
|
|
<allow_inactive>auth_self</allow_inactive>
|
|
|
|
|
<allow_active>auth_self</allow_active>
|
|
|
|
|
</defaults>
|
|
|
|
|
<annotate key="org.freedesktop.policykit.owner">unix-user:nostro</annotate>
|
|
|
|
|
</action>
|
|
|
|
|
|
|
|
|
|
<action id="net.catcrafts.Nostro1.BlockCard">
|
|
|
|
|
<description>Report a card lost or stolen, which blocks it for good</description>
|
|
|
|
|
<message>Authentication is required to $(summary)</message>
|
|
|
|
|
<defaults>
|
|
|
|
|
<allow_any>auth_self</allow_any>
|
|
|
|
|
<allow_inactive>auth_self</allow_inactive>
|
|
|
|
|
<allow_active>auth_self</allow_active>
|
|
|
|
|
</defaults>
|
|
|
|
|
<annotate key="org.freedesktop.policykit.owner">unix-user:nostro</annotate>
|
|
|
|
|
</action>
|
|
|
|
|
|
|
|
|
|
<action id="net.catcrafts.Nostro1.Connectors">
|
|
|
|
|
<description>Add or remove a bank connection, or choose the account apps may ask you to pay from</description>
|
|
|
|
|
<message>Authentication is required to $(summary)</message>
|
|
|
|
|
<defaults>
|
|
|
|
|
<allow_any>auth_self</allow_any>
|
|
|
|
|
<allow_inactive>auth_self</allow_inactive>
|
|
|
|
|
<allow_active>auth_self</allow_active>
|
|
|
|
|
</defaults>
|
|
|
|
|
<annotate key="org.freedesktop.policykit.owner">unix-user:nostro</annotate>
|
|
|
|
|
</action>
|
|
|
|
|
|
|
|
|
|
<action id="net.catcrafts.Nostro1.Checkout">
|
|
|
|
|
<description>Pay an order an app asks you to pay</description>
|
|
|
|
|
<message>Authentication is required to $(summary)</message>
|
|
|
|
|
<defaults>
|
|
|
|
|
<allow_any>auth_self</allow_any>
|
|
|
|
|
<allow_inactive>auth_self</allow_inactive>
|
|
|
|
|
<allow_active>auth_self</allow_active>
|
|
|
|
|
</defaults>
|
|
|
|
|
<annotate key="org.freedesktop.policykit.owner">unix-user:nostro</annotate>
|
|
|
|
|
</action>
|
|
|
|
|
</policyconfig>
|