Credential-less provider profiles cannot be instantiated without a credential source
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 68/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- rust
- Bereich
- cli, networking
Rechercherichtung
Reproduziere das Verhalten mit den im Issue gezeigten Befehlen provider profile lint, import und create und verwende dabei ein Profil mit credentials: []. Verfolge den Einstiegspunkt für die Provider-Erstellung und dessen Validierung der Credential-Quelle. Als erledigt gilt die Aufgabe, wenn Profile ohne Credentials erstellt und an eine Sandbox angehängt werden können, während Profile mit Credentials weiterhin ihre konfigurierte Quelle benötigen und Endpunkte in der effektiven Netzwerk-Richtlinie verbleiben.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
User Story
As an OpenShell user, I want to create a provider instance from a provider profile that declares no credentials, so that I can use the provider solely to distribute network access policies to sandboxes.
This is useful for internal services and public endpoints where authentication is not required, but where the provider profile is still useful for managing and attaching network policy.
Problem Statement
A valid provider profile with credentials: [] can be linted and imported successfully, but a provider instance cannot be created from that profile without supplying one of the credential-source options.
For example, a profile containing only a TCP endpoint and no credentials is accepted by the profile validation/import commands, but:
openshell provider create --name example --type example
fails because the CLI requires a credential source.
This prevents credential-less, policy-only provider profiles from being instantiated.
Impact / Why This Matters
Users who want to use provider profiles purely to distribute network policies must currently provide a credential source even when the provider profile does not require credentials.
As a workaround, users have to provide a dummy/fake secret when creating the provider instance.
This creates unnecessary configuration and makes the provider appear to have credentials when it does not actually require or use any.
For policy-only providers, this also makes it impossible to use the provider model as intended without introducing artificial credentials into the configuration.
Acceptance Criteria
- A provider profile containing
credentials: []can be instantiated without providing a credential source. - The following command succeeds for a credential-less provider profile:
openshell provider create --name example --type example
- No dummy, fake, or otherwise unnecessary credential is required.
- The resulting provider instance can be attached to a sandbox.
- Endpoints defined by the provider profile are included in the sandbox's effective network policy.
- Existing provider profiles that require credentials continue to require their appropriate credential sources.
Reproduction Steps
Create /tmp/example-provider.yaml:
id: example
display_name: Example
description: Credential-less TCP access to example.com
category: other
inference_capable: false
credentials: []
endpoints:
- host: example.com
port: 443
protocol: tcp
binaries:
- /usr/bin/curl
2. Validate the profile
openshell provider profile lint -f /tmp/example-provider.yaml
Expected:
Provider profile lint passed.
3. Import the profile
openshell provider profile import \
-f /tmp/example-provider.yaml
The profile is imported successfully.
4. Try to create a provider without credentials
openshell provider create \
--name example \
--type example
Actual result:
error: the following required arguments were not provided:
<--from-existing|--credential ...|--from-gcloud-adc|--runtime-credentials|--from-oidc-token>
The profile explicitly declares:
credentials: []
but the provider creation command still requires a credential-source option.
5. Workaround
The provider can only be created by supplying a credential source, for example by using a dummy/fake secret.
This is unnecessary because the provider profile itself declares that it has no credentials.
Environment
- OpenShell:
0.0.116 - OS: macOS 26.6.2
- Deployment: OpenShell gateway running locally, docker desktop 4.90.0, docker engine 29.7.2,
- Provider type: custom provider profile
- Provider profile: credential-less (
credentials: []) - Network policy: TCP endpoint
example.com:443
Logs
$ openshell provider create --name example --type example
error: the following required arguments were not provided:
<--from-existing|--credential ...|--from-gcloud-adc|--runtime-credentials|--from-oidc-token>
- Vorherrschende Sprache
- Rust
- Sterne
- 15.4k
- Forks
- 1.7k
- Ø Merge
- 1 T. 21 Std.
- Gemergte PRs (30 T.)
- 366
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus NVIDIA/OpenShell
-
state:triage-needed
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
Maintainer antworten meist innerhalb von 1 Tag
-
docs: document workspace and provider label capabilitiesEvtl. vergeben @johntmyers hat das vor 3 Tagen übernommen. Offenarea:docs
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
NVIDIA/OpenShell#4250 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug(driver-mxc): test helper fails to compile after gateway-name argumentEvtl. vergeben @feloy hat das vor 5 Tagen übernommen. Offenstate:triage-needed
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
Maintainer antworten meist innerhalb von 1 Tag
-
bug: install.sh ignores XDG_CONFIG_HOME for the local gateway configEvtl. vergeben @fede-kamel hat das vor 9 Tagen übernommen. Offenarea:cli os:linux os:macos state:validated
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
NVIDIA/OpenShell#4042 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
state:triage-needed
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
NVIDIA/OpenShell#3995 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in NVIDIA/OpenShell
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
objectionary/sodg.rs#301 ·
-
[Bug] Completion info popup (.cm-completionInfo) ignores the configured editor fontEvtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offenbug user-priority/P2
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
t8y2/dbx#11718 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
rescript-lang/rescript#8765 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
nautechsystems/nautilus_trader#5287 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
farion1231/cc-switch#8072 ·
Maintainer antworten meist innerhalb von 1 Tag