Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add list of allowed packet data keys to Allocation of TransferAuthorization #5280
Add list of allowed packet data keys to Allocation of TransferAuthorization #5280
Changes from all commits
134df14
254b0b5
0543a9b
26a55d6
cc6abf7
695152a
ddec47c
180e419
92649be
97bf329
8f21fc9
9a90455
7f28ad5
65cc3ad
c42ba43
075b914
54ce770
062f9ee
3bcbdbe
576a8e6
a36979e
08b49a6
a04a68c
15c674b
154a3e0
6cb2914
1a1c9e3
a39cb4d
cb6b948
6f3e206
05c03c3
4d5cd53
6ef45f9
4bc9d00
6adf3b8
481489e
a74aaa2
7d00786
3352e26
1a0bb62
5673453
b003428
9d9d5a3
66bb1e7
aa3b5a1
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should these two conditions be included in a logical AND?
The current code means you cannot include any memo unless there is something in
allowPacketDataList
. What if I want to add a random string memo "damian's packet" - it would fail.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, according to the design if
allowedPacketDataList
is empty, we cannot include any memo. We will allow any memo if theallowedPacketDataList
is*
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, so authz users must set the
allowedPacketDataList
to use any kind of memo at all. That's good I guess.. definitely explicit 😅There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The issue I see of doing this is that we don't give any information to the user of what keys are the ones that are not allowed? cc @DimitrisJim
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see this was also removed in line 195 to probably drop usage of
exp
. I think we can just create a little function (follow up) that creates a diff of the keys in the two key sets for the dictionaries and just re-use in both places.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So you're fine if I drop this code as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean the printing of the keys was dropped!
but no, drop it away 😄 we can just add it afterwards so as to not hold up this issue even longer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ay, true! I can put that back and drop this for now then.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will tackle this in a follow-up because the keys were shown before using the experimental feature, so I will try getting the keys in a different way.