Re: Manage Cloud foundry Org/space
tommyoshields71 <tommyoshields71@...>
But when started someone out there was guiding me in the wrong direction
new to this but after seeing the results now I know which direction to take I've had some downtime do to illness with my family members and water damage to my equipment but even tonight while trying to do something someone we'll message me they were guided me in the wrong direction I will focus on the task at hand like stylus I want make something good On Jul 23, 2017 6:38 AM, "Jenny Hilton [via CF Dev]" < ml+s70369n7245h87(a)n6.nabble.com> wrote: Ping :- ) -- View this message in context: http://cf-dev.70369.x6.nabble.com/Re-cf-dev-Re-Manage-Cloud-foundry-Org-space-tp7246.html Sent from the CF Dev mailing list archive at Nabble.com.
|
|
Re: Manage Cloud foundry Org/space
Jenny Hilton
Ping :- )
|
|
Re: Increasing Routing availability in the event of failure with route registration
tommyoshields71 <tommyoshields71@...>
Sorry been out of commission water damage on my other phone just glad to be
back On Jul 18, 2017 7:40 PM, "Mike Youngstrom [via CF Dev]" < ml+s70369n7221h43(a)n6.nabble.com> wrote: This sounds like a great solution to a very old nagging problem. I'm -- View this message in context: http://cf-dev.70369.x6.nabble.com/Re-cf-dev-Re-Re-Increasing-Routing-availability-in-the-event-of-failure-with-route-registration-tp7244.html Sent from the CF Dev mailing list archive at Nabble.com.
|
|
San Francisco Cloud Foundry Meetup
Dan Jahner
Hey All -
We are holding a Cloud Foundry meetup at Pivotal in San Francisco on Tuesday, July 25. This session will focus on how to use CredHub in your environment to manage platform and service credentials. Further details in the invite linked below. https://www.meetup.com/Cloud-Foundry-Users-San-Francisco-Bay-Area/events/241697978/ Hope to see you there. -Dan
|
|
Cf api for find out duplicated users in UAADB
Gowrisankar M
Hi Colleages,
Can somebody tell me cf api which is avaialble to findout duplicated users in uaadb. BRs, Gowrisankar
|
|
Re: question about token management using cf client using java
SOHN SEOROCK
I recognized why token log logged twice .
it was just log4j configuration problem Thanks.
|
|
Re: Reg- CCDB and UAADB model
Gowrisankar M
Thanks Filip for the information for UAA DB. Any idea on Cloud controller
toggle quoted messageShow quoted text
DB (postgresSQL) design ? documetation ?
On Thu, Jul 20, 2017 at 9:26 PM, Filip Hanik <fhanik(a)pivotal.io> wrote:
UAA DB is nothing special. We like to keep it simple.
|
|
Re: question about token management using cf client using java
SOHN SEOROCK
Thanks Ben Hale for replying
I still have a question about 401 error occurred sometimes as Ben Hale said, i set the logger and i see the log when 401 error occurs as you can see, it seems that token is issued 2017-07-21 11:08:10,751 DEBUG [cloudfoundry-client.token] (AbstractUaaTokenProvider.java:151) - Access Token Issued At: 2017-07-21T02:08:14 UTC 2017-07-21 11:08:10,751 DEBUG [cloudfoundry-client.token] (AbstractUaaTokenProvider.java:151) - Access Token Issued At: 2017-07-21T02:08:14 UTC 2017-07-21 11:08:10,751 DEBUG [cloudfoundry-client.token] (AbstractUaaTokenProvider.java:152) - Access Token Expires At: 2017-07-21T02:18:14 UTC 2017-07-21 11:08:10,751 DEBUG [cloudfoundry-client.token] (AbstractUaaTokenProvider.java:152) - Access Token Expires At: 2017-07-21T02:18:14 UTC reactor.ipc.netty.http.client.HttpClientException: HTTP request failed with code: 401. Failing URI: /firehose/cf-nozzle but i received error 401 I don't why error is occurred and my token log is logged twice i configured TokenProvider and DopplerClient below doppler client has @Bean annotation and TokenProvider has no @Bean annotation public TokenProvider tokenProvider(String password, String username) { return PasswordGrantTokenProvider.builder() .password(password) .username(username) .build(); } @Bean public DopplerClient dopplerClient(NozzleProperties properties) { return ReactorDopplerClient.builder() .connectionContext(connectionContext(properties.getApiHost(), properties.isSkipSslValidation())) .tokenProvider(tokenProvider(properties.getPassword(), properties.getUsername())) .build(); } is it wrong? may these configuration can make token log twice?? Thanks ------ the full log is below 2017-07-21 11:08:10,268 DEBUG [cloudfoundry-client.token] (AbstractUaaTokenProvider.java:264) - Negotiating using token provider 2017-07-21 11:08:10,268 DEBUG [cloudfoundry-client.token] (AbstractUaaTokenProvider.java:264) - Negotiating using token provider 2017-07-21 11:08:10,704 DEBUG [cloudfoundry-client.token] (AbstractUaaTokenProvider.java:193) - Refresh Token: a93d6589d929470880b8e6f8878dea1a-r 2017-07-21 11:08:10,704 DEBUG [cloudfoundry-client.token] (AbstractUaaTokenProvider.java:193) - Refresh Token: a93d6589d929470880b8e6f8878dea1a-r 2017-07-21 11:08:10,725 DEBUG [cloudfoundry-client.token] (AbstractUaaTokenProvider.java:147) - Access Token: eyJhbGciOiJSUzI1NiIsImtpZCI6ImxlZ2FjeS10b2tlbi1rZXkiLCJ0eXAiOiJKV1QifQ.eyJqdGkiOiI1ZjE3Y2YwY2ViZWQ0OTE2YTFjZjA5OTYwZDg2OTdjMCIsInN1YiI6IjI2OGM3MGZhLTExYmUtNGIxNS04ZDgyLTdkM2UxYzA1NDI1ZSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iLCJyb3V0aW5nLnJvdXRlcl9ncm91cHMucmVhZCIsImNsb3VkX2NvbnRyb2xsZXIud3JpdGUiLCJkb3BwbGVyLmZpcmVob3NlIiwib3BlbmlkIiwicm91dGluZy5yb3V0ZXJfZ3JvdXBzLndyaXRlIiwic2NpbS5yZWFkIiwidWFhLnVzZXIiLCJjbG91ZF9jb250cm9sbGVyLnJlYWQiLCJwYXNzd29yZC53cml0ZSIsInNjaW0ud3JpdGUiXSwiY2xpZW50X2lkIjoiY2YiLCJjaWQiOiJjZiIsImF6cCI6ImNmIiwiZ3JhbnRfdHlwZSI6InBhc3N3b3JkIiwidXNlcl9pZCI6IjI2OGM3MGZhLTExYmUtNGIxNS04ZDgyLTdkM2UxYzA1NDI1ZSIsIm9yaWdpbiI6InVhYSIsInVzZXJfbmFtZSI6ImFkbWluIiwiZW1haWwiOiJhZG1pbiIsImF1dGhfdGltZSI6MTUwMDYwMjg5NCwicmV2X3NpZyI6ImRmOThiNTI1IiwiaWF0IjoxNTAwNjAyODk0LCJleHAiOjE1MDA2MDM0OTQsImlzcyI6Imh0dHBzOi8vdWFhLjExNS42OC40Ni4xODYueGlwLmlvL29hdXRoL3Rva2VuIiwiemlkIjoid WFhIiwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZ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3b3JkIiwidXNlcl9pZCI6IjI2OGM3MGZhLTExYmUtNGIxNS04ZDgyLTdkM2UxYzA1NDI1ZSIsIm9yaWdpbiI6InVhYSIsInVzZXJfbmFtZSI6ImFkbWluIiwiZW1haWwiOiJhZG1pbiIsImF1dGhfdGltZSI6MTUwMDYwMjg5NCwicmV2X3NpZyI6ImRmOThiNTI1IiwiaWF0IjoxNTAwNjAyODk0LCJleHAiOjE1MDA2MDM0OTQsImlzcyI6Imh0dHBzOi8vdWFhLjExNS42OC40Ni4xODYueGlwLmlvL29hdXRoL3Rva2VuIiwiemlkIjoid WFhIiwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiLCJzY2ltIiwicGFzc3dvcmQiLCJjZiIsInVhYSIsIm9wZW5pZCIsImRvcHBsZXIiLCJyb3V0aW5nLnJvdXRlcl9ncm91cHMiXX0.SOVe6D-N-WHx3r12y6b-eo4Vw7cE8chGqLyavcxwLC239ntikXqnCEZciG0WIh-KkgWA9v3-spyL4QEi5traLQxPhutBRUrh7rvPPEJBc3NJqG4adT4sIBhrdS0ZPF5zMdSQcY1Sm195KNxfOG9rX-AF8_B-KOvJWkbHmokQiMqiOLPbOuTgy5mWhHW_A_zNJ5ChZR7YI7jlY5t_nkc1TousuQg9oVQ89y7-hXq9LSYHcxzWSOGiheyiLSw7oqRYmmWRYphN5jc38H6E_e7-fVvqGYyhwyQvHlrHjy6-56W_hO0DXAWafYQX_JdS0I83SDqXQRz8xg1ungNzT7Eaog 2017-07-21 11:08:10,751 DEBUG [cloudfoundry-client.token] (AbstractUaaTokenProvider.java:151) - Access Token Issued At: 2017-07-21T02:08:14 UTC 2017-07-21 11:08:10,751 DEBUG [cloudfoundry-client.token] (AbstractUaaTokenProvider.java:151) - Access Token Issued At: 2017-07-21T02:08:14 UTC 2017-07-21 11:08:10,751 DEBUG [cloudfoundry-client.token] (AbstractUaaTokenProvider.java:152) - Access Token Expires At: 2017-07-21T02:18:14 UTC 2017-07-21 11:08:10,751 DEBUG [cloudfoundry-client.token] (AbstractUaaTokenProvider.java:152) - Access Token Expires At: 2017-07-21T02:18:14 UTC reactor.ipc.netty.http.client.HttpClientException: HTTP request failed with code: 401. Failing URI: /firehose/cf-nozzle Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException: Assembly trace from producer [reactor.core.publisher.FluxMap] : reactor.core.publisher.Flux.checkpoint(Flux.java:2914) org.cloudfoundry.reactor.doppler.ReactorDopplerEndpoints.firehose(ReactorDopplerEndpoints.java:50) org.cloudfoundry.reactor.doppler._ReactorDopplerClient.firehose(_ReactorDopplerClient.java:44) org.cloudfoundry.reactor.doppler.ReactorDopplerClient.firehose(ReactorDopplerClient.java:14) com.skcc.producer.nozzle.FirehoseReader.start(FirehoseReader.java:63) org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:175) org.springframework.context.support.DefaultLifecycleProcessor.access$200(DefaultLifecycleProcessor.java:50) org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:348) org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:151) org.springframework.context.support.DefaultLifecycleProcessor.onRefresh(DefaultLifecycleProcessor.java:114) org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:880) org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.finishRefresh(EmbeddedWebApplicationContext.java:144) org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:546) org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122) org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693) org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360) org.springframework.boot.SpringApplication.run(SpringApplication.java:303) org.springframework.boot.SpringApplication.run(SpringApplication.java:1118) org.springframework.boot.SpringApplication.run(SpringApplication.java:1107) com.skcc.producer.CfProducerApplication.main(CfProducerApplication.java:31) Error has been observed by the following operator(s): |_ Flux.checkpoint(ReactorDopplerEndpoints.java:50)
|
|
Java Buildpacks 3.19 and 4.3
Ben Hale <bhale@...>
I'm pleased to announce the release of Java Buildpacks v3.19 and v4.3. As always there are some bug fixes and a whole load of new functionality. Please see the release notes[1][2] for details about these and past releases.
toggle quoted messageShow quoted text
As described in the release announcement for 4.0, the three month migration period will be completing shortly. During this period we've received no reports of any major problems and are ready to make 4.x the default releases for Cloud Foundry. We expect v3.19 to be both the final 3.x release, and the final 3.x release that is the default. With the release of v4.4 (historically this will be about 3 weeks from now), 4.x will become the default for all Java users on Cloud Foundry. Thanks to everyone that provided feedback via GitHub and Slack during the migration period. -Ben Hale Cloud Foundry Java Experience [1]: https://github.com/cloudfoundry/java-buildpack/releases/tag/v3.19 [2]: https://github.com/cloudfoundry/java-buildpack/releases/tag/v4.3
On Apr 24, 2017, at 12:03, Ben Hale <bhale(a)pivotal.io> wrote:
|
|
Re: question about token management using cf client using java
Ben Hale <bhale@...>
1. is there way to know about token expiration time using cf java client?Configuring the `cf-java-client.token` logger to `DEBUG` will give you detailed information about the negotiated tokens. ``` cloudfoundry-client.request POST https://login.peach.springapps.io:443/oauth/token cloudfoundry-client.response 200 https://login.peach.springapps.io:443/oauth/token (460 ms) cloudfoundry-client.token Refresh Token: eyJhbGciOiJSUzI1NiIsImtpZCI6ImtleS0xIiwidHlwIjo... cloudfoundry-client.token Refresh Token Issued At: 2017-07-20T16:27:12 UTC cloudfoundry-client.token Refresh Token Expires At: 2017-08-03T16:27:12 UTC cloudfoundry-client.token Access Token: eyJhbGciOiJSUzI1NiIsImtpZCI6ImtleS0xIiwidHlwIjoi... cloudfoundry-client.token Access Token Issued At: 2017-07-20T16:27:12 UTC cloudfoundry-client.token Access Token Expires At: 2017-07-20T18:27:12 UTC ``` 2. sometimes there is 401 error when i restart the nozzle program. is there way to prevent it? how can i do?The 401 is an expected part of the HTTP authentication handshake. The first call without a token returns a 401 telling the caller that a token must be presented. At this point, the client goes off to negotiate a token and re-makes the same call with the proper token, which is then accepted. Eagerly sending credentials without first being prompted by a 401 is considered poor security practice. 3. suppose token expiration time is ten minutes. during receiving data using subscribe methodTokens are only used during the initiation of a connection. So if a connection lives for 1000 hours, the token is only needed at the beginning of the request, not the entire duration. If the connection drops and is restarted, the standard token negotiation handshake takes place. If the token has expired (as indicated by a 401), then the token is refreshed and the request is automatically retried. -Ben Hale Cloud Foundry Java Experience
|
|
Re: Reg- CCDB and UAADB model
Filip Hanik
UAA DB is nothing special. We like to keep it simple.
We don't use foreign keys to simplify migration scripts. We support four different database types, HSQLDB, MySQL(MariaDB), PostgreSQL and SQL Server. We made a choice to store some data in JSON format in text or clob columns. We do this for data we don't want to query and index. The UAADB is really a very small database, there isn't much to it. The one thing we are considering reworking is data that is frequently deleted based on time expiration. MySQL performance is really bad for large transactional deletes and it can cause hiccups and consume both locks and CPU. We use Flyway for database migrations between versions. Filip On Thu, Jul 20, 2017 at 8:49 AM, Gowrisankar M <gowrisankarbeece(a)gmail.com> wrote: Hi Colleages,
|
|
Reg- CCDB and UAADB model
Gowrisankar M
Hi Colleages,
I am trying to understand CCDB/UAADB design . Can somebody share some link for the db design of uaa/cc BRs, Gowrisankar
|
|
Re: CF space application sharing
Daniel Mikusa
Yes So if one app in a space has network access to a service, any other app inYes. Network access and service binding are two completely different things. Just because a component has network access doesn't mean it will have the IP & credentials to access a service. In the same way, an app could have a service bound but not have network access. As long as your services require authentication (which they should), IMHO the situation you're describing doesn't seem to be a security issue. That said, security happens in layers so if you can block at the network & not provide credentials, that's better than just one of those. tl;dr - if you're using ASGs to protect resources, be careful what apps you put into an org and space. Hope that helps! Dan On Tue, Jul 18, 2017 at 4:35 PM, Julz Friedman <julz.friedman(a)gmail.com>
|
|
Manage Cloud foundry Org/space
Jenny Hilton
HI,
We have an old org for our which exceed quota after several month of teams usage, then we start to delete services manually which not used and this is not a simple job to run after quata , not used service and very hard to manage it... We have a new Org in CF for Our teams ( we use native CF- OS) . Now we have a much big Quota, (memory, disk,routes etc) but if we do not do some cleanup job a while the quota will exceed after few month again... There is some service/ capability in native CF to do some cleanup or shout down automatically for services/app which not used/called after some defined time (like after 2-3 month ) maybe stop them or even delete them .. king of "Watch Dog" ? Lets say I've the org admin rights ... Thanks!
|
|
Re: CF space application sharing
John jerrby
Hi Lior,
This part is very intersting, i'll hope we will get an answer that explain the IP issue since sounds like some security risk ... Regards, John
|
|
Re: CF space application sharing
John jerrby
HI Daniel,
Thanks for this answer, I learned a lot from it! Have a nice day! John
|
|
question about token management using cf client using java
SOHN SEOROCK
I'm testing cf nozzle using cf client java and have three questions about token management
1. is there way to know about token expiration time using cf java client? I'm using PasswordGrantTokenProvider 2. sometimes there is 401 error when i restart the nozzle program. is there way to prevent it? how can i do? 3. suppose token expiration time is ten minutes. during receiving data using subscribe method is token expiration time extended automatically? or should refresh token every ten minute? thanks and bless you.
|
|
Information about 3 CAPI CVEs
Molly Crowther
Hello all -
Please see below for more information on 3 CAPI CVEs made public today. Please reply if you have any questions. Thanks, Molly Crowther CFF Security Team CVE-2017-8033: Cloud Controller API filesystem traversal vulnerability HIGH Upgrade instructions: https://www.cloudfoundry.org/cve-2017-8033/ How to tell if your CF installation is affected At this time we believe that all CF installations are vulnerable. How to tell if your installation has been exploited We do not have concrete exploit information at this time. Immediate Mitigation - Turn off the App Bits Upload feature flag. NOTE: this will prevent all CF Pushes but will not cause application downtime for running apps. ------------------------------ CVE-2017-8035: Cloud Controller API access to CC VM contents CRITICAL Upgrade instructions: https://www.cloudfoundry.org/cve-2017-8035/ How to tell if your CF installation is affected At this time we believe that all CF installations using the versions of the Cloud Controller API stated in the notice are vulnerable. How to tell if your installation has been exploited It is believed that this vulnerability has existed since cf-release 245 (October 2016). It is possible to search logs to determine if you have been exploited. Search logs for requests that include any of “droplet_path”, “application_path”, “buildpack_path”, and “bits_path”. If any log lines contain this text and they are being used in the query string of an http request, then that is an indication of an exploit attempt. Example log text containing one of the above search terms as a query parameter: “PUT /v2/apps/033c1ca1-c3bd-40d5-92f8-12c711ead64b/droplet/upload?droplet_path=/some/path” Immediate Mitigation - It is possible to mitigate this issue prior to upgrade by turning off developer access to the CC API. ------------------------------ CVE-2017-8036: Cloud Controller API regression CRITICAL Upgrade instructions: https://www.cloudfoundry.org/cve-2017-8036/ How to tell if your CF installation is affected This issue only affects installations using CAPI-release v1.33.0. How to tell if your installation has been exploited We do not have concrete exploit information at this time. Immediate Mitigation - Turn off the App Bits Upload feature flag. NOTE: this will prevent all CF Pushes but will not cause application downtime for running apps.
|
|
Re: Application Metric Forwarding and Developer Segmented Firehose
Maxwell Eshleman
These sound like great ideas! What is the difference between the app metric
toggle quoted messageShow quoted text
forwarding mentioned here and what Scott's team is doing? -Max
On Wed, Jul 19, 2017 at 2:35 PM Adam Hevenor <ahevenor(a)pivotal.io> wrote:
Hi Everyone -
|
|
Application Metric Forwarding and Developer Segmented Firehose
Hi Everyone -
The Loggregator team has been discussing two related features that surface more capabilities to App Developers. There are two separate concepts being proposed here. The first is the ability for developers to forward metrics into the firehose [1]. This expands abilities for developers to inspect custom aspects of their application and build automation on top of existing standards and tooling. The second concept is for developers to have access to a firehose segmented to their org/space[2]. This builds further on existing tooling, but exposes the tooling to development teams at a scope level they have access to on the platform. There is an intentional ordering to these separate but related proposals. I appreciate your feedback and comments. Thanks Adam [1] - https://docs.google.com/document/d/1hjMO3plNBDwtqCgVIYsayhCcl0k-H0Hzvaaam4SSkto/edit [2] - https://docs.google.com/document/d/1z5aVaUn0J3sG3q5tGB1viDxAF70HZ1BYnF9vUe-c0j4/edit
|
|