-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support apikey based traffic restriction (#189)
* b/36368559 support apikey based traffic restriction * Fixed code formatting
- Loading branch information
1 parent
20c5bab
commit 557d0c6
Showing
5 changed files
with
98 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
contrib/endpoints/src/api_manager/service_control/testdata/check_request_android_ios.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
service_name: "test_service" | ||
operation { | ||
operation_id: "operation_id" | ||
operation_name: "operation_name" | ||
consumer_id: "api_key:api_key_x" | ||
start_time { | ||
seconds: 100000 | ||
nanos: 100000 | ||
} | ||
end_time { | ||
seconds: 100000 | ||
nanos: 100000 | ||
} | ||
labels { | ||
key: "servicecontrol.googleapis.com/android_cert_fingerprint" | ||
value: "AIzaSyB4Gz8nyaSaWo63IPUcy5d_L8dpKtOTSD0" | ||
} | ||
labels { | ||
key: "servicecontrol.googleapis.com/android_package_name" | ||
value: "com.google.cloud" | ||
} | ||
labels { | ||
key: "servicecontrol.googleapis.com/caller_ip" | ||
value: "1.2.3.4" | ||
} | ||
labels { | ||
key: "servicecontrol.googleapis.com/ios_bundle_id" | ||
value: "5b40ad6af9a806305a0a56d7cb91b82a27c26909" | ||
} | ||
labels { | ||
key: "servicecontrol.googleapis.com/referer" | ||
value: "referer" | ||
} | ||
labels { | ||
key: "servicecontrol.googleapis.com/service_agent" | ||
value: "ESP/{{service_agent_version}}" | ||
} | ||
labels { | ||
key: "servicecontrol.googleapis.com/user_agent" | ||
value: "ESP" | ||
} | ||
} | ||
service_config_id: "2016-09-19r0" |