Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 88 for Jwks (2.12 sec)

  1. security/tools/jwt/samples/gen-jwt.py

        parser.add_argument("-claims", "--claims",
                            help="Other claims in format name1:value1,name2:value2 etc. Only string values are supported.")
        parser.add_argument("-jwks", "--jwks",
                            help="Path to the output file for JWKS.")
        parser.add_argument("-expire", "--expire", type=int, default=3600,
                            help="JWT expiration time in second. Default is 1 hour.")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 11 16:38:57 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  2. pkg/serviceaccount/openidmetadata_test.go

    		Path   string
    		WantOK bool
    	}{
    		{"OIDC config path", "/.well-known/openid-configuration", true},
    		{"JWKS path", "/openid/v1/jwks", true},
    		{"well-known", "/.well-known", false},
    		{"subpath", "/openid/v1/jwks/foo", false},
    		{"query", "/openid/v1/jwks?format=yaml", true},
    		{"fragment", "/openid/v1/jwks#issuer", true},
    	} {
    		t.Run(tt.Name, func(t *testing.T) {
    			resp, err := http.Get(s.URL + tt.Path)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 02 01:53:17 UTC 2023
    - 14.8K bytes
    - Viewed (0)
  3. pilot/pkg/model/jwks_resolver.go

    		if err != nil {
    			log.Infof("The JWKS key is not yet fetched for issuer %s (%s), using a fake JWKS for now", jwtIssuer, jwksURI)
    			// This is a temporary workaround to reject a request with JWT token by using a fake jwks when istiod failed to fetch it.
    			// TODO(xulingqing): Find a better way to reject the request without using the fake jwks.
    			jwtPubKey = FakeJwks
    		}
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 23 09:47:21 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  4. security/tools/jwt/samples/README.md

    ```bash
    pip install jwcrypto
    ```
    
    ## Regenerate private key and JWKS (for developer use only)
    
    1. Regenerate private key using `openssl`
    
        ```bash
        openssl genrsa -out key.pem 2048
        ```
    
    1. Run gen-jwt.py with `--jkws` to create new public key set and demo JWT
    
        ```bash
        gen-jwt.py key.pem -jwks=./jwks.json --expire=3153600000 --claims=foo:bar > demo.jwt
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Nov 24 15:56:06 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  5. tests/common/jwt/jwt_token_test.go

    	t.Helper()
    
    	data, err := os.ReadFile(jwksFile)
    	if err != nil {
    		t.Fatalf("failed to read jwks: %s", err)
    	}
    	jwks, err := jwk.Parse(data)
    	if err != nil {
    		t.Fatalf("failed to parse jwks: %s", err)
    	}
    	var key any
    	k, _ := jwks.Get(0)
    	if err := k.Raw(&key); err != nil {
    		t.Fatalf("failed to materialize jwks: %s", err)
    	}
    	return key
    }
    
    func TestSampleJwtToken(t *testing.T) {
    	testCases := []struct {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 25 19:30:47 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  6. tests/integration/security/testdata/requestauthn/aud.yaml.tmpl

      jwtRules:
      - issuer: "******@****.***"
        jwksUri: "https://raw.githubusercontent.com/istio/istio/master/tests/common/jwt/jwks.json"
        audiences:
        - "foo"
      - issuer: "******@****.***"
        jwksUri: "https://raw.githubusercontent.com/istio/istio/master/tests/common/jwt/jwks.json"
        audiences:
        - "bar"
    ---
    apiVersion: security.istio.io/v1beta1
    kind: RequestAuthentication
    metadata:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 08 07:03:01 UTC 2023
    - 838 bytes
    - Viewed (0)
  7. tests/integration/ambient/testdata/requestauthn/waypoint-jwt.yaml.tmpl

        name: waypoint
      jwtRules:
      - issuer: "******@****.***"
        jwksUri: "https://raw.githubusercontent.com/istio/istio/master/tests/common/jwt/jwks.json"
      - issuer: "******@****.***"
        jwksUri: "https://raw.githubusercontent.com/istio/istio/master/tests/common/jwt/jwks.json"
    ---
    apiVersion: security.istio.io/v1beta1
    kind: RequestAuthentication
    metadata:
      name: ignored-{{ .To.ServiceName }}
    spec:
      selector:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 15 16:23:36 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  8. pilot/pkg/security/authn/policy_applier.go

    			} else {
    				model.IncLookupClusterFailures("jwks")
    				// Log error and create remote JWKs with fake cluster
    				authnLog.Errorf("Failed to look up Envoy cluster %v. "+
    					"Please create ServiceEntry to register external JWKs server or "+
    					"set PILOT_JWT_ENABLE_REMOTE_JWKS to hybrid/istiod mode.", err)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 23 09:47:21 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  9. pkg/serviceaccount/openidmetadata.go

    	OpenIDConfigPath = "/.well-known/openid-configuration"
    
    	// JWKSPath is the URL path at which the API server serves a JWKS
    	// containing the public keys that may be used to sign Kubernetes
    	// Service Account keys.
    	JWKSPath = "/openid/v1/jwks"
    )
    
    // OpenIDMetadata contains the pre-rendered responses for OIDC discovery endpoints.
    type OpenIDMetadata struct {
    	ConfigJSON       []byte
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 12 00:23:31 UTC 2020
    - 9.4K bytes
    - Viewed (0)
  10. tests/integration/security/policy_attachment_only/testdata/requestauthn/gateway-jwt.yaml.tmpl

      jwtRules:
      - issuer: "******@****.***"
        jwksUri: "https://raw.githubusercontent.com/istio/istio/master/tests/common/jwt/jwks.json"
      - issuer: "******@****.***"
        jwksUri: "https://raw.githubusercontent.com/istio/istio/master/tests/common/jwt/jwks.json"
    ---
    apiVersion: security.istio.io/v1beta1
    kind: RequestAuthentication
    metadata:
      name: ignored-{{ .To.ServiceName }}
    spec:
      selector:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Dec 05 21:52:53 UTC 2023
    - 1.7K bytes
    - Viewed (0)
Back to top