Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: support user-supplied literal headers#24

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ethanndickson merged 4 commits intomainfromethan/literal-header-settings
Jan 23, 2025

Conversation

ethanndickson
Copy link
Member

@ethanndicksonethanndickson commentedJan 16, 2025
edited
Loading

First step for#17.

This PR adds a settings menu to the app, and a network tab with a form for specifying hard-coded HTTP headers to be added on all outgoing requests. The settings cannot be modified while Coder VPN is on, as they can't be applied to the DERP headers without restarting the tailnet connection.

literalheaderflow.mov

Future work includes:

  • Sending these headers to the Network Extension whenever they change, via XPC.
  • Adding support for dynamic, shell command-based headers, as also supported by the CLI.

@ethanndicksonGraphite App
Copy link
MemberAuthor

ethanndickson commentedJan 16, 2025
edited
Loading

@ethanndicksonethanndicksonforce-pushed theethan/literal-header-settings branch 2 times, most recently from46b4141 to2638e0cCompareJanuary 17, 2025 09:10
@ethanndicksonethanndicksonforce-pushed theethan/literal-header-settings branch from2638e0c to4b77803CompareJanuary 17, 2025 09:19
@@ -21,8 +21,7 @@ test:
-testPlan $(SCHEME) \
-skipPackagePluginValidation \
CODE_SIGNING_REQUIRED=NO \
CODE_SIGNING_ALLOWED=NO \
| LC_ALL="en_US.UTF-8" xcpretty
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

I was debugging a CI-only test failure andxcpretty was swallowing a helpful error log -xcbeautify seems like it provides better output in general for tests.

For context, the default xcodebuild output is thousands of lines, and not at all readable.

@ethanndicksonethanndickson marked this pull request as ready for reviewJanuary 17, 2025 09:49
@ethanndicksonethanndicksonforce-pushed theethan/literal-header-settings branch 2 times, most recently fromc8ad579 todc8972eCompareJanuary 17, 2025 10:13
@@ -955,7 +998,7 @@
"$(inherited)",
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 14.6;
MACOSX_DEPLOYMENT_TARGET = 14.0;
Copy link
MemberAuthor

@ethanndicksonethanndicksonJan 17, 2025
edited
Loading

Choose a reason for hiding this comment

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

We need to discuss what minimum macOS version we want to target. On one hand, an app like Tailscale supports versions as old as 11 from 2020, but on the other hand, I suspect most enterprises will be keeping their company devices on 14 or 15, though it'd be nice to know for sure.

Fortunately, we could set this value to13 right now, which is the earliest version Apple still 'supports' (they don't really have a policy FWICT, but the pattern seems to be security updates for the last three versions)

The big feature in 14SwiftData, is a Swift interface for a sqlite-backed app database. I messed around with it for this feature, but it's definitely overkill here. It might be super useful in the future?

@ethanndicksonethanndicksonforce-pushed theethan/literal-header-settings branch frome551166 toa3adfc6CompareJanuary 23, 2025 02:46
@ethanndicksonethanndickson changed the base branch fromethan/nicer-login-form tomainJanuary 23, 2025 02:46
@ethanndicksonethanndickson merged commitfdb8545 intomainJan 23, 2025
1 check passed
@ethanndicksonethanndickson deleted the ethan/literal-header-settings branchJanuary 23, 2025 02:48
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@coadlercoadlercoadler approved these changes

@spikecurtisspikecurtisAwaiting requested review from spikecurtis

Assignees

@ethanndicksonethanndickson

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@ethanndickson@coadler

[8]ページ先頭

©2009-2025 Movatter.jp