Skip to content

Conversation

@onema
Copy link
Contributor

@onema onema commented Jul 13, 2012

Added two new fields to the keys table: 1) is_private_key and 2) ip_addresses. These two fields work together. If the key is private a list of IP addresses must be associated with the API key, the request is rejected if no valid IP address is found. IP addresses need to be separated by a line break "\n".

This is an alternative to the ip-whitelist, but it is tight to the API key.

This merge request is in response to the this: #72 (comment) to added this feature to the latest code of the ci-restserver. I changed the name is_public_key to is_private_key as it makes more sense.

juanatgmo and others added 2 commits July 13, 2012 00:03
…ddresses. These two fields work together. If the key is private a list of IP addresses can be associated with the API key, If the API key is private and no valid address if found, the request is rejected. IP addresses need to be separated by a line break n. This is an alternative to the ip-whitelist, but it is tight to the API key.
@philsturgeon
Copy link
Collaborator

Hey, could you update this and remove any conflicts?

@onema
Copy link
Contributor Author

onema commented Dec 10, 2012

This is done. let me know if you find any other issues.

philsturgeon pushed a commit that referenced this pull request Dec 11, 2012
List of ip addresses that can use an API key (2)
@philsturgeon philsturgeon merged commit 6b24b8f into chriskacerguis:master Dec 11, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants