Sure,
I am getting the save whether using dashboard or API call with admin API key (tried a number of admin-type users too)
This is an example JSON Post i wanted to use to create API key (basic auth)
JSON
{
“last_check”: 0,
“allowance”: 1000,
“rate”: 1000,
“per”: 60,
“expires”: 0,
“quota_max”: 10000,
“quota_renews”: 1424543479,
“quota_remaining”: 10000,
“quota_renewal_rate”: 2520000,
“access_rights”: {
“bc2f8cfb7ab241504d9f3574fe407499”: {
“api_id”: “ff3f7b484a9b4dbc6f0ce1334a5c1906”,
“api_name”: “kevin”,
“versions”: [
“Default”
]
}
},
“basic_auth_data”: {
“password”: “test123”
}
}
-bash-4.1$ cat tyk_analytics.conf
{
“listen_port”: 3000,
“tyk_api_config”: {
“Host”: “http://myhost”,
“Port”: “8088”,
“Secret”: “”
},
“mongo_url”: “mongodb://localhost:27017/tyk”,
“page_size”: 10,
“admin_secret”: “athena12345”,
“shared_node_secret”: “452d20ee67be67f6340b4c0605b044b7”,
“redis_port”: 6379,
“redis_host”: “localhost”,
“redis_password”: “”,
“enable_cluster”: false,
“force_api_defaults”: false,
“notify_on_change”: false,
“license_key”: “eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJhbGxvd2VkX25vZGVzIjoiMjhjZTYyMWItM2E4Yi00YjE0LTQ5NjQtMWUxZGIwYzdiZjczIiwiZXhwIjoxNTE4ODc1NDAyLCJvd25lciI6IjU4YWQ5NmNlNDVmOTJlNTQzMmNlMTY0MiJ9.ogYSSkaJDpqFDg23VjMYLHD_lpJZZZWQSv6RK8GBypD9EYeHU3zX5ibQiFa-R8cGHByUVsAgTHVyS0oiPYtZgc_oovAYZjRRl05TtJOAkyXwGIa460aA2wjLiecu9-1b2KqbKgsWQldAa6Yd3L9U9jgBqlB-Enguukh3HSu8B248sxM6lbnt5Su-c-doMHjIELvc9S4LyOnSc9y2f5WM8zsBp2QH7Bd4D5DDDTKDzwwqLi6nI7Csh_EVnSps-KD9ARThCnbIGZmo2FPKCOekHfK8mzh8SjZWOHkUvEb860m3r6WsfkCaMJsPWjfk4et2Rrrmjh42FmmeiKPraPTu_A”,
“redis_database”: 0,
“redis_hosts”: null,
“hash_keys”: false,
“email_backend”: {
“enable_email_notifications”: false,
“code”: “”,
“settings”: null,
“default_from_email”: “”,
“default_from_name”: “”
},
“hide_listen_path”: false,
“sentry_code”: “”,
“sentry_js_code”: “”,
“use_sentry”: false,
“enable_master_keys”: false,
“enable_duplicate_slugs”: false,
“show_org_id”: false,
“host_config”: {
“enable_host_names”: false,
“disable_org_slug_prefix”: false,
“hostname”: “”,
“override_hostname”: “”,
“portal_domains”: null,
“portal_root_path”: “”,
“generate_secure_paths”: false,
“use_strict_hostmatch”: false
},
“http_server_options”: {
“use_ssl”: false,
“certificates”: [{
“domain_name”: “myhost”,
“cert_file”: “/apps/myuser/myhost_certs/myhost.cer”,
“key_file”: “/apps/myuser/myhost_certs/myhost.key”
}],
“min_version”: “1.2”
},
“ui”: {
“languages”: null,
“hide_help”: false,
“default_lang”: “”,
“login_page”: null,
“nav”: null,
“uptime”: null,
“portal_section”: null,
“designer”: null,
“dont_show_admin_sockets”: false,
“dont_allow_license_management”: false,
“dont_allow_license_management_view”: false
},
“home_dir”: “/apps/myuser/tyk-dashboard”,
“identity_broker”: {
“enabled”: false,
“host”: {
“connection_string”: “”,
“secret”: “452d20ee67be67f6340b4c0605b044b7”
}
},
“tagging_options”: {
“tag_all_apis_by_org”: false
},
“use_sharded_analytics”: true,
“enable_aggregate_lookups”: true,
“enable_analytics_cache”: false,
“aggregate_lookup_cutoff”: “”,
“maintenance_mode”: false,
“allow_explicit_policy_id”: false,
“private_key_path”: “/apps/myuser/myhost_certs/myhost.key”,
“node_schema_path”: “”,
“oauth_redirect_uri_separator”: “”,
“statsd_connection_string”: “”,
“statsd_prefix”: “”
}
-bash-4.1$ cat tyk.conf
{
“listen_address”: “myhost”,
“listen_port”: 8088,
“secret”: “2452d20ee67be67f6340b4c0605b044b78”,
“node_secret”: “2452d20ee67be67f6340b4c0605b044b78”,
“template_path”: “./templates”,
“tyk_js_path”: “./js/tyk.js”,
“middleware_path”: “./middleware”,
“policies”: {
“policy_source”: “”,
“policy_connection_string”: “”,
“policy_record_name”: “”,
“allow_explicit_policy_id”: false
},
“use_db_app_configs”: true,
“db_app_conf_options”: {
“connection_string”: “http://myhost:3000”,
“node_is_segmented”: false,
“tags”: []
},
“disable_dashboard_zeroconf”: false,
“app_path”: “./apps/”,
“storage”: {
“type”: “redis”,
“host”: “localhost”,
“port”: 6379,
“hosts”: null,
“username”: “”,
“password”: “”,
“database”: 0,
“optimisation_max_idle”: 100,
“optimisation_max_active”: 0,
“enable_cluster”: false
},
“enable_separate_cache_store”: false,
“cache_storage”: {
“type”: “”,
“host”: “”,
“port”: 0,
“hosts”: null,
“username”: “”,
“password”: “”,
“database”: 0,
“optimisation_max_idle”: 0,
“optimisation_max_active”: 0,
“enable_cluster”: false
},
“enable_analytics”: false,
“analytics_config”: {
“type”: “”,
“ignored_ips”: [],
“enable_detailed_recording”: false,
“enable_geo_ip”: true,
“geo_ip_db_path”: “”,
“normalise_urls”: {
“enabled”: false,
“normalise_uuids”: false,
“normalise_numbers”: false,
“custom_patterns”: []
},
“pool_size”: 0
},
“health_check”: {
“enable_health_checks”: true,
“health_check_value_timeouts”: 60
},
“optimisations_use_async_session_write”: false,
“allow_master_keys”: false,
“hash_keys”: false,
“suppress_redis_signal_reload”: false,
“suppress_default_org_store”: false,
“use_redis_log”: false,
“sentry_code”: “”,
“use_sentry”: false,
“use_syslog”: false,
“use_graylog”: false,
“use_logstash”: false,
“graylog_network_addr”: “”,
“logstash_network_addr”: “”,
“syslog_transport”: “”,
“logstash_transport”: “”,
“syslog_network_addr”: “”,
“statsd_connection_string”: “”,
“statsd_prefix”: “”,
“enforce_org_data_age”: false,
“enforce_org_data_detail_logging”: false,
“enforce_org_quotas”: false,
“experimental_process_org_off_thread”: false,
“enable_non_transactional_rate_limiter”: false,
“enable_sentinel_rate_limiter”: false,
“enable_redis_rolling_limiter”: false,
“Monitor”: {
“enable_trigger_monitors”: false,
“configuration”: {
“method”: “”,
“target_path”: “”,
“template_path”: “”,
“header_map”: null,
“event_timeout”: 0
},
“global_trigger_limit”: 0,
“monitor_user_keys”: false,
“monitor_org_keys”: false
},
“oauth_refresh_token_expire”: 0,
“oauth_token_expire”: 0,
“oauth_redirect_uri_separator”: “”,
“slave_options”: {
“use_rpc”: false,
“connection_string”: “”,
“rpc_key”: “”,
“api_key”: “”,
“enable_rpc_cache”: false,
“bind_to_slugs”: false,
“disable_keyspace_sync”: false,
“group_id”: “”,
“call_timeout”: 30,
“ping_timeout”: 60
},
“disable_virtual_path_blobs”: false,
“local_session_cache”: {
“disable_cached_session_state”: false,
“cached_session_timeout”: 0,
“cached_session_eviction”: 0
},
“http_server_options”: {
“override_defaults”: false,
“read_timeout”: 0,
“write_timeout”: 0,
“use_ssl”: false,
“use_ssl_le”: false,
“enable_websockets”: false,
“min_version”: “1.2”,
“certificates”: [{
“domain_name”: “myhost”,
“cert_file”: “/apps/myuser/myhost_certs/myhost.cer”,
“key_file”: “/apps/myuser/myhost_certs/myhost.key”
}],
“flush_interval”: 0,
“skip_url_cleaning”: false
},
“service_discovery”: {
“default_cache_timeout”: 0
},
“close_connections”: false,
“auth_override”: {
“force_auth_provider”: false,
“auth_provider”: {
“name”: “”,
“storage_engine”: “”,
“meta”: null
},
“force_session_provider”: false,
“session_provider”: {
“name”: “”,
“storage_engine”: “”,
“meta”: null
}
},
“uptime_tests”: {
“disable”: false,
“config”: {
“failure_trigger_sample_size”: 0,
“time_wait”: 0,
“checker_pool_size”: 0,
“enable_uptime_analytics”: false
}
},
“hostname”: “myhost”,
“enable_api_segregation”: false,
“control_api_hostname”: “”,
“enable_custom_domains”: false,
“enable_jsvm”: false,
“coprocess_options”: {
“enable_coprocess”: false,
“coprocess_grpc_server”: “”
},
“hide_generator_header”: false,
“event_handlers”: {
“events”: {}
},
“event_trigers_defunct”: null,
“pid_file_location”: “/apps/myuser/tyk-gateway/var/run/gateway.pid”,
“allow_insecure_configs”: false,
“public_key_path”: “/apps/myuser/myhost_certs/myhost.key.pub”,
“close_idle_connections”: false,
“drl_notification_frequency”: 0,
“global_session_lifetime”: 0,
“force_global_session_lifetime”: false,
“bundle_base_url”: “”,
“enable_bundle_downloader”: false,
“allow_remote_config”: false,
“legacy_enable_allowance_countdown”: false,
“max_idle_connections_per_host”: 0,
“reload_wait_time”: 0
}