Skip to content

Advisory device protection: implementation#12622

Merged
touilleMan merged 7 commits intomasterfrom
mandatory-totp-impl
Apr 21, 2026
Merged

Advisory device protection: implementation#12622
touilleMan merged 7 commits intomasterfrom
mandatory-totp-impl

Conversation

@touilleMan
Copy link
Copy Markdown
Contributor

No description provided.

@touilleMan touilleMan requested review from a team as code owners April 15, 2026 15:41
@touilleMan touilleMan force-pushed the mandatory-totp-impl branch from e968fe2 to 0205f2e Compare April 15, 2026 15:43
@touilleMan touilleMan force-pushed the mandatory-totp-impl branch 3 times, most recently from c987f2f to 3bfe981 Compare April 16, 2026 00:35
@touilleMan touilleMan requested a review from a team as a code owner April 16, 2026 00:35
Base automatically changed from mandatory-totp to master April 16, 2026 09:01
assert!("DUMMY+TOTP"
.parse::<AdvisoryDeviceFileProtection>()
.is_err());
assert!("".parse::<AdvisoryDeviceFileProtection>().is_err());
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
assert!("".parse::<AdvisoryDeviceFileProtection>().is_err());
assert!("".parse::<AdvisoryDeviceFileProtection>().is_err());
assert!("TOTP+PASSWORD".parse::<AdvisoryDeviceFileProtection>().is_err());

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 done.

Comment thread server/parsec/cli/run.py
metavar="STRATEGY",
help="""Advisory device file protection to recommend to clients.

Can be specified multiple times to recommend multiple strategies.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to be sure o specify password and keyring you'd have to do something like
--advisory-device-file-protection PASSWORD --advisory-device-file-protection KEYRING
or --advisory-device-file-protection PASSWORD,KEYRING would work ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the option has to be provided multiple times (we already do this for the --cors-allow-origins option)

Note when passing by environment variable, the value is cut by whitespaces

@touilleMan touilleMan force-pushed the mandatory-totp-impl branch from 3bfe981 to 590a5cf Compare April 21, 2026 00:36
@touilleMan touilleMan force-pushed the mandatory-totp-impl branch from 590a5cf to c519a93 Compare April 21, 2026 00:48
@touilleMan touilleMan enabled auto-merge April 21, 2026 00:48
@touilleMan touilleMan added this pull request to the merge queue Apr 21, 2026
Merged via the queue into master with commit dcdb76c Apr 21, 2026
18 checks passed
@touilleMan touilleMan deleted the mandatory-totp-impl branch April 21, 2026 01:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants