
--
You received this message because you are subscribed to the Google Groups "Google Cloud Endpoints" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-endp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-endpoints/276be5f0-ab73-45cb-93d1-8e8001de91aan%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-endpoints/CAL6CxQ7wVzHkLsvYGHsytd1BEmzcNoq70%3Dt28vTd0ct9UNofTA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-endpoints/CADeeoqrm1xoJdPOEBmC1ytCp8v4xrNzSqHentOGXWbUQvQ_ciA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-endpoints/CADeeoqpuAQY_OFDMtns9AObJ-%3Dcg6XPR4%3DLdbBcwVYrSmunvZw%40mail.gmail.com.
| Josh Einhorn | | Software Engineer | | joshe...@google.com | | 1-215-837-1102 |
Why not use the IAM with Cloud Run directly?
|
|
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-endpoints/a9305d6a-e04f-4154-bd12-c4c4cee469b8n%40googlegroups.com.
{
"alg": "RS256",
"typ": "JWT",
"kid": "42ba1e234ac91ffca687a5b5b3d0ca2d7ce0fc0a"
}
Payload:
{
"iss": "myse...@myproject.iam.gserviceaccount.com",
"iat": 1493833746,
"aud": "myservice.appspot.com",
"exp": 1493837346,
"sub": "myse...@myproject.iam.gserviceaccount.com"
}authentication:
providers:
- id: google_id_token_test
issuer: "https://accounts.google.com"
jwks_uri: "https://www.googleapis.com/oauth2/v3/certs"
audiences: "super-hard-to-guess-text-here"
rules:
# This auth rule will apply to all methods.
- selector: "*"
requirements:
- provider_id: google_id_token_test
|
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-endpoints/CADeeoqrZd7aHMq%2Bb6XQt1Z%2B7YJib5GJj4tHh1K9twzx%3DUr%3Duow%40mail.gmail.com.
In particular it mentions that the "iss" and "sub" both need to be the service account email address.
If I understand this, setting the aud to the service account email address is merely an 'proxy' to control 'Access' to the backend via the Gateway?
Could one achieve similar results by setting the audience to something super hard to guess?